XSharp

Command dash source investigation

All three player bundles recognize fresh Left/Right double taps. X3 boots also admit airborne Up double taps, including when mixed into another bundle. The faithful X1 bundle requires equipped boots for dash commands and the dash button. X2/X3 ground dash works without boots; their air dashes still require boots.

The first fresh edge arms timer0C (12 admitted player updates). Holding is not a second edge: release and press again. The second edge is tested before the decrement. First press at update0, release at1, second press at12 works; at13 it starts a new window. Control/input locks suspend the parser; X1 also gates the parser on armor bit08. An opposite tap does not replace the first direction or reload its window. Accepted requests return without decrementing on that update; rejected admission decrements normally. X3 preserves Up only when it is the sole fresh direction in mask0B; fresh horizontal diagonals record mask03.

Up commands cannot start a ground dash. In the air they use the existing X3 boots, dash-budget/chip, state and obstruction gates. Command origin is retained apart from button origin: horizontal commands require held forward direction; vertical commands require held Up, without the button branch’s opposite-horizontal test. Releasing the required direction stops the dash even with the Dash button held. Raw movie inputs are never rewritten to fabricate a button. Parser state, command origin and wall-kick buffer use the optional player runtime snapshot extension, preserving the old serialized Player field layout.

Original code

Revision-pinned bytes/hashes are in player-armor-source.json, regenerated with tools/parity/extract_armor_source.py.

Game Parser/admission Facing Continuation
X1 $81:9712..9788 $81:9576 $81:9D1A..9D3C
X2 $08:BAE7..BB8C $08:B96A $08:C2ED..C30F
X3 $04:A8C8..A993 $04:A62A $04:B55A..B585

Waiting parser is Player+54=02, direction is +53, timer is +51. Native Right/Left/Up fresh bits are01/02/08 of +3B. Command admission clears origin latch +7E/40, button admission sets it. Walking/falling wall admission loads the separate ten-update +56 dash-kick buffer. Native ground admission states are 00/02/04/0A; airborne06/08 remain boot-gated.

Captures and verification scope

The three CSVs contain972/1026/1242 snapshots (3240 total), with no lagged updates. Each case reloads a normally initialized stage state and only writes inventory. Positions, camera, palettes and trigger effects come from native simulation. X3 walks32 updates along the stage floor to obtain headroom, then settles. Captures are muted and launched on a private background desktop. manifest.json records ROM, state, script and CSV hashes; large states and ROMs remain local.

The accepted column comes from native command-path CPU execution hooks. Tests compare the parser on every captured update, including gaps2..14, hold, opposite tap and no boots. Additional tests compare X2/X3 command-air displacement, stored velocity and release recovery. Hosted-player tests exercise real input/physics, raw keys, equipment restrictions and save/restore between taps and during dash. This establishes scoped command behavior, not full-stage physics/lag/OAM parity.

Validation:437 focused physics/armor/player tests passed. The muted DX9 imported Penguin smoke (XSharp.LevelSmoke --command-dash, X3 bundle and asset package) passed ground double tap, airborne double Up, directional release, snapshot between taps and identical position/velocity/RNG continuation. It loaded no late sound/sprite-sheet assets and used no runtime ROM. The private-desktop launcher tests also passed (5 tests).

Reproduce using the pinned ROM and a normally initialized stage state:

python tools/parity/capture_command_dash.py --rom XSharp/Assets/ROMs/ZeroIsJegue.mmx --bizhawk 'C:/Program Files/BizHawk/EmuHawk.exe' --state '<initialized-stage.State>' --wait-frames 0 --timeout-seconds 300 --output '<empty-capture-directory>'

Use ShittyDash.mmx or BestGame.mmx for X1/X2. Do not prepare the reference by teleporting directly into a scene whose palette/graphics triggers have not run.