XSharp

X1 Ride Armor movie diagnostics

This console host plays the user’s BK2 inputs through the production DX9 engine and the standalone imported Penguin asset. It does not load a ROM at runtime. It requires Windows, the normal XSharp DX9/audio dependencies and the native capture described below. Captures and original copyrighted ROM/movie data are kept outside the repository.

python tools/parity/capture_x1_ride_armor_movie.py --movie 'C:\Program Files\BizHawk\Movies\Penguin Stage (ride armor).bk2' --rom '<matching USA Rev 1 ROM>' --bizhawk 'C:\Program Files\BizHawk\EmuHawk.exe' --output '<empty native capture directory>'

dotnet run --project tools/XSharp.RideArmorParity -- '<movie.bk2>' '<native capture directory>' '<empty comparison directory>' 258 410

The capture launcher creates a private movie, config and writable path set; it uses read-only WRAM Lua sampling, selected screenshots and normal movie input. It validates the movie/core/revision, hashes the outputs and checks the original movie and user’s config remain unchanged. It does not remove Windows elevation requirements or approve secure-desktop dialogs. Reuse an existing capture when one is already available. The recorded investigation used this workflow with a one-off capture script; the factored launcher has syntax/argument checks but has not been independently relaunched for that same recording.

The comparison requires consecutive frames 0..N in frames.csv and 8,192 bytes per frame in scene.bin. It performs one-time player/camera/RNG alignment. At a mounted idle start (258), it creates one idle Ride Armor. It does not translate arbitrary SNES save states or overwrite positions/velocities each frame. Enemies retain checkpoint warmup history, and the embedded stage assets are USA 1.0 while this movie is USA Rev 1. Full-start differences can therefore include initialization effects. The initial aligned frame is not screenshotted because the render target still contains the previous warmup frame.

Outputs are comparison.csv, selected xsharp-N.png captures and report.json with source hashes, assistance flags, exact-position/motion counts and first mount/state differences. Positions and velocities use native 8.8 units. A missing native vehicle is not evidence that its stale WRAM coordinates are meaningful. The report deliberately keeps automaticWholeSceneParity=false.

Append --native-cadence after both frame numbers to skip engine updates when the reference’s 7E:0B9C gameplay counter holds. This is explicit diagnostic assistance, not autonomous SNES lag emulation. The original’s frame 373 holds that counter even though its BizHawk lag flag is false. The default comparison runs one engine frame per movie frame. No cadence/position corrections enter normal game behavior.

See the source investigation for verified fixes, exact revision identifiers and remaining parity boundaries.