Skip to content

Game locations: EB Files

Pre-release
Pre-release
Compare
Choose a tag to compare
@Albeoris Albeoris released this 01 May 12:35
· 5 commits to master since this release

This is not a release, but a set of resources for testing this tool - just unpack the archive into the Working Directory of the EvilForest application. In the archive you will also find an example of a decompiled location.

Example:

    public IEnumerable<IAwaitable> OnLoop()
    {
        var @act = ServiceId.Actors[@ctx];
        var @aud = ServiceId.Audio[@ctx];
        var @bgiF = ServiceId.BgiField[@ctx];
        var @inp = ServiceId.Input[@ctx];
        var @mes = ServiceId.Messages[@ctx];
        var @sps = ServiceId.SpsField[@ctx];
        var @sys = ServiceId.System[@ctx];
        var @var = ServiceId.Variables[@ctx];

        switch(@evt.Byte_24)
        {
            case 0:{
                MSPEED(_speed: 15)
                yield return @sys.Wait(frameDuration: 25); // WAIT


                // {W82H1}Sure is dark{Speed 2}...{Speed -1}
                yield return @mes.ShowAndWait(windowId: 2, ui: 128, text: 34); // MES

                CLRDIST()
                MOVE(_destinationX: 25, _destinationY: -664)
                yield return @sys.Wait(frameDuration: 5); // WAIT

                @act.Animate(animation: "ANH_MAIN_F0_ZDN_MATCH7"); // ANIM
                yield return @sys.Wait(frameDuration: 10); // WAIT


                // {W152H1}Guess nobody’s here yet...
                yield return @mes.ShowAndWait(windowId: 2, ui: 128, text: 35); // MES

                yield return @act.WaitAnimationComplete(); // WAITANIM

                yield return @sys.Wait(frameDuration: 10); // WAIT

                @act.Animate(animation: "ANH_MAIN_F0_ZDN_MATCH1"); // ANIM
                yield return @sys.Wait(frameDuration: 61); // WAIT


                // se050001
                @aud.SfxPlay("se050001", volume: 125); // FLDSND(op: 53248, sound: 349, a1: 0, a2: 128, a3: 125)
                yield return @act.WaitAnimationComplete(); // WAITANIM

                @act.SetAnimation(AnimationKind.Idle, "ANH_MAIN_F0_ZDN_MATCH2"); // AIDLE
                @act.SetAnimation(AnimationKind.Walk, "ANH_MAIN_F0_ZDN_MATCH3"); // AWALK
                @act.SetAnimation(AnimationKind.TurnLeft, "ANH_MAIN_F0_ZDN_MATCH5"); // ATURNL
                @act.SetAnimation(AnimationKind.TurnRight, "ANH_MAIN_F0_ZDN_MATCH4"); // ATURNR
                CHRFX(_modelCode: 16, _argument1: 2713, _argument2: 4, _argument3: 914)
                CHRFX(_modelCode: 17, _argument1: 2713, _argument2: 4, _argument3: 923)
                CHRFX(_modelCode: 18, _argument1: 2713, _argument2: 4, _argument3: 1)
                CHRFX(_modelCode: 16, _argument1: 2713, _argument2: 13, _argument3: 914)
                CHRFX(_modelCode: 17, _argument1: 2713, _argument2: 13, _argument3: 923)
                CHRFX(_modelCode: 18, _argument1: 2713, _argument2: 13, _argument3: 1)
                @sys.InitService(objectIndex: 1, uid: 0); // NEW
                SHADOWON()
                yield return @sys.Wait(frameDuration: 1); // WAIT
                // ...
        }
    }
}