XSharp

Complete Gap Jumps and Stag player-motion verification

Historical pre-fix verification. The partial-request correction supersedes these results for the current implementation: both complete native-cadence motion/camera diagnostics now pass; remaining autonomous timing differs at Gap 2185 / Stag 216. The original regression measurements below are preserved.

Verified on 2026-11-08 against XSharp source cb4a470009a8df6a58e60a5da8f672548da92d5e, engine module 1699613d-c30c-41e1-80ec-e97a4b15922f. Four fresh continuous runs cover all 4,186 Gap inputs and all 3,487 Stag inputs. Neither movie has exact autonomous position/velocity reproduction. Stag passes the complete motion comparison only with explicitly supplied original execution cadence. Gap currently fails in both modes.

Exact numeric results

Counts below include input-result frames 1..N and exclude the explicitly aligned initial state zero. A position match requires exact X and Y; a velocity match requires exact VX and VY. All four extra low fractional bytes of the engine’s fixed-point values are also checked, so this is not rounded 1/256-pixel agreement. Velocity matches after a position divergence do not repair a trajectory.

Movie Mode Exact position results Exact velocity results Both exact First position / velocity difference
Gap Jumps Autonomous 604/4,186 (14.43%) 2,344/4,186 (56.00%) 604/4,186 (14.43%) 605 / 636
Gap Jumps Native-cadence diagnostic 604/4,186 (14.43%) 2,338/4,186 (55.85%) 604/4,186 (14.43%) 605 / 636
Stag Final Climb Autonomous 215/3,487 (6.17%) 3,290/3,487 (94.35%) 215/3,487 (6.17%) 216 / 216
Stag Final Climb Native-cadence diagnostic 3,487/3,487 (100%) 3,487/3,487 (100%) 3,487/3,487 (100%) None / none

The native-cadence mode reads the independently captured logic counter and holds engine logic on the same display frames. It does not correct X’s position or velocity on subsequent frames. This external timing assistance prevents it from certifying autonomous fidelity. One initial adapter aligns X, camera, RNG and available native pools; this is not conversion of the movie’s native emulator state.

Gap regression in optional camera requests

The current Gap run exposes a regression relative to its earlier successful cadence diagnostic. The optional camera controller publishes interpolating effective bounds. A later level request changes only part of the constraints; BaseEngine.UpdateCameraConstraintsBox starts from that published effective box. An untouched target edge therefore inherits an intermediate value instead of the previous requested destination.

The requested maximum camera X first differs on 557: XSharp retains 5,382 while the original requests 5,632. Effective bounds differ on 558; camera position on 559. By 605 the player’s X becomes limited to 5,632, while the original reaches 5,632.1796875. Y and both stored velocities still match on that first positional mismatch. Stored velocity first differs on 636. These are observed results for the explicitly enabled optional camera configuration; the repair is pending. Selecting the normal default configuration was not a fifth run in this verification.

Stag’s autonomous first difference remains 216, associated with an original held-logic update. Its full cadence-assisted motion and camera comparison still passes. RNG, unported entities, animation, pixel rendering and audio are outside this motion-only acceptance.

Configuration and provenance

All four runs use X2 USA SHA-1 637079014421563283CDED6AEAA0604597B2E33C, the X2 player profile, native object slots and the optional native camera-bound controller. AllowHeldDashGroundJumps is explicitly false for comparison; the intentional engine extension remains enabled by default in common/X1/X2/X3 profiles. The existing read-only BizHawk 2.11 / BSNESv115+ captures match the current movies and were hash-checked before comparison.

Movie Movie SHA-256 Original frame CSV SHA-256
Gap Jumps.bk2 7A880EF4635D2B15F8AF963DF6E2915C7D37A09B43160ED37F4E5BEC62134E4E 935C26EC7EF309376CC3B8248D252C7B21E2820447612F280D523A02B4EBAD0C
Stag Final Climb.bk2 0DB655DFBE092B48526E0B69C321A0F26B3408A068B5D96D675D21DDA1DBE600 4A064AC42BCF037AF03D0CC8962D24E50D3BF0DBD704B8D6F3FFD1EFCF88A007

Each run also passes a 20-update XSharp snapshot restoration: Gap autonomous from 2184, Gap diagnostic from 604, Stag autonomous from 215 and Stag diagnostic from 2985. Snapshot reproducibility is a separate engine-consistency check, not proof of original-game equality.

Preserved reports and independent audit

The independent tools/parity/audit_movie_motion.py checks complete consecutive frames, original values against the source CSV, delta consistency, provenance hashes, low fractional residues and agreement with the comparison report. Its output pins both CSV/report hashes and the first discrepant observation. Five focused tests reject false zero deltas, hidden low-fraction velocity, modified source data and missing states, and verify that the aligned frame zero is excluded from percentages.

python tools/parity/audit_movie_motion.py --capture C:\research\original `
  --comparison C:\research\xsharp --output C:\research\new-motion-audit.json
python -m unittest discover -s tools/parity -p test_audit_movie_motion.py

The shared progress register records all four report/audit hashes and is mirrored into HunterBaseStudio’s research metadata. No physics, camera or enemy behavior is changed by this verification milestone.