Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

TASToolKit Frame 1 DPad Loading Error #23

Open
@LordDraXula

Description

@LordDraXula
Collaborator

On Frame 1 the DPad value assigned for the player does not come out due to it's buffering.

This can be avoid by using the track load as a frame medium for example.

PAL
809bd730 -> 0xC -> 0x0 -> 0x2C

Activity

added
bugSomething isn't working
scriptsIssues/Features pertaining to Lua Scripts themselves
on May 16, 2022
malleoz

malleoz commented on May 18, 2022

@malleoz
Collaborator

Adding the following code to the beginning of onScriptUpdate in MKW_TAS_Toolkit.lua works.

local loadTime = ReadValue32(GetPointerNormal(0x9bd730, 0xc, 0x0, 0x2c))
if loadTime < 172 then return end
malleoz

malleoz commented on May 18, 2022

@malleoz
Collaborator

This issue will be on hold pending the finalization of vabold's lua script cleanup branch.

vabold

vabold commented on May 19, 2022

@vabold
Member

Instead of calculating loadTime from the intro camera, let's instead check against the stage in Raceinfo. This is better because we can still use the original frame of input address, while not allowing inputs in the race camera.

PAL
809BD730 -> 0x28

Here is some quick pseudocode for the race stage.

enum RaceStage {
    INTRO_CAMERA = 0;
    COUNTDOWN = 1;
    NORMAL = 2;
    RACE_FINISH = 4;
};
added this to the 4.0 milestone on Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingscriptsIssues/Features pertaining to Lua Scripts themselves

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @malleoz@LordDraXula@kierio04@vabold

        Issue actions

          TASToolKit Frame 1 DPad Loading Error · Issue #23 · TASLabz/dolphin-lua-core