tools/parity/player_armor_pose_probe.py is hosted by the existing private,
muted BizHawk capture runner. It uses normal charge, shot, movement and jump
input and, by default, only writes equipment inventory. No player position, camera,
animation, palette or collision field is forced. A native wall-slide scan
reports explicitly whether it reached state12; a failed scan is not wall
coverage. The pinned X2 Stag Final Climb.bk2 start reaches that state.
Example from the repository root (use an absent private output directory):
python tools/parity/capture_pause_menu.py `
--rom XSharp/Assets/ROMs/BestGame.mmx `
--bizhawk 'C:/Program Files/BizHawk/EmuHawk.exe' `
--movie 'C:/Program Files/BizHawk/Movies/Stag Final Climb.bk2' `
--wait-frames 1 --probe-player-armor-poses --accurate-video `
--output '<private-output-directory>'
For an already initialized, revision-matched native X3 gameplay state, use
--state '<private-before.State>' --wait-frames 0 instead of --movie.
The runner preserves the input ROM, movie/state and user emulator configuration.
RunAsInvoker applies only to this private research process; it does not change
the machine’s execution or compatibility settings.
The probe writes two CSVs. player-armor-pose-updates.csv retains CPU poses,
motion, charge slots, gun requests, shot timer50, held/pressed input and native
weapon slots. Each weapon entry is
slot:id:routine:state:attributes:gun_index:x:y:vx:vy.
player-armor-poses.csv associates first-seen poses with VRAM/CGRAM/OAM dumps.
Those PPU snapshots belong to the preceding CPU draw request, not the current
CPU image after the next update. The row records both frame numbers.
extract_player_armor_pose_map.py validates that the labelled ROM assembly is
actually present in OAM before reading its indexed tile pixels. It preserves
native16-pixel tile quadrants and mirroring, and records assembly bytes and
PPU hashes. It then searches the existing layered atlas and reports mismatch
counts and candidate pivots:
python tools/parity/extract_player_armor_pose_map.py `
--rom XSharp/Assets/ROMs/ZeroIsJegue.mmx `
--capture '<private-output-directory>' --output '<diagnostic-map.json>'
This is a diagnostic. An inexact candidate is never accepted as exact art.
--include-player-parts now validates the equipment’s own ROM assemblies:
5D/5E/5F for arm/body/boot draws in both games; X3 upward dash uses
35/36/37 instead. The base and each equipped part must be present as a
consecutive OAM draw. Dash ghosts cannot be joined into the current body.
The normal native CGRAM player palette maps authored atlas RGB colors back to
native indices (notably the differently ordered white entries1 and13).
For an initialized native stage, --reload-armor-pose-stage explicitly runs
its checkpoint reload after inventory changes (D2=06, D6=01). An optional
--armor-pose-checkpoint N is checked against the stage’s ROM checkpoint
pointer directory before it is written. The probe waits for unlocked living
Player control and asserts that the stage/checkpoint remain unchanged. X3’s
intro checkpoint0 enters a scripted sequence; checkpoint1 is the retained
controllable reference. No player/camera position, palette, collision or
animation request is forced. These are controlled inventory/reload experiments,
not controller-only playthroughs.
python tools/parity/capture_pause_menu.py `
--rom XSharp/Assets/ROMs/ZeroIsJegue.mmx `
--bizhawk 'C:/Program Files/BizHawk/EmuHawk.exe' `
--state '<initialized-X3-state>' --wait-frames 0 `
--probe-player-armor-poses --reload-armor-pose-stage `
--armor-pose-checkpoint 1 --accurate-video --output '<new-private-directory>'
python tools/parity/extract_player_armor_pose_map.py `
--rom XSharp/Assets/ROMs/ZeroIsJegue.mmx `
--capture '<new-private-directory>' --include-player-parts `
--output '<diagnostic-map.json>'
The 2026-11-27 receipts retain each assembly address/bytes, CPU-to-PPU frame association, buffer hashes, indexed mismatch count and atlas pivot/bounds: X2, X3. They cover native firing images82..98 and X3 upward images22..28. The separate unbuffered ground request captures image86, which the buffered path skips. X3’s upward base is sheet33 for equipment08/0A and sheet34 for equipment0F; equipping arms does not by itself select sheet34. These are alternatives, not simultaneous base layers. They are not sheet00 firing images82..98.
X3 has46 exact matches among55 captured equipment/pose combinations. The remaining nine retain visible atlas differences (2..84 indexed pixels). X2 has one exact match among30 combinations; the other29 differ by1..141 pixels. The runtime bindings use the reviewed corresponding pose and pivot, but do not claim to repair every pixel of the pre-existing authored atlas. These historical diagnostics remain unchanged; the validated native overrides below now replace the available layers at runtime. No capture of these special poses proves wall behavior, capsule transitions or whole-stage replay parity.
NativeArmorPoseAtlas maps semantic native images into each source family’s
own panel, rather than translating coordinates blindly between X2 and X3.
The engine builds all blue/helmet/arm/boot/body frames during Player precache.
The renderer reads the existing controller image; it neither advances the
controller nor changes Player’s animation state, hitbox or snapshots. Upward
dash holds its terminal pose on dispatcher exit and releases it when recovery
initializes. All four X3 parts and X2/X3 mixed firing parts are supported.
X1 pieces during these special actions, and X1/X2 pieces during upward dash,
retain the prior mixed presentation while their semantic adaptation is pending.
The retained X2 wall trace and source receipt are linked in
player-armors.md. X3 live wall capture and
capsule-initialized visual references remain separate open work.
extract_native_armor_pose_layers.py reuses the retained PPU data and validates
each base/helmet/arm/leg/body assembly independently against consecutive OAM.
It extracts73 X2 layers and120 X3 layers, with a shared integer-origin pivot32
on64px canvases. Native OAM composition agrees with the runtime layer order
(base, arms, legs, body) for all136 retained composite rows, including duplicate
references from the second X3 capture. The X3 native white indices1/13 map to
Player.PALETTE13/1, preserving their color identity through indexed charge fades.
This does not establish full native palette-clock parity for every mixed profile.
The new resource-only assets are precached with Player. Selection and rendering only read the already built frames; source-family overlays remain independently selectable. The existing authored frames remain fallback for X2 helmet, body and legs on images95..98 (12 missing native layers), and for unsupported X1 hybrid actions. X3 has all120 layers for the17 firing and7 upward-dash images. Ordinary poses and the full three-armor audit remain separate work.
Receipts: X2, X3. They retain every ROM assembly, source row, PPU hash, bounds, pivot, atlas hash and explicit fallback list. Regenerate using the private capture root rather than starting another emulator:
$captureRoot = "$env:TEMP/xsharp-armor-research"
python tools/parity/extract_native_armor_pose_layers.py --rom-dir XSharp/Assets/ROMs `
--x2-capture "$captureRoot/X2-player-armor-poses-full-corpus-20261127" `
--x3-capture "$captureRoot/X3-player-armor-poses-full-corpus-20261127" `
--x3-capture "$captureRoot/X3-player-armor-poses-complete-air-20261127" --check
Omit --check to regenerate assets, receipts and C# frame metadata. Conflicting
duplicate layers, wrong facing, canvas overflow or any absent OAM assembly fail
the extraction. Older unvalidated wall captures are not accepted as substitutes.
Validation: regeneration --check passed,619 focused engine tests passed
(one existing skip), and34 actual D3D9 image tests passed. The two added GPU
cases read back every pixel in all193 extracted indexed layers and their32px
origin. The muted real-engine Sponge smoke also completed a full Item Tracer
use/save-restore cycle with no late assets or runtime ROM reads, exercising the
new player precache resources. These checks do not establish full-stage parity.