The shared halo/midpoint crop still captured the previous gauntlet during X3
dash shooting and cut its gun tip. Known common poses now use part/family-specific
bounds from tools/parity/audit_common_armor_crops.py:79 poses, three families and
four parts =948 cells. The first900-cell inventory missed four registrations with
arithmetic origin arguments; the parser now accepts checked constant integer
arithmetic and refuses other expressions. The audit assigns whole palette-visible connected
components to pose owners and retains unregistered blue poses as exclusions.
Ambiguous ties/interleaved foreign pixels stop generation. Empty layers use a
checked transparent texel. Pivots/hitboxes stay unchanged. All948 cells pass real
indexed-D3D9 ownership/pixel-count checks. This fixes packing; complete original
pose/position/palette equivalence remains under review for all three armors.
X1 arms now use66 native particle images from labelled ROM assemblies matched to
consecutive OAM and captured CGRAM. Source $81:A1B5..A21D changes sheets6F/70/71
and palettes0/2/3: post-player countdown50 changes the sheet;01 selects the pink
maximum-charge palette. Changes retain the22-image, one-update loop. Particles
follow integer Player XY instead of the old hitbox-center offset. Assets are
precached from the common asset-only assembly. The receipt is
docs/parity/armor-poses/x1-charge-particles.json. Model and real Player effect
tests compare195 original updates and verify extra renders do not advance time.
Earlier validation:391 armor/presentation tests passed (one existing skip), and30 real D3D9 image tests passed. The expanded inventory and new muzzle images pass31 D3D9 image tests, including948 common crops,66 X1 particle cells, native special-pose crops and the dash-shoot regression. Regeneration:
python tools/parity/audit_common_armor_crops.py --check
python tools/parity/extract_charge_particle_sprites.py --rom <X1-USA-ROM> --game X1 --capture <native-particle-capture> --check
Gun Volt’s missing close-range damage is addressed by original weapon1D, an independent player-following muzzle effect with repeated close contacts. Its animation, hitboxes, captured facing and integer-position following are now implemented alongside the three existing wave parts. Increasing all wave damage would not reproduce it. See the Gun Volt investigation for source evidence, validation scope and remaining full encounter comparisons.
Direction command dash (double Left/Right, plus double Up with X3 boots) now uses the original twelve-update parser and separate command-origin continuation. See the command dash investigation for exact timing, source locations, equipment gates, captures and verification limits.
Equipment is session data; it does not require a renderer, an audio device, a
campaign or a ROM at runtime. ArmorLoadout has four independently sourced slots
(Helmet, Body, Arms, Legs). ArmorPartEquipment identifies X1, X2 or X3
and an optional Enhanced flag. Only X3 parts accept that flag. It records a chip
separately from the normal part; owning a blue-capsule part does not imply a chip.
Both the Penguin demo and LevelSandbox accept these startup bindings, including
through Visual Studio launch-profile environmentVariables:
{
"XSHARP_PLAYER": "x1",
"XSHARP_ARMOR_HELMET": "x1",
"XSHARP_ARMOR_BODY": "x3:enhanced",
"XSHARP_ARMOR_ARMS": "x2",
"XSHARP_ARMOR_LEGS": "x3"
}
Each slot accepts none, x1, x2, x3 or x3:enhanced. Equipment is not
automatically granted by selecting a player family. Native X1 requires any
equipped boots for dash; X2, X3 and the default custom player retain ground dash.
A player-profile JSON asset may contain initialArmor:
"initialArmor": { "helmet": "x1", "body": "x3:enhanced", "legs": "x2" }
Unspecified slots in that object start empty. This belongs alongside the existing player-profile fields, rather than being a standalone profile file. Runtime C#:
engine.EquipArmor(ArmorParts.Legs, new ArmorPartEquipment(OriginalGame.X2));
engine.EquipArmor(ArmorParts.Body, new ArmorPartEquipment(OriginalGame.X3));
engine.TryEnhanceArmor(ArmorParts.Body);
TryEnhanceArmor requires the corresponding X3 part and refuses duplicate chips.
Direct equipment configuration deliberately permits any combination of X3 chips;
campaign capsule acquisition restrictions are a separate game-manager policy.
Open the console with backtick and enter:
sv_cheats 1
player_armor_helmet x1
player_armor_body x3:enhanced
player_armor_arms x2
player_armor_legs x3
player_armor_legs none
Query a convar without an argument to inspect its current slot. These changes use the existing simulation-command recording/authorization path; unrecorded changes during demo playback are rejected. Removing cheat authorization resets cheat convars according to the console’s existing policy.
The console previously had no generic environment binding. ConVar.EnvironmentVariable
now declares an explicit association; the trusted host calls
Console.ApplyEnvironment() after profile/host configuration and before entity
and level initialization. Values are passed as data directly to convar validation,
never parsed as commands. Invalid overrides warn once on import and retain the
previous value. Read-only convars cannot be overwritten. Startup equipment may
initialize cheat-protected convars without enabling gameplay cheats.
Engine convars have XSHARP_CVAR_<UPPERCASE_NAME> bindings, except read-only
values and the armor convars, which use the explicit names above. Examples:
XSHARP_CVAR_SND_MUTE=1 and XSHARP_CVAR_VOLUME=0.5. Core console registries may
opt individual variables in; they do not enumerate or import arbitrary process
environment variables. Existing XSHARP_PLAYER, XSHARP_BUSTER, physics and menu
selectors retain their existing startup hooks. Order is player environment
selection, host/profile configuration, then convar environment overrides.
Saved-state loading does not reimport the environment.
Environment imports are session overrides. writecfg and automatic console
shutdown preserve the previously archived preference instead of persisting the
environment value. An explicit console/C# Set remains persistent, including
setting the same value intentionally. This prevents a muted validation launch
from leaving snd_mute 1 in the shared configuration for later Sandbox runs.
Use the host’s --mute flag for unattended visual tests; it mutes physical output
without changing the console preference.
Session snapshots keep the legacy Armor mask. An optional ArmorEquipment
object stores mixed origins and chip flags. Old snapshots with only the mask
resolve parts against the configured armor/player family. Existing assignment to
SessionContext.Armor resets source overrides; TryGrantArmor preserves an
existing mixed loadout. PlayerProfile.Armor is computed, preserving the binary
field layout of previously serialized player profiles.
ArmorProfile remains the common custom policy, with three game-specific
descendants. Legacy percentage assets continue working. Native profile assets
may select base: x1/x2/x3; an explicit bodyDamagePercent selects custom
percentage mitigation. An explicitly equipped native body uses its source rule.
Review receipts: original code ranges. Regenerate or verify them with:
python tools/parity/extract_armor_source.py --rom-dir XSharp/Assets/ROMs
python tools/parity/extract_armor_source.py --rom-dir XSharp/Assets/ROMs --check
The initial damage rules differ: X1 halves and rounds up; X2 subtracts one with a minimum of one, then subtracts another if the intermediate result is at least five; X3 halves and rounds down with a minimum of one. Native code additionally manages X2 Giga Crush energy and the X3 barrier/chip state. Those stateful effects are not implemented by the initial-hit damage rules.
X2 $08:B33B..B361 and X3 $04:9F96..9FBA select signed
0178 for held Up/Down, then double stored VY with ASL when the armor
mask contains both arms and boots (0A). Thus the native magnitude changes
from376/256 to752/256 pixels per update. X3 chips add no further multiplier.
X1 has no equivalent combined-part capability.
ArmorProfile.LadderSpeed applies that rule to all ordinary ladder movement
and the movement resumed after mount/top-descent animations. Existing shooting,
mounting and collision gates still determine whether X actually moves; the
bonus does not accelerate animation clocks or multiply fixed mount offsets.
For freely mixed equipment, X2/X3 arms and X2/X3 boots combine the capability,
independently of the base player profile. Either X1 part prevents the bonus.
Removing one part restores normal speed on the next movement update. Untyped
legacy custom masks preserve their previous speed; typed native masks resolve
against their source game. Custom C# armor policies can override LadderSpeed.
Production-player tests exercise all9 source combinations, both directions and
all4 base profiles (72 cases), plus legacy masks and enhanced X3 parts. Native
source receipts are regenerated by extract_armor_source.py; this translation
uses the reviewed original code, without requiring a new live emulator capture.
The first equipment/configuration milestone does not constitute complete native armor behavior or visual/frame parity.
Equipping an X2 helmet unlocks item_tracer for the native X2 menu, ordinary
weapon cycling or host selection, including mixed-family equipment:
engine.EquipArmor(ArmorParts.Helmet, new(OriginalGame.X2));
engine.TrySelectWeapon(BaseEngine.ItemTracerWeaponId);
Use the ordinary Shot action. The source controller scans, acquires the first
active hint marker, homes using integer CX4 vector arithmetic, signals the
location and blinks out. It costs no energy and allows one active cursor.
All302 original controller updates match the scoped source capture. The ten
native images, sound59, save-state behavior and old imported Sponge hint marker
pass integrated checks. The exporter also emits editable
info_item_tracer_target entities. See source and validation
for regeneration, corrected earlier annotations and precision limits.
Giga availability follows the equipped X2 body, including after console/host part swaps. Its unlocked resource is retained for later re-equipping, but a full saved bar alone cannot start a new cast with another body or no body. Already emitted effects retain their own lifetime. This equipment gate is a mixed-loadout host rule; the original game does not allow removing the body part. The focused Giga/Hyper suite passes46 cases, including remove/swap/re-equip coverage.
Equipped X1 helmets break collision3C metatiles during a rising head contact.
The source $81:9E97..9F07 samples integer X+8, then X-8, at Y-19. The host
converts original map coordinates through WORLD_OFFSET before querying
terrain. At the last pixel of a tile, omitting the level’s one-pixel origin shift
would select the next row accidentally.
A successful head hit is consumed on the following controller update. It keeps
the existing upward speed and freezes displacement on that update and the two
following countdown updates ($81:84BC..851C, substate04, timer02). Resuming
the jump applies ordinary gravity to the retained speed. Input, charging and
pause admission remain available through the general Player update. Ordinary
solid ceilings and helmets from other games retain their existing behavior.
The optional armor-runtime extension stores queued contact and remaining pause;
respawn, death and helmet changes reset them.
Equipped X1 boots break terrain on an accepted wall jump. The side probe is 15 pixels toward the wall (seven-pixel half width plus native reach8), at Y+8. This happens at kick admission, before preparation and launch. Merely standing against a breakable wall or owning X2/X3 boots does not break it. Both interactions request native X1 sound23, independently of the common audio profile. Parts remain independently usable in mixed loadouts.
The source also admits collision3C headroom for a wall kick when helmet01 is
equipped ($84:99A0..99AE). The host applies this exception only to breakable
terrain; an ordinary solid ceiling still rejects the kick.
Original $84:912D..9143 increments a placed16-bit metatile index, rather than
deleting the map. Imported X1 tile definitions now emit breaksTo with that
successor ID. The loader recovers this relationship for older packages only when
their source hash identifies the reviewed USA X1 ROM. Explicit breaksTo always
wins, including -1 for a cleared cell. Authored packages without that provenance
do not acquire an inferred neighboring-map relationship.
Layout.TryBreakMap applies the prepared replacement through SetMapLocal,
preserving other instances of shared scene/block/map templates. The placed-map
save extension preserves these changes. Invalid replacement indices are rejected
while reading a package. No runtime ROM access or asset loading is involved;
the same metadata can describe custom destructible terrain.
The controlled muted BizHawk experiment enters Penguin through the native Stage Select route. It changes equipment and two/five placed map words to create repeatable ceiling/wall cases using a3C metatile from the loaded stage’s actual collision table. It does not force player position, camera, stage resources or palettes. The retained364 updates include equipped/unequipped controls. Tests check the native two-update countdown, retained position/speed, two head probes and accepted boot probe, together with production Player input and map mutation.
The engine smoke loads an older imported Penguin package without a ROM, performs
a real jump, verifies the successor tile and pause, then saves/loads and checks
the terrain change and resumed ascent. This milestone does not claim full Player
trace equivalence. Reproduce the original terrain protocol capture with
capture_pause_menu.py --x1-stage 1 --probe-armor-terrain; fingerprints are in
Fixtures/Armor/x1-armor-terrain-capture.json.
For the debris adapter, $81:9F08..9FAE attempts five small actors2B and
returns immediately on the first allocation failure. Each successful actor
consumes three RNG advances: stage*4 plus low two bits selects a subid through
$86:BADA; independent masks000C index VX atCE69 and VY atCE71, with stride4
(offsets0/4/8/12). The receipt retains these bytes and the13x4 variant table.
X1TerrainDebrisControl adapts actor2B $83:F945..F9F3 without renderer, audio,
ROM or executable-host dependencies. Initialization consumes no movement tick.
Later updates retire against the camera before movement, subtract gravity30h
before integrating upward-positive native VY, wrap signed24-bit8.8 positions,
and advance the source self-loop animation. Drawing alternates by the native
slot’s parity: even slots draw on odd ticks. Retirement bounds and display
bounds are distinct. Head and boot breaks now create these actors, and reserve
each free slot before consuming its three random values. Full allocation failure
consumes no RNG. One broken metatile attempts five actors; a two-cell head hit
can create ten. The graphics and sound dependencies are prepared during level
precache, including levels whose equipment changes later through the console.
The head branch’s $84:A333 call initializes camera shake, not animation0F.
The previous source-receipt interpretation was corrected. During the impact
update and two countdown updates the existing Player pose and animation clock
are held; blinking and charge handling continue. The source vertical effect at
$80:E19A..E1CA starts with lifetime15 and amplitude3, decrements before testing
expiry, then alternates between zero and +3 camera pixels. The engine applies
this offset to world drawing only, preserving the tracking camera, collision,
HUD and editor transforms. The optional armor save extension preserves the shake
clock; older snapshots default to no shake. Particle retirement/display uses
the corresponding shaken viewport.
The reusable console command below rebuilds a17-cell atlas directly from the original compressed graphics, explicit sprite assemblies and palette bindings:
dotnet run --project EnemyExtractor -- --rom <X1-USA-ROM> --x1-terrain-art --output <directory>
It emits X1TerrainDebris.png and X1TerrainDebris.art.json, including source
addresses/bytes, graphics hash, palette bytes, resource records and PNG hash.
The default variant uses gfx46/paletteE2; Chameleon uses gfx76/paletteEE.
Armadillo, Mammoth and Octopus share gfx77 but use palettes1DE/F0/17E respectively.
The extractor requires an unambiguous palette binding and rejects missing tiles
or oversized/empty assemblies. Injecting a breakable map at a stage entrance
does not guarantee that its fragment graphics are loaded in native VRAM, so such
captures must not supply final artwork. Runtime assets have no ROM dependency.
The expanded muted captures enter stages1/2 through Stage Select with armor
already equipped, then reuse native-start save states for the controlled probes.
Fixtures/Armor/x1-terrain-debris-capture.json fingerprints their actor, birth,
emission and shake CSVs. Tests compare every retained actor update’s position,
velocity, animation bytes, parity and visibility, as well as each emission’s
variant, offsets, velocities and final seed. Head pose hold and every shake tick
are checked separately. These are scoped protocols, not whole-stage parity.
The host’s31-slot capacity currently covers this terrain family, rather than
every native small actor sharing that pool; it does not implicitly reuse another
native actor’s stale position fractions. Those remain explicit limits of the
optional original-machine fidelity mode.
Validation for this addition: the focused armor/buster suite passed635 tests
(one optional test skipped); its fixture comparisons cover937+842 actor updates.
Nine DX9 GPU crop cases passed, including all17 fragment cells with exact RGBA
readback. The muted level smoke loads XSharp.LevelSandbox/Assets/Levels/X1/01.xlevel,
checks the double break, ten fragments, frozen motion, save/load of particle
state/RNG and a boot break, with no ROM or late sprite-sheet creation. The demo’s
authored Penguin package has no breakable3C cells, so it is not the fixture for
this controlled terrain smoke. Repeating the ROM-art export produced identical
PNG and manifest bytes.
X2GigaCrushControl, X2GigaCrushBlastControl and X2GigaCrushEnergy are
independent source models in XSharpShared. The first source milestone verified
them without a game host. The following integration milestone binds their
motion/resource/weapon protocol to Player; complete native screen composition
and ambient effects remain separate work.
The Player state58 dispatcher at $08:9E21 holds the current pose while moving
X by facing-dependent40h horizontally and upward80h for30 updates. The next
phase freezes native dispatchers, saves presentation state, requests sound56
and allocates weapon0F. The later radius/window phases use distinct byte clocks
and the original79/7A Player animation programs. Sound57 starts the expanding
horizontal window. Restoring dispatchers precedes the60-update hold and final
color countdown; the last phase returns to ordinary falling. Ambient pairs
reserve small slots before consuming RNG. The model reports these requests;
it does not consume hidden cosmetic RNG or create substitute engine effects.
Weapon0F ($01:9C7A..9CCE) initializes only when its dispatcher resumes. Its
integer center is camera+(128,112), while recycled slot fractions are retained.
The collision half extents are127 pixels on each axis (254x254), not the full
camera rectangle. Initialization starts a120-update timer without damage; later
updates alternate damage flag01/00. Expiry requests routine0A/flag0A and cleanup
occurs on the following update. Death also requests retirement. Common receiver
row1 gives damage48 for column0F; other native resistance rows retain their own
values. This does not establish universal damage48 against every boss/object.
The converter at $08:D979 accepts only incoming contacts whose native direct
page is at least1318, i.e. the projectile pool. Ordinary enemy bodies in the
D18 pool do not charge it. Body bit04 is required for conversion; the amount
comes from projectile ID byte0A indexing $06:B0E6, before damage mitigation.
It saturates at1C00 and requests sound18 only on the update reaching full charge.
Half-point and other fractional increments must survive between contacts.
The source instruction accepts any byte index, so the extraction receipt keeps
its complete reachable512-byte ROM window; adjacent words are not thereby
classified as meaningful projectile entries.
The generic firing allocator runs before ammo admission. An occupied weapon pool must neither spend energy nor start the attack. Giga requires energy at least 1C00. Its raw3800 cost empties the resource both normally and after the generic helmet/body05 halving rule. The firing branch does not retest body ownership: a controlled native menu can still fire an already owned/full resource after removing body04. The source capture includes this case and the below-full rejection, with equipment/energy writes explicitly identified as experimental setup rather than a controller-only acquisition route.
tools/parity/giga_crush_probe.py is available through
capture_pause_menu.py --probe-giga-crush. It restores a naturally initialized
stage2 state, chooses the weapon through the native pause close transaction,
and presses Shoot on the ground/in the air. It never forces the attack state,
Player coordinates, camera or palettes. Instruction hooks record completed
controller states separately from NMI frames: the native circle calculations
can span multiple frames of lag, exposing intermediate values at frame end.
The pure model advances once per native controller call, not once per NMI.
Five tests verify capture hashes,684 completed Player updates across the ground, no-body and airborne experiments, source blast initialization/lifetime/damage flags, fractional energy boundaries/allocation failure and binary save/resume. The static converter cases do not substitute for live incoming-projectile comparisons. Mixed-family special poses, HDMA-equivalent composition and optional native lag scheduling remain pending; ambient emission is implemented below. Rebuild/check source bytes using:
python tools/parity/extract_x2_giga_crush.py --rom <X2-USA-ROM> --check
An explicitly equipped X2 body unlocks giga_crush in the session. Native X2
legacy armor/profile loadouts also unlock it; a custom profile’s legacy bitmask
does not silently become native X2 equipment. The resource-only Common package
contains its weapon definition: capacity1C00, 256 raw units per displayed point,
initial energy zero, full-capacity shot cost and no ordinary firing pose.
Custom hosts can register the same ID before loading to retain their controller.
Part swaps preserve ownership and fractional energy, matching the source firing
branch’s lack of a second body-ownership test.
The stage inventory initializer $00:F27D gives body04 resource ownership with
empty energy. This is the evidence for startup configuration, not a claim about
the unreviewed capsule-award sequence or native stage/death resource reset policy.
Ordinary ammo drops cannot refill this resource. The source pickup/autofill
exclusion and0100 refill-unit spans are retained in the extraction receipt.
INativeProjectileContact identifies the projectile-pool ID separately from
its owner’s event ID and from outgoing player-weapon IDs. Accepted incoming
contacts call the converter before body damage mitigation. The reviewed Cannon
Driver heavy/light01/02, Hanged Reploid03, Sea Canthller12/13, Disk Boy20 and
Aclanda29 adapters provide that identity. Other enemy bodies, incompatible game
families and contacts rejected during hurt recovery do not charge Giga. The full
charge crossing requests original sound18. A future projectile adapter must
identify its original pool entry before participating in this conversion.
The actual Shoot path accepts only a full resource and an available weapon slot,
then queues Player state58 for the following update. It rebases the entry to the
input frame’s completed position instead of rewinding that frame’s movement.
The native ascent bypasses world collision and ordinary gravity. Player owns
the subsequent world freeze/invulnerability and releases it before the final
hold/fall sequence. X2GigaCrushWeapon starts its independent120-update clock
only after that freeze ends. Its original index0F lets reviewed receivers choose
their own resistance rows; default damage48 is not forced on every receiver.
Its symmetric254x254 hitbox uses the inclusive native collision rule, with zero
damage during initialization and alternate updates.
The optional armor save extension captures the Player controller and freeze ownership without shifting legacy Player binary fields. The separate weapon serializes its own clock. Invalid extension phases are checked before changing live clocks. The engine scheduler also observes a Player-owned freeze/unfreeze immediately for later controllers in the same update; it cannot keep running weapons under a stale pre-update freeze flag.
Five poses99..103 now use extracted indexed tiles, not approximate crops from the authored trilogy atlas. For each image the extractor validates the ROM assembly against a consecutive OAM draw before reading VRAM. The25 cells contain blue X, the X2 helmet base and separate X2 arm/boot/body layers, sharing a32px pivot. Their index encoding uses the ordinary Player palette rather than colors temporarily flashed by the original attack. The extraction receipt retains ROM addresses, source bytes, CPU/PPU request alignment and buffer/atlas hashes: exact layers. The earlier authored-atlas diagnostic retains nonzero differences and is not an approved runtime binding.
python tools/parity/capture_pause_menu.py --rom <X2-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-stage2-state> --wait-frames 0 --probe-giga-crush --accurate-video --output <new-private-base-directory>
python tools/parity/capture_pause_menu.py --rom <X2-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-stage2-state> --wait-frames 0 --probe-giga-crush --giga-pose-armor 15 --accurate-video --output <new-private-equipped-directory>
python tools/parity/extract_x2_giga_poses.py --rom <X2-USA-ROM> --base-capture <private-base-directory> --equipped-capture <private-equipped-directory> --check
The equipped art probe lets the original checkpoint reload build its graphics resources after the controlled inventory setup. It does not teleport X or write palettes/VRAM. Both art captures choose the weapon through native menu closing. Runtime loads the resulting asset during Player precache and never opens a ROM. Rendering neither advances an animation nor creates another frame/texture.
For a Sandbox test, open the console with backtick and enter:
sv_cheats 1
player_armor_body x2
weapon_select giga_crush
weapon_energy giga_crush 28
Close the console and press Shoot. weapon_energy takes displayed points,
including fractional values such as0.5; C# TrySetWeaponEnergy takes raw units.
The X2 native pause menu already binds its Giga slot to this weapon ID; custom
equipment menus show the definition’s scaled energy. Ordinary weapons preserve
their existing one-unit-per-point default.
Validation for this integration:648 focused armor/buster/scheduling tests passed, one optional test skipped; ten D3D9 sprite readback cases passed, including all25 new cells. A muted real-engine run against imported X2 stage02 verified actual Shoot, full cost, deferred blast initialization, save/load during freeze, continued controller/RNG equality, retirement and unchanged precached sound and sheet counts. That first RNG check compared XSharp continuation with its own save. The later ambient milestone below adds original small actors and their allocation-dependent RNG calls. Screen-space HDMA windows/circles/color math, mixed X1/X3 part poses, all-projectile conversion, native slot recycling/competition and lag parity also remain open. The current host shows the native X2 Player poses and performs gameplay damage; it does not yet render the complete original Giga screen effect.
X2GigaAmbientControl translates small actor00 at $01:832A..844A. The Giga
entry allocates four Player-following flares in subtype order3/2/1/0, without RNG.
They anchor to integer Player coordinates plus the four signed64px corner
offsets at $06:B58A, retaining each slot’s coordinate fractions. The attributes
at $06:B586 mirror/flip one canonical assembly across the four corners. A52
update countdown, native animation markers and a separate cleanup request drive
their lifetime; draw requests use bit0 of09CC while animation continues every
controller update. Header bit80 keeps these actors updating during Giga’s world
freeze.
The later pair emission reserves a slot before calling the shared RNG. The
low two bits select80/81/82/82 through $06:B041, including the intentional
double probability of82. When that actor initializes in the small dispatcher,
two further RNG calls choose camera-relative integer X/Y; existing coordinate
fractions remain intact. The three initial upward velocities are0200/0400/0600.
Each subsequent update accelerates by0020 before movement. These stars hold
their native single-image script; they do not run a substitute particle loop.
The narrow culling result from the previous update requests retirement before
one final movement/draw attempt, followed by cleanup on the next update.
The host uses shared SnesObjectPoolController range0B48..0CA8, stride32,
capacity12. UseOriginalObjectSlots enables its bounded native/recycled-slot
policy; the normal general-engine mode keeps its existing unbounded content
allocation policy. A failed allocation consumes no type or position randomness.
Existing and newly emitted Giga actors are explicit freeze exceptions. The
effect’s simulation/lifetime, pool ownership and RNG survive full engine saves.
Render calls never allocate particles, advance RNG or change simulation clocks.
The capture fixture retains604 entries at the original actor dispatcher, including four flare and fourteen star initializations. Tests compare586 subsequent states: lifecycle, position, velocity, attributes, image, script, countdown and animation flags. Star initialization is reconstructed from the captured original09D6 seed and its next two shared-generator calls. Additional tests cover flare draw parity, zero RNG for flares, two positional draws per star, standalone save/resume and first-free slot reuse without draws on a full pool. The CSV fixture uses canonical LF line endings; its receipt keeps both the original capture hash and the normalized fixture hash. These scoped tests do not establish whole-scene RNG parity; ordering against other small-actor families and optional SNES lag remains separate work.
The nine source images now come from ROM sheet83 assemblies checked against consecutive OAM and colored from captured palette3. The flare graphics span more than128px; their padded256px cells prevent the old clipping assumption. The asset receipt retains the source assemblies and PPU hashes. Early star samples produced during the heavy Giga window calculation failed consecutive-OAM validation; the art probe now waits for restored dispatchers before accepting those star images. It never repairs a failed sample by guessing or rewriting its source coordinates.
python tools/parity/extract_x2_giga_crush.py --rom <X2-USA-ROM> --check
python tools/parity/extract_x2_giga_ambient.py --rom <X2-USA-ROM> --capture <private-giga-art-directory> --check
This completes native flare/star emission for the current Giga adapter. Screen-space windows, circles, fixed-color math, native scene lag and special poses for mixed X1/X3 parts remain open presentation/compatibility work.
Final validation for this milestone:651 focused armor/buster/scheduling tests
passed, one optional test skipped; all11 D3D9 image-readback cases passed,
including the nine new effect images. Muted real-engine runs passed in both
normal allocation and --original-object-slots modes. Each saved with active
stars during the freeze, restored their state/pool, and compared the following
twelve updates’ particles, Player clocks and shared RNG. Both runs completed
the attack/weapon lifetime with unchanged precached sound and sprite-sheet
counts and no runtime ROM dependency. The source and image extractors also
passed their reproducibility checks.
X2GigaWindowControl is a device-independent port of the original window/color
protocol at $08:9E7D..A5DB. This milestone does not yet change engine rendering.
The render bridge must consume this state separately for tiles and sprites;
a white additive overlay on the completed frame would apply different rules.
The PPU writer at $08:80FF establishes the shadow mapping: C5/C6 write
W12SEL/W34SEL, C8 writes WOBJSEL, C9/CA write CGWSEL/CGADSUB and CB/CC/CD supply
fixed RGB. These are distinct from the actor/world freeze clocks. The model
preserves the original register values when restoring the previous scene,
including their high channel-selector bits. C4 belongs to the NMI HDMA scheduler
and is explicitly outside this controller’s comparison contract.
The circles use the original integer error update, including the carry between successive ADC instructions, instead of a floating-point distance or a generic circle approximation. Two outer buffers at7F:B800/C640 and two inner buffers at7F:C840/CA40 alternate through the original HDMA pointer tables. Native row256 can alias the next working buffer, so the model keeps a shared64KB bank instead of four isolated arrays. It preserves the source scratch clearing extent, center clamping, inclusive byte boundaries, horizontal-line phase and final expanding-window phase. The source’s top/bottom row stepping and fill termination are kept as written rather than replaced with a symmetric fill.
The read-only --giga-raster probe records the completed prior state at the
original Player dispatcher, separately from NMI/frame-end observations. Its
fixture contains229 states. The focused comparison checks all586,240 captured
window/scratch bytes across those states, plus owned register values, pointer
tables and channel descriptors. Two intermediate binary save/restores continue
the same comparison. A bank-crossing lookup is explicitly rejected by this
initial model; additional boundary-scene traces and mapped-data support are
required before enabling it for arbitrary runtime positions.
python tools/parity/capture_pause_menu.py --rom <X2-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-stage2-state> --wait-frames 0 --probe-giga-crush --giga-pose-armor 15 --giga-raster --accurate-video --output <new-private-directory>
python tools/parity/extract_x2_giga_crush.py --rom <X2-USA-ROM> --check
The completed native capture was also repeated on the private non-input desktop used by the background launcher. Its window trace, small-actor trace and pause reference image were byte-identical to the earlier capture. The new launcher keeps automated BizHawk forms from taking foreground focus without changing the user’s emulator configuration. The capture completed during720 foreground checks; separate tests verify the child’s actual desktop and cleanup after success, nonzero exit, failed creation and timeout.
The focused armor/buster/scheduling suite now passes652 tests with one optional skip. Remaining Giga presentation work includes SNES layer/window/color composition in the render backends, presentation timing/lag and boundary cases.
The window state now advances alongside the real Player controller, using its pre-update phase and coordinates. Rendering only consumes that state. The optional armor save extension includes the complete working bank, saved scene context, HDMA packets and alternation state. It validates packet extents before restoring a live controller. Older saves without a window extension retain their previous presentation until the next attack rather than inventing missing history.
Controlled CPU-entry probes at relative Y=-32,0,224,320 exposed a source detail
in $08:A588: when the lower row is not yet0200, RTS retains the lower INC’s
flags. Only the saturated-lower branch loads the upper row before returning.
Consequently the caller’s BNE must finish the lower tail even when the upper row
was already zero, including the aliased row256 write. A symmetric fill or an
early stop at upper0 changes visible/stale buffer bytes. The additional fixture
matches824 observed states: three complete229-update sequences and137 updates
of the fourth probe. The fourth is partial and none of these geometry patches
constitutes a normal gameplay route or frame-end video comparison. Combined
with the original229-state fixture,1,053 states compare2,695,680 window/scratch
bytes plus owned registers, descriptors and tables.
The extractor also preserves bounded source bytes at80:B9FF/CC3F for absolute indexed reads carrying out of DB7F. That fallback is statically mapped; these fixtures do not exercise it, so they do not establish its runtime parity.
SnesWindowColorFrame owns the device-independent inclusive window tests,
inversion, OR/AND/XOR/XNOR and five-bit fixed-color arithmetic. Its transparent
subscreen contract follows the primary
bsnes screen implementation
and window implementation:
OBJ palettes0..3 bypass math, while selecting a transparent subscreen suppresses
half math. Opaque subscreen blending is outside this adapter’s contract.
The engine composes backdrop, BG2, BG1 priority passes and eligible object
batches separately, preserving sprite order and drawing the HUD afterward.
Sprite.OriginalObjectPalette allows reviewed native palettes4..7 to opt into
object math; unknown/custom assignments keep ordinary rendering. Auditing every
enemy’s OAM allocation remains separate work. This is not a claim of full-scene
pixel parity for arbitrary imported levels or mixed armor poses.
DX9 uses a prepared system-memory readback surface; SDL Direct3D11/OpenGL read into their existing target buffers and restore the prior target. Pass targets, upload texture and managed pixel storage are prepared during device/level precache, reused during attacks and disposed/recreated with device resources. The upload bypasses a second application of the engine’s ordinary fade.
Window coordinates use Camera.Size in world pixels, not the larger StageSize render target. Device scaling preserves native bounds at integer and fractional scales. Wider world viewports center the256x224 reference and extend clipped screen-edge bounds; this is an engine adaptation, not original SNES behavior.
python tools/parity/capture_pause_menu.py --rom <X2-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-stage2-state> --wait-frames 0 --probe-giga-crush --giga-pose-armor 15 --giga-raster --giga-window-boundaries --accurate-video --output <new-private-directory>
dotnet test XSharp.Tests --filter "FullyQualifiedName~X2GigaWindowTests|FullyQualifiedName~SnesWindowColorTests"
dotnet test XSharp.Render.Tests --filter "FullyQualifiedName~ColorPassReadback|FullyQualifiedName~SnesColorReadback"
Native lag/presentation scheduling, broader palette allocation and mixed-part Giga poses remain open. Backend readback cost must be measured on target hardware; the arithmetic and native buffer comparisons alone do not establish60fps.
Validation:605 focused armor/buster/window/scheduling tests passed, one optional test skipped; all50 render tests passed on the real DX9/Direct3D11/OpenGL devices. The render suite’s old Player-image test now resolves its source through the asset API, matching production loading instead of an obsolete manifest name. Muted imported-Penguin runs completed real Giga Shoot, full resource spend, freeze/release, save/load with complete window/particle state, twelve subsequent updates with the same Player/particle/RNG state, and weapon retirement on all three backends. DX9 also used the optional original object-slot budget. Asset sheet/sound counts stayed unchanged during the attack; none of these engine runs acquired a ROM dependency. These are integration checks, not native video or lag-equivalence claims. Scaled row reuse is checked against uncached output, including a changed pixel and repeated calls for different layer classes.
Five background-process tests also passed. The additional native boundary
capture used the private desktop launcher and preserved the user’s emulator
configuration. See tools/bizhawk/README.md for background-launch details.
Equipping x3:enhanced arms unlocks hyper_charge with an empty, fractional
resource (1C00 raw units,28 displayed points). The native X3 pause menu already
maps its H.Charge row to that ID. To test without collecting damage first:
sv_cheats 1
player_armor_arms x3:enhanced
weapon_select hyper_charge
weapon_energy hyper_charge 28
Use XSHARP_ARMOR_ARMS=x3:enhanced or a profile’s initial armor slot for startup
equipment. The existing weapon-energy command takes displayed points; C#
TrySetWeaponEnergy takes raw units. No new environment/convar mechanism is
introduced: the same equipment startup/runtime paths apply to this chip.
X3HyperChargeControl is independent of graphics, audio, entities and a host.
It ports $04:AA46..AB60’s separate +BE mode latch. Initial activation requires
a full bar. Once active, a partial bar continues supplying stored full arm shots;
ready mode tests held Shot, while a stored second shot still uses the existing
pressed/buffered request. Switching away clears the activation and both stocks;
switching back with a partial bar cannot reactivate it. The dispatcher’s initial
energy check tests whole points (high byte), so a subpoint remainder alone also
disables the mode.
Costs are applied after successful projectile allocation at the native animation
emission marker, not on the input press. $04:A55A/$06:B364 supply0400 raw units
per emission. Native head+body mask05 halves that to0200; in mixed engine loadouts
this discount requires both the X3 helmet and X3 body. A final admitted shot
saturates the positive remainder at zero. Both first and second shots use the
existing X3 firing poses, flying core/orbiters, charged projectile and fusion
controllers rather than generic special-weapon projectiles.
Accepted damage reaches the converter BEFORE body mitigation, following
$04:CD6A..CDDE: signed-positive damage*0040, saturating at1C00. Chip absence,
already-full resource and the active-mode latch reject conversion. Partial gain
replaces the normal hurt cue with native0E; reaching full uses18. Ordinary
energy drops cannot refill this resource. The existing pre-damage invincibility,
no-clip and hurt-state checks run before absorption.
Hyper uses the native Player palette clock and charge cue02. It does not spawn
ordinary buster charge particles: $01:84CD..851D explicitly retires that actor
for selected weapon12. The X3 menu’s $00:9FA4 restore path queues mode06,
preserves stocks and partial energy and reinitializes palette/sound when leaving
native ladder22. The adapter applies that path after the X3 menu’s closing clock
releases gameplay. Mode/stocks/animation clocks are part of the optional buster
save extension, validated before changing live state. Removing/changing the arm
chip cancels its pending requests without changing already emitted projectiles.
The native CPU-entry fixture contains1,687 snapshots (seven241-update cases). Its comparison covers activation/ready/pair phases and each observed resource debit, including discounted shots, held input, partial-bar rejection and forced resource exhaustion. Setup changes only equipment, resource and weapon choice; the depletion case patches the resource before update26. It does not write coordinates, camera or controller states. The attempted shoulder-switch case did not actually change weapons, and therefore does not prove native switching. The enclosing capture was interrupted by a goal pause after all probe rows had been written; its receipt documents that limit rather than claiming a completed video run. Switching and menu mode06 are backed by their original code plus host/controller tests. No whole-stage video, arbitrary wall/underwater behavior or complete native weapon-pool/lag equivalence is claimed by this fixture.
python tools/parity/capture_pause_menu.py --rom <X3-USA-ROM> --bizhawk <EmuHawk.exe> --state <playable-native-state> --wait-frames 0 --probe-hyper-charge --output <new-private-directory>
python tools/parity/extract_armor_source.py --rom-dir <ROM-directory> --check
dotnet test XSharp.Tests --filter "FullyQualifiedName~Hyper"
Validation:967 focused armor/buster/Hyper/Giga/barrier/scheduling/native-menu tests passed, one optional test skipped; all27 capture-tool tests passed. A muted imported-Penguin engine run with the original weapon-slot budget verified raw-damage conversion, both discounted delayed debits, buffered second firing, native X3 menu restore, save/load followed by matching controller/projectile/RNG continuation, selection/equipment gates and unchanged sound/sheet cache counts. It had no runtime ROM dependency. The same core integration also passed with a custom menu. These are source-controller and engine integration checks, not a claim of full original-game audio/video/lag equivalence.
X3HelmetRecoveryControl translates USA $04:A9E0..AA45. Equip it with
player_armor_helmet x3:enhanced (after sv_cheats 1), or set
XSHARP_ARMOR_HELMET=x3:enhanced before starting the host. The ability follows
the equipped part even when X’s base profile, other parts or common audio come
from a different game. The ordinary X3 helmet alone does not recover energy.
The native handler runs before the Player state dispatcher. It rejects Zero, any held input word, or a state other than idle00; any rejection clears both the initialized flag and countdown. First admission loads0134 and immediately decrements it, so the first point arrives on eligible update308. Subsequent points reload00B4 (180 updates). Filling all energy does not stop the clock; it continues at180 and an eligible resource can receive the next scheduled point without restarting the initial delay.
HP has priority. At full HP, scan four reserve bytes in slot order and increment
the first byte80..8D; absent slots and full8E slots are skipped. A point never
spills across slots. The host maps these bytes to the campaign’s ordered tank
identities; a single-level demo can recover HP without owning a campaign.
This path does not use pickup freeze, pickup healing cadence, or the full-tank
jingle. Both kinds of recovery request native X3 sound16, including the point
that completes a tank. The original command is also used for reserve pickups;
the existing x3-16-sub-tank-fill-tick asset is shared deliberately.
The independent recovery flash follows $01:8851..88D1, effect07/subid01.
Initialization selects sprite64/scriptD809 without drawing image0. Each following
update follows the player’s integer coordinates and draws images1..21 at one
update each. Image21 has the terminal marker and is still drawn; the next update
removes the effect. Twenty-one RGBA cells are composed from ROM assemblies that
must match consecutive captured OAM draws, using the same draws’ VRAM/CGRAM.
The renderer does not advance this clock. Pixels and native audio are prepared
during level precache, including when the chip is granted later via the console.
The optional armor-runtime extension stores the recovery flag/countdown without changing the legacy Player binary layout. Old states clear this clock. Invalid helmet state is validated before changing any live dash, barrier or helmet state. The new flash entity carries its own serializable animation and owner; respawn, death and helmet changes clear the player’s pending recovery delay.
Controlled muted BizHawk captures retain3604 updates across HP, reserve,
input-interruption and missing-chip cases, and242 flash states. Only equipment,
HP/capacity and reserve inventory were initialized; no position, camera, map or
palette state was forced. The model tests compare every retained countdown and
resource byte, and every flash image, remaining duration, script and marker.
Capture fingerprints are in Fixtures/Armor/x3-head-recovery-capture.json.
This covers the recovery routine; it does not claim complete scene/replay parity
or exact competition for the SNES’s small-object slots. The host respects its
own entity capacity; failure to allocate a flash does not undo the recovered
point or sound. X3’s ordinary stage scanner remains separate work.
The muted DX9 XSharp.LevelSmoke --x3-helmet-recovery check loads the imported
Hornet level without a ROM, equips the chip during gameplay, recovers its first
point in308 updates, observes the native flash, and verifies its save/load
continuation and retirement. The sound cache stays at344 entries throughout.
Focused armor/buster regression checks pass615 cases (two optional checks are
skipped); the GPU crop check includes all21 flash images. These numbers describe
this scoped milestone, not the entire repository test suite.
Regenerate the reference with capture_pause_menu.py --probe-armor-head, using
an already normally loaded X3 stage state, then extract/check pixels with
extract_x3_helmet_recovery.py --rom <X3-ROM> --capture <capture-directory>
(append --check to verify committed output). All research helpers stay separate
from runtime; the engine requires neither a ROM nor BizHawk to use the ability.
XSharp.Gameplay.X1.X1BusterChargeControl translates the isolated charge dispatcher
at $81:97C8..98D4. It is a reusable, serializable controller in XSharpShared,
without a renderer, sound device, ROM reader or executable-host dependency.
The source representation stays separate from the X2/X3 protocol: X1 uses a
descending counter at +57, phases00/02/04 and palette levels03/02/01.
Holding Shot initializes B4. Reaching96 enters the visible charge, requests sound03 and immediately falls through to another decrement (149 remains on that update). Ordinary full charge tests the old countdown50 before its decrement; the arm-upgrade tier tests the new value01. From an initialized idle charge dispatcher, these boundaries are held updates31,101 and179, respectively. The eight boundary cases are static-source checks, not yet an original-emulator capture of the entire Player update.
The charged-shot/dead gates return before palette advancement. The input-lock gate returns after it. Palette updates require the visible flag and use a two-update XOR02 cycle after the initial tier-specific timer. Releasing before the visible tier does not emit a charged shot. Releasing a visible tier requests sound17 and clears the charge even when the host rejects its projectile request.
DB06:BA71 maps the palette level to request04/08/02 for arm-full,
ordinary-full and semi, respectively. $81:94A5 then converts request»1 through
DB06:BA76 into projectile02/03/01. A request ID must never be mistaken for a
projectile ID. The default/upgraded sound table at DB06:BB0E selects01/05,
while the explicit semi/full branches at $81:9FFA select04/02.
Twelve focused tests cover those boundaries, the phase-entry double decrement, gate ordering, rejected emission, cancellation and binary save/resume. The pinned receipt includes the code and both request/actor/sound tables. The original-game capture below now verifies every charge update too. Equipped X1 arms select this controller in the host; the later runtime milestone describes its scope.
XSharp.Gameplay.X1.X1ArmBusterControl translates projectile02 at
$83:898E..8C3D, independently of rendering/audio and the executable host.
The preparation animation’s terminal marker allocates variant04 followed by02.
Each component has its own flight delay, vertical offset and oscillation phase:
| Variant | Initial delay | Vertical offset | Initial native VY | Phase / timer |
|---|---|---|---|---|
| 00, core | 1 | 0 | +054A | 0 / 8 |
| 04, child | 7 | +12 pixels | -018A | 1 / 5 |
| 02, child | 4 | -12 pixels | +018A | 0 / 3 |
Here native VY is positive upward; the host-facing Vector converts its sign. Horizontal speed is +/-0600. The selected phase subtracts/adds gravity00C0 before displacement. At an eight-update phase boundary, VY is assigned -/+054A before that update’s gravity; flattening the components into a single straight shot loses both this phase change and the staggered launch.
The source stores64 history samples per component in bank7F, at B800/B900/BA00. Each sample stores integer X with a render-queue class bit and integer Y; +3A advances by four modulo256. Four small-object trails sample each component’s history. Only the core directly renders its ordinary sprite: child +17 therefore retains the pending-render bit80, which must not be confused with animation +0F’s terminal marker. Reflection uses a stationary selector08 impact; retirement advances history for16 following updates. Native small-object rendering and contact experiments remain separate host/presentation work.
The muted BizHawk BSNESv115+ capture uses the normally loaded X1 stage reference.
Its only WRAM write selects armor inventory; facing comes from Left input and
all shots from held/released Shot. No position, camera, palette or stage state
is forced. x1-arm-charge.csv retains938 Player updates in semi/full/upgraded
right/upgraded left cases, and the controller matches all938 charge states.
x1-arm-shots.csv retains467 weapon updates; all286 projectile02 updates match
positions, velocities, phase/delay/history clocks, animation and retirement.
Other weapon IDs in the capture are retained as context, not claimed as reviewed
by this wave controller. Unwritten initialization bytes are excluded from the
comparison, and the captured recycled-slot fractions/velocities are explicit
inputs; this is not proof that the host allocator reproduces native slot reuse.
Fingerprints and scope are in x1-arm-capture.json.
Four source WRAM snapshots also supply58 recorded history samples in
x1-arm-history.csv. The model matches their integer coordinates and vertical
render bits; preserving a projectile’s fractional coordinates in those samples
would be incorrect. History buffers and oscillation state survive a binary
save/resume check. Reflection and nonlethal-hit retirement have additional static
branch checks (27/18 updates, respectively); these are not captured contact tests.
Regenerate/verify the static metadata with:
python tools/parity/extract_x1_arm_buster.py --rom XSharp/Assets/ROMs/ShittyDash.mmx --check
The capture route is capture_pause_menu.py --probe-buster-arms with the pinned
X1 ROM and a normally reached gameplay --state. Its output is private; only the
compact CSV traces, provenance and generated metadata are versioned.
The resulting milestone passes871 selected equipment/buster/precache/Player physics checks with one existing optional skip,23 capture-tool checks and all four armor/buster source-metadata verifiers. This does not activate the X1 arm ability in Player or prove complete native rendering/contact/level parity.
The built-in X presentation now renders each equipped part. The existing
Assets/Sprites/X/X.png atlas already contains independent X1/X2/X3 helmet,
arm, boot and body regions; it is packaged as Sprites.X.ArmorAtlas.png in the
resource-only common asset assembly. No ROM or extraction runs during gameplay.
ArmorSpriteAtlas maps the current source pose to the selected part’s family
panel, including the atlas’s special-pose sections. Precache builds every part
and family crop before the level starts. Console changes select those cached
frames immediately. Four-pixel transparent margins retain protruding armor pixels
outside the original blue sprite’s tight crop. Death-explosion particles are
excluded from armor composition.
Rendering follows the order explicitly documented by the atlas: base or helmet replacement, arms, boots, then body. Helmet frames replace the blue base rather than drawing a second full character. The animation’s own pivot, direction mirror, scale, fading and palette are shared by all layers. Physics, collision boxes, input, animation timing and serialized Player fields are unchanged by this path. Custom sheets retain their own presentation when no matching armor frames exist.
The DX9 cropper snapshots the small palette once per crop instead of locking the palette texture for every source pixel. This makes preparing the extra layers practical while preserving first-match palette indices, duplicate transparent entries and unknown-color transparency.
Validation includes all 256 normal mixed/no-part combinations and the reported X3 body + X3 arms + enhanced X3 boots combination. The focused engine run passes 217 cases. Twelve D3D9 image tests pass, including 72 armor crops (six representative poses, four parts and three families) compared pixel by pixel with the source atlas and the existing Scriver/Bospider image regressions. The Sandbox was also run muted with the reported equipment; the three parts were visibly present.

The live capture uses stage X2/02 and the built-in X3 player with the custom pause menu, independently of native menu asset bundles. It demonstrates the equipped atlas layers in an actual D3D9 frame. It does not prove every special pose, underwater/vehicle layering, native upgraded-shot gestures, all backend drivers, or whole-game pixel parity. Native pose/OAM and chip/gold-palette refinements remain part of the active armor work.
Equipped X2 boots now select a device-free ArmorAirDashControl, independently
of the base player family. The same controller runs with custom, X1, X2 and X3
player profiles. X1 boots do not grant an air dash. X3 boots use the additional
upward/chip behavior described below.
The native gate compares stored air speed against 0375, so an ordinary dash
jump already uses X2’s air-dash opportunity. The airborne dispatcher runs at
$08:9D04, selected by state 54 in the table at $08:9634. Each admitted dash
update moves exactly 0375/256 pixels horizontally. It initializes its timer to
10, moves before decrementing, and requests state 56 on signed underflow:
17 movement updates with the button held. Releasing Dash, pressing the opposite
horizontal direction, or consuming side contact requests recovery without a
movement update. Command-origin continuation is now integrated separately through
PlayerCommandDash; its direction holds do not fabricate a Dash button.
Writing FF to player byte +1D preserves the previous low byte at +1C.
Therefore the horizontal dash retains a nonzero stored Y velocity while its Y
displacement stays zero. This distinction matters to state/movie comparisons.
Recovery $08:9DD2 clears both velocities, then permits seven vertical gravity
updates before requesting ordinary falling on update eight without displacement.
Horizontal input can end that recovery early. Visuals currently use the existing
precached dash/fall projection; native armor overlays and OAM remain pending.
Transient controller state is saved in the optional xsharp-player-armor:v1
extension using raw fixed-point scalars. New Player fields are excluded from the
legacy entity serializer. Loading an older snapshot clears this controller;
respawn, damage, capture and vehicle control also discard the airborne dash.
An initially equipped boots sound bank is prepared during level precache.
Playback requests only cached audio and can use the already cached legacy dash
clip when the optional native bank is unavailable.
The reference fixture is XSharp.Tests/Fixtures/Armor/x2-air-dash.csv, with its
ROM/state/script/fixture hashes in the adjacent source receipt. Three windows
contain 63 accepted native updates covering full dash, early release, attempted
reuse, and recovery. They match the controller’s requested position, stored
velocity, state/substate and timer exactly. This proves these isolated motion
windows, not an entire level, native armor graphics, or every terrain contact.
Hosted tests additionally exercise the real Player input/physics path and an
in-flight raw-scalar snapshot restore.
Reproduce the controlled experiment with the existing private muted capture host:
python tools/parity/capture_pause_menu.py --rom XSharp/Assets/ROMs/BestGame.mmx --bizhawk "C:/Program Files/BizHawk/EmuHawk.exe" --output <empty-directory> --state <naturally-initialized-native-state> --wait-frames 0 --probe-armor-dash
The probe writes only equipment flags, then uses ordinary controller inputs. It rejects a setup that does not actually admit a jump/air dash. The early X3 diagnostic attempts did not admit preparation Jump; those failed attempts are not parity fixtures. The cause and corrected experiment are documented below.
The same source-independent equipment slot now admits X3 horizontal air dash,
Up + Dash and the enhanced boots’ second use. The horizontal branch shares the
17-update displacement/retained-speed behavior. The upward branch at $04:8C05
uses a 20 timer (33 movement updates). It reads the pre-animation low flag
nibble at +0F through $06:B346. Sprite33/34 selector20 at $3F:D248 has
durations 3,3,3,8,2,2,2 and flags 00,01,02,03,44,05,86; the terminal entry
loops to itself. This produces 21 displacements of 0078/256 pixels, followed
by twelve of 0500/256 pixels. Horizontal position stays fixed while the stored
horizontal velocity is retained. The source animation clock, not rendering,
determines these speed changes and the two Common0A requests at flag44.
At $04:A973, an already latched +5C=0375 rejects another ordinary air dash.
An X3 boots chip ($1FD7 bit80) instead tests and clears +C2 bit01 before
testing the facing-side obstruction. A rejected wall-facing request can therefore
consume that extra use. Ground/landing and the reviewed wall-support states
restore usage. Damage/capture/vehicle cancellation preserves a consumed budget;
respawn resets it. A dash jump also sets the 0375 latch, so using an air dash
after a dash jump consumes the chip opportunity rather than granting two more.
This flag is saved alongside the source game, upward mode and animation clock
in the optional armor-runtime extension. Older X2 extension payloads still load.
The X3 capture initially pressed Jump during native idle initialization /00.
$04:82D0..82F7 initializes idle and returns without testing that fresh press.
Moving Jump to the already initialized idle update resolved the capture. CPU
execution hooks confirmed admission at $04:C988 and $04:A6FE. Preparation
walks within the original scene using ordinary input; no player-coordinate,
collision, camera or palette changes are made. The X3 fixture records the
corrected experiment, including no boots, early release, attempted unenhanced
reuse, full upward dash and both enhanced reuse directions.
x3-air-dash.csv adds 249 original updates in nine admitted dash/recovery
windows, including one correctly rejected unenhanced repeat. The tests compare
requested position, stored velocity, native state/substate, dash timer, chip
budget and upward animation flags. Every compared update also round-trips the
controller state. Real Player tests cover X3 upward/chip behavior under all four
base player profiles and an in-flight raw-scalar snapshot. Ordinary motion
between the isolated dash windows is not claimed as complete X3 physics parity.
The command parser/continuation is now integrated with scoped original traces;
full special-pose graphics and effects remain under per-frame review.
MegaManX3BusterProfile now creates NativeX3Buster for normal, semi-charged
and fully charged shots, independently of the current stage’s source game.
The core X3BusterControl implements the reviewed dispatchers at $01:88D2,
$01:8974 and $01:8FA2. The prior generic animation-driven projectile is
still available to custom profiles; selecting a custom profile with X3 as its
sound/art source does not implicitly replace its configured motion policy.
The normal shot adds 0040/256 speed before movement, then clamps stored
speed to 0600/256. Its saturated displacement is therefore 0640/256 while
the displayed stored speed remains 0600/256. Semi-charge preparation follows
the player’s integer X, retaining the weapon slot’s fraction and initial Y.
Fully charged preparation follows both X and Y, using the gun-bearing image
table at $39:9000/9064. Its shorter two-entry preparation script is different
from X2’s three-entry script. Full-charge flight initializes 0800/256 speed
and returns without displacement; semi-charge flight initializes 0600/256
and moves in the same update. Offscreen bounds are X3’s +20/0140 horizontal
and +20/0120 vertical unsigned tests, not X2’s smaller vertical margin.
Projectile state and geometry use the extracted script durations/flags and
collision tables. Reflection and lethal/nonlethal contact select their own
native dispatch branches. Impact placement uses $04:D781’s half-inclusive-
overlap calculation. The host adapter bypasses ordinary world physics so native
displacement is not applied twice. Legacy enemies/bosses recognize the common
buster-kind identity for their existing receiving-damage policies. The profile
is retained by each spawned shot, and its entity/assets are explicitly declared
during level precache.
tools/parity/extract_x3_buster.py regenerates both the original-code receipt
and X3BusterAnimationData.g.cs; --check verifies them against the pinned USA
revision. It extracts data and records reviewed assembly spans, without claiming
to transpile arbitrary code. Reproduce with:
python tools/parity/extract_x3_buster.py --rom XSharp/Assets/ROMs/ZeroIsJegue.mmx --check
python tools/parity/capture_pause_menu.py --rom XSharp/Assets/ROMs/ZeroIsJegue.mmx --bizhawk "C:/Program Files/BizHawk/EmuHawk.exe" --output <empty-directory> --state <naturally-initialized-native-state> --wait-frames 0 --probe-buster
The muted capture clears only armor/chip inventory before ordinary Shot input.
It samples the first eight weapon slots at $10D8, actual image field
+17, and the player’s gun-bearing image at $09EF. The test fixture contains
158 original states across five projectile lifetimes in three charging
cases. Tests compare initial integer gun placement, position, dispatcher state,
velocity, animation countdown/flags/image/script and initialized collision
pointer. The full-shot initializer deliberately leaves velocity/animation from
the previous slot; those unwritten initial fields are excluded. Native image
comparison masks its high bit. The capture manifest retains the ROM revision,
input-state, generated Lua and CSV hashes.
This is not complete X3 buster parity. The adapter currently projects the
existing weapon sheet and representative gun-bearing images for the host’s
movement states. Its walking/jump subframe pose clock, native OAM and full-shot
visual trail ($01:9105, effect34) still need integration. The optional native
pool’s fractional-slot reuse and complete movement-state admission also
remain pending. The fixture proves the isolated idle-shot controller; it does
not prove an entire level, moving-player placement or contact against an
original-game enemy. Focused source-backed tests cover reflection/contact and
controller serialization; hosted tests cover factory/audio/identity and motion.
The milestone passes 106 focused engine tests (including the existing X2
buster and armor regressions), 18 capture-tool tests and both source-receipt
checks. Demo and Sandbox builds pass. This does not replace the broader suite’s
baseline limitations recorded below.
X3BusterChargeControl translates the basic input dispatcher at
$04:AB61..ACB7, including the separate palette update at $04:AF13. The native
counter is +57; +58 is the phase, not the counter. First held input enters
phase02 with counter zero, then subsequent held updates increment the byte.
Counter 14 enters phase04 (semi charge) and 50 enters phase06 (full basic
charge). Thus a 20-update hold still releases without a semi charge, while 21
updates release one; an 80-update hold releases semi, while 81 releases full.
This avoids the old generic delay until the firing pose stopped. Built-in and
data-only X3 profiles now declare counter thresholds 20/80. Custom, X1 and X2
input behavior is retained.
The palette clock advances before the charged-shot-count/control/death gates.
Native +7D is the charged projectile count at $0A55: while nonzero, it freezes
charge dispatch and retains the counter, but does not stop palette updates.
The adapter uses the existing charged-shot ownership flag and admission gates;
native-release rejection clears charge without leaving a future phantom shot.
The basic full-charge phase survives byte-counter overflow, as the dispatcher
does not return to the lower phases when the counter wraps. Charge audio now
requests X3 Common02 at the native threshold and stops only its matching source
on release/cancellation; the visual charging effect suppresses its old X1 audio
path for this profile. Missing native audio falls back to the existing cached
charge clip, and cancellation stops only the matching native/fallback source.
Native palette timing is simulated independently of the
existing visual palette/effect projection.
The state uses an optional xsharp-player-buster:v1 scalar extension. New saves
retain the charge counter, phase and palette clock without inserting serialized
fields into Player. Missing extensions clear the new controller for X3 and
preserve the serialized generic charge fields for Custom/X1/X2. The charging
effect also accepts level2 before resources/spawn and rejects invalid levels;
its initial requested level is preserved on spawn.
x3-buster-charge.csv retains 1,562 original updates: 957 basic-charge updates
are compared, and 605 separately equipped-arm updates are retained for the
next upgraded-shot controller. Each basic update compares counter, phase and
palette state, checks projectile creation/classification, and round-trips its
scalar snapshot. Hosted Player input tests independently exercise the 20/21 and
80/81 release boundaries. The upgraded cases explicitly equip arm bit02; normal
cases clear it, and chips remain disabled. Original states are never forced into
an upgraded attack while the arm part is missing.
The reviewed dash-shot dispatcher $01:8AE9 uses weapon06, which starts at
0600/256 speed without acceleration. Its reflection initializes upward speed
0300/256, then subtracts gravity 0040/256 before each movement, unlike the
ordinary lemon’s constant reflected vertical speed. The engine now preserves
the dash-shot identity for its configured damage/receiver policy and ownership
count. x3-dash-buster.csv compares 30 additional original flight/animation
updates, including initial placement through the native image lookup. Reflection
has source-backed controller coverage; the dash trace does not contain a live
enemy ricochet. Capture manifests retain raw/subset hashes, Lua hashes and the
initialized source-state fingerprints.
For the upcoming Neon Jump work, $04:ADEB classifies horizontal air-dash states
54/56 and upward states68/6A among the release branches that can enter $04:A873
(state4A) from an upgraded stored charge. This was the initial state-transition lead. The equipped X3 arm/boots capture
and same-frame Jump implementation are documented in the runtime milestone
below; the X2 counterpart still needs its own implementation and trace.
This milestone passes 126 focused engine tests, 19 capture-tool tests, both source-receipt checks and Demo/Sandbox builds. The upgraded-arm capture rows are research evidence; their presence does not imply implemented arm-upgrade parity.
The next simulation layer is implemented in X3ArmOrbControl and
X3CrossShotControl. These reusable headless controllers were initially delivered without Player
input. The runtime milestone below connects normal X3 arms to the charge
continuation and firing poses; native OAM/trail rendering remains incomplete.
Weapon1D dispatches at $01:C0E8. Variant0 is the core; variants3,2,1 are
allocated in that order. The core starts at 0080/256 speed, initially adds
0008/256, then changes acceleration to 0040/256 when its 16-update timer
expires. Movement happens before clamping the stored speed at 0500/256.
The orbiters use six-byte entries at $06:BB37: duration, render class, signed
X speed and signed Y speed. Their seed cursors are different, but the zero
duration sentinel loops each cursor to zero. Every update adds only the core’s
integer X displacement, retaining each slot’s fractions. The initial offsets
at BB22 are applied without a direction mirror. Orbiting pieces are damage
disabled. A nonlethal/reflected core hit detaches variants2/3 with signed
acceleration; variant1 drains its trail instead. The 30-update drain is retained
after the orbiters stop moving, rather than deleting them immediately.
$01:C42F tests a flying basic full charge (id03, routine02/06, state02) against
the core. It copies only that projectile’s integer coordinates, retaining the
core’s fractions, and displaces the consumed shot outside camera bounds. Sprite84
selector0 then supplies the fusion clock. Its nonzero flag emits five pieces,
once, at $01:C49D. Weapon1F/variant0 is the center; weapon20/variants4..1 are the
four rays. Signed acceleration, the velocity cap before acceleration, source
animation and the ten-update removal delay are implemented. Sprite58 supplies
the ray/orb scripts. Sprite84 has two reviewed selectors; following a guessed
third selector enters unrelated data and is deliberately excluded.
The fusion scan’s end address $1318 proves that X3’s weapon slots span
$10D8..12D8: nine 64-byte slots. The first arm probe sampled only eight and
missed the center piece in slot8. The corrected probe captures all nine. Its
x3-arm-orbs.csv fixture retains 1,277 rows; tests compare 819 core/orbiter
states and 325 fused-shot states, including fusion eligibility, position,
stored velocity, state/routine, flags, pattern/animation clocks and cleanup.
Core animation bytes are intentionally uninitialized until fusion/impact and
are excluded before that point. The native counter starts at 38 in this input
state; the center’s periodic trail request is compared using that independent
seed. Snapshot tests also resume orbiters and fused shots without a device.
Reproduce with --probe-buster-arms on the existing private capture host. It
equips native arm bit02 before ordinary charging/second presses and clears the
chips. No player coordinate, camera, stage, collision or palette writes prepare
the scene. The capture manifest pins the source-state, generated Lua and raw CSV
hashes. The source extractor now retains the dispatchers, orbit tables, collision
and animation metadata. Private WRAM trail-history rendering, original slot
allocation in the host, live enemy impact comparisons and OAM composition remain
outside this controller milestone.
Static review also refines the Neon Jump lead: ground-charge states4A/4C test
fresh Jump at $04:942C/94A9, call $04:986B, and request air-charge4E/50. That
helper stores the animation subphase in +90, sets +2F to08, gravity to40 and
upward speed to0553. An upgraded release from air-dash54/56 can enter the ground
charge state through ADEB/A873, providing a reviewed route to this impulse.
The runtime milestone below now compares this route with matching equipment
installed. Both ground-charge handlers and the impulse/speed-reset helpers are
retained in the ROM receipt.
This controller milestone passes 137 focused engine tests, 20 capture-tool tests and source-receipt verification. Demo and Sandbox builds pass. The 1,144 compared projectile states prove the scoped model behavior, not an equipped Player’s complete upgraded firing sequence or its graphics.
Equipping X3 arms now enables the native two stored-shot continuation in every
base player family. Ordinary charging reaches the double-shot state at native
counter140 and the full/cross state at200. X3ArmFiringControl reads the retained
source sheet0 selectors and their flags; rendering never decides when to emit.
The first stored shot creates X3ArmOrbWeapon and its three independently
simulated orbiters. A fresh second press can be buffered by the first pose. The
second stored shot creates a native id01 semi or id03 full shot. An eligible full
shot overlapping the core enters the reviewed fusion clock and emits the center
and four rays through X3CrossShotWeapon.
The first and second emissions both request native sound05, including the semi-charge second shot. Their source profile remains X3 when the basic player and ordinary buster use X1/X2/custom. Assets for these adapters and their X3 sound context are prepared during level precache so equipping arms via console cannot introduce first-shot loading. The existing weapon atlas supplies visible static core/orb/fusion/cross projections; native part OAM, trail history and full X3 player firing poses still require a presentation pass.
x3-buster-charge.csv now compares all 605 equipped-arm charge/palette updates
in addition to the 957 basic updates. x3-arm-orbs.csv supplies 368 distinct
Player firing updates that compare both stored slots and each active firing
image, including the buffered transition and five actual emissions. Native state
requests retain the old image and defer the new state’s entry until the next
update. This matters for both the buffered second shot and landing/jump changes.
The new --probe-armor-neon uses a normally initialized X3 intro state, walks to
headroom with ordinary input, equips arms+boots (0A) and clears chips. The only
WRAM writes prepare inventory; no positions, cameras, palettes or collision are
forced. Releasing Shot and pressing fresh Jump at input224 while air-dashing
requests state4E/00. The following update initializes the airborne firing pose.
Pressing Jump one update later misses the ground-charge handler’s admission.
x3-neon-jump.csv retains both the release-only control and successful same-frame
Jump windows, with fingerprints in x3-neon-jump-capture.json. Actual hosted
Player tests compare 58 position/velocity updates (12 control, 46 Neon Jump),
as well as retained horizontal speed, stored slots, script address and countdown.
Absolute source coordinates are translated by a constant for the small test
world; every displacement and fractional component remains unchanged. The tests
stop before the control route’s native floor contact rather than substitute a
made-up floor for that scene.
The transition update does not move. $04:986B writes upward velocity0553 and
$04:B905 resets stored horizontal speed to0178; the old VX remains observable
until the next air handler. The next moving update applies gravity40 first,
producing upward velocity0513. Held Left/Right reapplies +5C through AFA6; releasing
Jump cancels ascent. Native wall/dash interruptions and underwater variants remain
outside this scoped integration comparison.
The extended capture ends at input269, before the source floor clips movement. After the firing pose completes at246, both originals retain upward VY0013. Gravity produces downward002D and006D on the next two updates. The legacy integrator normalized006D to0040 and lost45/256 pixel. A controller-specific policy now preserves that remainder through the arm pose’s airborne fall continuation; ordinary jumps and other sprites keep their existing policy. The continuation also reads the current horizontal input, including release255, and is suppressed by a new jump and cleared on landing, hurt, equipment changes or respawn. This flag is part of the optional snapshot extension and introduces no field into the legacy binary Player layout. Tests include save/restore with no stored shot left and ordinary-jump/damage isolation. A translated test window stays above the small host world’s abyss boundary; it does not emulate the source landing geometry.
An optional additive xsharp-player-buster:v1 payload now includes both stored
slots and firing script/pending-entry state. Old payloads supply default values.
The complete extension is validated before changing the live Player. Changing
arms cancels the old charge and its sound before selecting the new equipment;
already emitted projectiles keep their source/profile. Charged ownership remains
set until every compound component is gone. With original object limits enabled,
the adapter caps the player’s active/queued weapon parts at nine; this is a
capacity guard, not exact native allocation/reuse parity.
This runtime milestone passes 209 focused engine/profile/equipment tests, 21 capture-tool tests and both ROM-receipt checks. Demo and Sandbox builds pass. Tests and the private emulator capture run with audio muted. No complete level, native armor/OAM, live enemy-impact or all-armor parity claim is made here.
The same inventory-only --probe-armor-neon now supports X2. The retained
x2-neon-jump.csv and its fingerprint manifest capture both release-only and
same-frame Jump with native arms+boots0A. The later X2 runtime milestone below connects this original-game research to
the equipped-arm adapter.
X2’s charge dispatcher is $08:BBD1..BE74. Its phase10 retains counter200;
X3 instead writes201. Ground states4A/4C use selectors29/2F (buffered23), and the
first airborne firing selector is3C. $08:AD75 requests upward speed0553 and
$08:C669 resets air speed0178. The transition update retains VX and performs no
movement; the next moving update has upward velocity0513. The capture confirms
the same-frame Neon Jump route through the air-dash release classification.
The DB06 tables at AFF4/AFF7 contain first-shot IDs00/01/03 and second-shot
IDs00/1D/1D. Thus the upgraded first shot is semi/full, and the second is1D,
unlike X3’s green-core-first compound emission. Both X2 upgraded emissions
request sound06 through $08:B098; the retained second slot also has periodic
sound07 at BE6D. These tables must be read from DB06, not the executing code’s
bank08. Exact byte ranges and interpretations are retained by
extract_armor_source.py; the purple projectile controller and its Player/emission
adapter are now integrated as described below.
XSharpShared now includes X2ArmBusterControl, the separate $2A:C1E2
controller for weapon1D. The core creates variants2/1; unlike X3 it does not
fuse with another shot. The core starts at0200, accelerates by0040 before each
movement and caps stored speed at0800 afterward. A capped frame therefore
travels0840. The two satellites use unmirrored signed offsets (+8,-21) and
(-8,+21), opposite entries of the DB06 BA5C pattern, and add only the core’s
integer X displacement while retaining their own fractions. Both can damage
enemies. A missing parent selects state02 and horizontal speed0800; subsequent
updates call $00:D9E3, which moves X only. The previous VY remains observable
but must not change Y. An offscreen satellite drains its trail for thirty
following updates before releasing its slot. Lethal hits restore normal flight;
nonlethal and reflection paths use distinct retirement/animation branches.
The gun table at DB06 B5F6 contains146 bytes (73 pairs), ending at B688’s charged
hitboxes. The existing ordinary-buster snapshot covered128 bytes and does not
cover the upgraded second-air pose $84 (132 decimal). GunOrigin uses the complete
reviewed extent, unsigned horizontal/signed vertical offsets, mirrored dx and
retained allocated-slot fractions. In the source’s 16-bit BIT $10 instructions,
the overflow/facing bit comes from the high byte $11; interpreting that BIT
as an 8-bit instruction would incorrectly make every freshly initialized shot
face right because $10 initially containsFF.
extract_x2_arm_buster.py retains the reviewed code ranges and regenerates the
sprite $54 (84 decimal) scripts, hitboxes, gun offsets, orbit offsets/seeds and signed
pattern in a renderer-independent shared module. Run it with --rom <X2-USA-ROM>;
--check verifies both generated source and the JSON receipt without rewriting.
The capture receipt
pins an inventory-only native experiment using ordinary charge/second-press
inputs. All292 purple weapon rows match positions, velocities, routines, states,
render classes, pattern/trail clocks and native animation pointers/countdowns.
Separate source-backed tests cover left-facing anchoring, retained fractions,
horizontal-only detachment, reflection, lethal/nonlethal hits and serialization.
The Player/actor integration below additionally exercises these native rows.
Native OAM and small-object trail projection remain separate presentation work.
The Player adapter now selects separate X2BusterChargeControl /
X2ArmFiringControl or X3 derivatives of the common SNES protocols. Equipping
X2 arms in any base player/buster profile enables the native two-slot charge:
141 held updates store two level1 shots, and201 store level2. The first upgraded
emission is a source-X2 id01/id03 X2StoredBuster; the second always creates
id1D X2PurpleBuster, followed by variants2/1. These upgraded projectiles retain
their own source profile, gun pose, damage index and sound after equipment/base
profile changes. Ordinary shots below the stored threshold retain the independently
selected base buster policy.
The bounded spawn graph is queued before initialization, allowing all three purple pieces to initialize in one update even through the host’s late-spawn phase. Each actor records its actual initialization frame. The next logical update advances its protocol even when the entity’s ordinary age counter is still zero; this avoids duplicating the first picture after late initialization. The optional original-capacity mode admits eight owned weapon parts, while the general engine limit is always enforced. Native slot allocation/reuse, retained slot fractions and small-trail allocation are not reproduced by this count guard.
The shared first-shot controller was also completed for source reflection and
vertical preparation anchoring. $01:88ED follows integer X for both kinds, but
skips the Y write only for id01; full id03 preparation follows integer Y as well.
All coordinate fractions are retained. Reflection uses the stationary selector3
burst at $01:8714/8BB9, followed by routine08/state04 removal. The unrelated
id06 bounce dispatcher at $01:884B must not be used for full id03 shots.
The directory at $00:F90D maps id02 to Item Tracer $01:8963; an earlier
annotation identifying id02 as the bounce dispatcher was incorrect.
Source sound02 starts/stops the charge, both upgraded emissions request06 and the retained X2 second shot periodically requests07. Charge effects remember their source when spawned, so removing/swapping arms does not make the old effect stop a different family’s charge sound. The periodic request uses the host simulation counter; absolute alignment to a native lag/global-counter stream remains a separate high-precision-host concern.
The stored-second readiness indication is shared by X2 and X3. The original
palette handlers at $08:BE18..BE74 and $04:AF13..AF67 request sound07 when
the first slot is empty and the second remains occupied, on updates where
$09CC & 15 == 0. X3 also checks that X is alive and controllable. The host
requests the equipped arms’ native sound on channel2; mixing the arms with a
different basic buster does not change that source. The audio naming rules call
this cue Buster Stored Shot Ready for each game and regenerate the matching
clip/manifest names.
Palette indices0/4/12 select a highlighted palette and2/6/14 restore the normal
player palette. The clock toggles the pair every two simulation updates. X2’s
stored shot uses the purple program0138. X3’s lower upgraded tier also uses
program0138, while its highest tier uses red program0144, whose colors are
retained from $8C:A5A0. The source receipts include both palette tables.
Consuming the second stock ends the indication. Cancelling or changing arms
also clears the palette. A stored second shot has charge phase0 and
charging == false; the native charge-particle actor ends on release while
the independent Player palette/sound indication continues.
Focused controller tests cover both stock tiers, the sound cadence, empty/full slots and consumption/cancellation. Hosted Player tests cover palette selection, the native sound request through a mixed loadout, counter wrap and equipment cancellation. These tests validate state and audio requests; they do not claim new live BizHawk audio/PPU parity captures or completed native charge-particle colors and firing-pose presentation.
The initial packed common-pose repair used a bounded armor margin. The blue dash crop
is (34,341,38,26); expanding it blindly by four pixels samples the preceding
pose and crosses row369 into the next panel. During precache, the armor builder
bounded the margin by midpoints to adjacent disjoint poses and by the common
panel edge. It retains the original pose pivot, so the extra armor area does
not shift the layer. Source-box tests exercise the production builder, and the
Direct3D9 indexed-crop checks use the bounded dash cell. A composed-atlas image
confirmed removal of the neighboring fragments. This scoped repair does not
complete the native upgraded firing or upward-dash pose adapters. The later
948-cell ownership audit supersedes this midpoint heuristic for known
common poses; the heuristic remains only for unreviewed/custom source boxes.

This image composes source-atlas pixels for crop inspection; it is not an in-game screenshot or a new native-game parity capture.
The wall-slide path must not enter the standing/airborne full-body firing
controller. X2 $08:BD9A..BDC6 and X3 $04:ADEB..AE1F return a separate
overflow classification for wall jump10 and wall slide12. The XSharp adapter
now keeps wall support, selects ShootWallSliding and consumes each stored
slot through the corresponding wall shot request. The native wall-slide images
are44/45/46; images47/48 belong to wall jump. X2’s wall-slide shooting helper
receives base18, so (base + phase) * 2 gives gun-byte indices48/50/52.
The X2 native capture receipt
and its60-row trace retain a controller-only approach to the right wall from
the initialized Stag Final Climb.bk2 state, after equipping the arms inventory.
First release retains state12 and the second slot; the fresh second press16
updates later consumes that remaining slot. The initial image44 is observed
for five updates, then image45 for six, before image46.
The initial pose still faces the wall: the captured first id03 has gun index48, right-facing attributes66 and VX0600. After the animation turns X, the second id1D uses gun index52 and faces left. Thus an unconditional reversal of every wall shot also loses native behavior. The adapter chooses direction from the wall pose and captures it in a spawn-only request field; X turning before a queued projectile initializes does not reverse that projectile or its children. This field is excluded from the legacy entity serializer.
Hosted regression coverage checks33 original gun/pose updates and the integer launch positions, both wall sides in X2/X3, each stored slot, and direction retention across late spawn. It does not claim complete stage/PPU parity or native recycled-slot fractions. X3’s wall classification and scripts have static original-code coverage; a comparable live X3 wall trace remains pending. The separate standing/airborne super-shot and upward-dash artwork work is still open. See the pose capture workflow.
The optional xsharp-player-buster:v1 payload now tags SourceGame; old payloads
default to X3. A pre-integration untagged basic charge with X2 arms can migrate
the common phase0..6 subset. Stored slots/firing scripts are never reinterpreted
across families. The entire charge/firing wrapper is validated before either
live controller changes. Swapping/removing arms cancels the old protocol before
changing the equipped family. No serializable fields were added to Player or
ChargingEffect; the new projectile types serialize their independent protocol.
Production actor tests compare all292 purple rows and57 first-shot rows against the native capture. The first-shot comparison supplies the quarter-pixel fraction that the captured native slot retained from its earlier lemon; it does not claim the general host’s allocator recreates that initial fraction. Unwritten full-shot initial animation bytes are excluded. The actual Player input/physics adapter also matches 58 X2 charge-release/Neon updates (12 release-only and 46 same-frame Jump), alongside 58 X3 updates. Mixed X1/X2/X3/custom base profiles, both facing directions, compound ownership, source sound06, live equipment swaps, snapshot family rejection and legacy basic-state migration have focused coverage.
The existing trilogy weapon atlas supplies pink core, blue satellite and impact frames. All nine X2 arm crops pass real D3D9 crop/readback pixel comparison with that atlas. Source render-class ordering, small-object trails, complete native gun/OAM gestures and wall/dash/underwater interruptions still require integration; these validations do not assert complete upgraded-arm visual/combat parity.
This integration passes 854 selected equipment/buster/precache/player-physics tests with one existing optional skip,14 D3D9 sprite-image cases and22 capture-tool tests. All three source-receipt verifiers pass. Emulator experiments and host smoke launches use muted audio.
An equipped X3 body now uses X3BodyBarrierControl for accepted damage, regardless
of the base player’s family. The controller is device-free. The ordinary body
halves positive integer damage, rounds down and clamps to one; that hit sets a
pending barrier request. The request itself grants no extra protection. The host
calls the native allocation protocol when the existing hurt reaction ends,
including its wall-contact exit. It is deliberately not called on every update.
Native $04:CE3C uses request/allocation bits80/40 for the normal barrier and
20/10 for the enhanced barrier. When both normal bits are set, the next accepted
hit subtracts another point after halving, consumes80 and lets the effect retire.
When both enhanced bits are set, the damage helper subtracts another two points
without consuming20. Minimum damage remains one. There is a further native
nuance: the hurt-recovery allocator clears both request bitsA0 if the matching
allocation already exists. The enhanced effect continues counting down even
after20 is cleared; recovery does not restart its lifetime. This flag protocol,
rather than a permanent additional percentage reduction, determines later hits.
Effect04 ($01:8671) runs sprite65’s formation script until the marker is seen
on entry, then selects its normal or enhanced loop. There are eight formation
updates before the transition update. The loop’s timer starts at012C (300) and
is decremented on subsequent updates; both loops submit a render every third
update. The normal effect additionally requires request80. Death, respawn and
changing/removing the body clear the controller/effect. Pending requests survive
an unavailable allocation attempt, as in $04:87FA. The host currently uses the
engine’s entity capacity; it does not reproduce the original twelve-slot small
effect pool or its retained slot fractions.
X3BodyBarrierEffect follows the player’s integer position independently of
player invincibility blinking. Thirteen 64x64 images are packaged in the common
resource-only assembly so that mixed equipment needs no X3 executable module.
They were composed from the pinned ROM’s OAM assembly, frame-aligned VRAM and
CGRAM, with OBJ tile baseC000/offset38 and palette2. Every assembly is checked
against the captured PPU OAM before export. No background/screenshot pixels are
used. The 5,684-byte atlas and all frame crops load during level precache, including
when X3 body is granted later through a console command.
xsharp-player-armor:v1 has an optional additive Body object for request flags,
phase, countdown, animation address/countdown and visibility. Existing payloads
default it to empty. Both dash and barrier states are validated before either
live controller changes. No serializable fields were added to legacy Player.
The retained capture receipt
and CSV contain 1,524 original-game updates across ordinary/enhanced expiry and
ordinary request consumption. The native experiment writes only inventory,
request flags and the hurt-entry state; it does not move X or change stages,
cameras, graphics or palettes. Consumption is an explicit bit-clear experiment,
not a natural enemy-hit replay. Source arithmetic is reviewed separately at
$04:CE3C. All captured request/allocation flags, effect phases, lifetime,
flicker countdowns, image IDs and animation pointers/countdowns match the
headless controller, including a snapshot round trip after every update.
Reproduce the muted capture and asset verification:
python tools/parity/capture_pause_menu.py --rom <X3-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-X3-state> --output <empty-directory> --wait-frames 0 --probe-armor-body
python tools/parity/extract_x3_barrier.py --rom <X3-USA-ROM> --capture <capture-directory> --check
The extraction receipt retains each PPU buffer’s fingerprint; the large private states/buffers remain outside Git. The runtime integration tests cover accepted damage policy, recovery allocation, equipment changes and optional snapshots. Real D3D9 crop/readback checks compare all thirteen RGBA frames pixel for pixel. The wider equipment/buster/precache/ladder selection passed817 tests with one existing optional skip; the render-image selection passed13 cases. These are scoped validations, not whole-level or full native armor parity.
Standing/airborne X2/X3 arm fire now reads the native firing controller’s image82..98. X3 upward dash reads images22..28 from its existing seven-entry clock. These are precached presentation frames; renderer frequency cannot advance a gameplay clock or replace a collision box. X2 and X3 have different atlas packing and pivots even when they share an image ID. Mixed X2/X3 firing parts select the correct source-family binding independently.
The pose capture workflow and receipts record the complete base and equipment OAM assemblies and explain the controlled native checkpoint reload. The retained atlas has outstanding pixel differences, and unsupported special-action hybrids retain the earlier mixed presentation. This change adds the native gestures and upward animation; it does not close the full armor/art parity work or the remaining X1 adapter.
The first upgraded shot’s logical core is not a visible ring during flight.
$01:C100..C185 sets its render class0C and creates three orbiters;
$01:C18F..C1FA moves/checks that carrier without calling the animation/draw
helper. On fusion it selects sheet54, initializes animation0 and calls
$04:BCA2. A retained slot image (for example0C from an earlier projectile)
is not a source-art binding for the flying carrier.
The adapter now suppresses that carrier’s flight draw and suppresses orbiters while their native routine0A drains. Collision and retirement are unchanged. During fusion it draws the original six sheet54 images using the existing controller’s current image. Its three flying orbiters use their individual native palette colors, rather than three identical green placeholders.
tools/parity/buster_arms_probe.py additionally emits arm-weapon-poses.csv
and bounded first-seen PPU snapshots, labelled by the preceding CPU request.
extract_x3_arm_weapon_sprites.py requires the pinned X3 revision and validates
each chosen image against a consecutive native OAM draw before composing RGBA.
The receipt preserves assembly
bytes, source frame associations, palette/PPU hashes and the packaged PNG hash.
No retained stale image byte from the undrawn core is used in that asset.
python tools/parity/capture_pause_menu.py --rom <X3-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-X3-state> --wait-frames 0 --probe-buster-arms --accurate-video --output <new-private-directory>
python tools/parity/extract_x3_arm_weapon_sprites.py --rom <X3-USA-ROM> --capture <new-private-directory> --check
All nine RGBA frames load during entity precache from the resource-only asset package. Rendering reads them without asset I/O or advancing a controller. Reflection/contact artwork and the emitted cross-shot trail remain separate work; they retain the previous presentation. The ordinary charged projectile still has an outstanding native OAM/visual-clock pass.
The max-charge Player palette also projects native palette indices into the
existing authored atlas order. Native white entries1/13 correspond to authored
13/1, so copying the red palette verbatim tinted the wrong white regions. The
normal captured colors and original $8C:A5A0 program are retained in the same
receipt; the test derives that index correspondence from RGB identity.
This fixes Player tinting. Native particle colors and their independent clock
are covered by the following milestone.
The native common-weapon particle controller is $2A:C16B..C1E1 in X2 and
$01:84C1..8577 in X3. Both use sheets6F/70/71 and the same22-image loop,
with a one-update duration per image. Each source game’s three palettes/pixel
patterns are composed into its own RGBA asset, rather than tinting the previous
six-color procedural effect. The highest upgraded tier keeps sheet71; it does
not revert to the ordinary yellow presentation.
X2 switches to sheet70 at counter50 and sheet71 at8C, using palette selectors 04 and06 respectively. X3 copies and decrements the counter for an unchanged common-weapon selection before those comparisons: its sheet changes occur one update later, and both upgraded stages use palette selector04. The sheets are retained across an ordinary unarmored charge-counter wrap. X3’s alternate weapon/saber-specific branches are outside this common-X-buster projection.
Each of132 packaged images is validated against its own original ROM assembly as a consecutive OAM draw, with colors from that draw’s captured CGRAM. The receipts retain controller/script bytes, source revisions, CPU/PPU associations, indexed pixel counts, palettes and buffer hashes: X2, X3. The fixed-source controller traces retain205 updates per game. These controlled experiments only equip arms (and clear X3 chip inventory) before ordinary Shot input; they never force particle sheets, palettes, animation, positions or stages.
python tools/parity/capture_pause_menu.py --rom <X2-or-X3-USA-ROM> --bizhawk <EmuHawk.exe> --state <initialized-native-state> --wait-frames 0 --probe-charge-particles --accurate-video --output <new-private-directory>
python tools/parity/extract_charge_particle_sprites.py --rom <source-ROM> --game X2 --capture <private-directory> --check
Use --game X3 with an X3 capture. All66 images per game must be observed and
uniquely labelled; missing data, an unexpected original animation loop or an
unsupported ROM revision is rejected before outputs are written. The native
asset package is resource-only, and all frames are created during effect precache.
Gameplay and render paths do not read a ROM or open an image asset.
The existing serialized effect level retains the source visual stage, and
its serialized entity FrameCounter supplies (age+1)%22. Rendering never
advances that clock. The native effect can initialize during the update that
requests it, copies the player’s integer origin and stops its procedural
animation. No new serialized fields or snapshot format are required. Extra
render calls therefore cannot speed up particles, and changing stage preserves
the current point pattern. Custom legacy charging keeps its existing effect.
Release ends the particle actor even when the second arm shot remains stocked. The separate two-update Player palette blink and periodic sound07 continue. This corrects the earlier stored-shot implementation’s lingering particles; no charging asset is loaded when Shot is first pressed.
The scoped validation includes410 original effect updates, hosted actor checks
through every captured stage transition, and three extra render callbacks per
simulation update without clock movement. GPU readback compares all132 particle
cells against the packaged RGBA pixels. Source extraction --check reproduces
both PNGs and receipts. These checks cover the common-buster effect; they do not
claim all weapon-specific charging behavior or whole-stage replay parity.
Equipped X1 arms select the descending-countdown controller independently of the base buster or other equipped parts. A max release requests projectile02, which allocates child04 followed by02 at the preparation marker. All three components retain separate source delays, velocities, hitboxes, contacts and history drains. The root counts as one host shot; the charged lock remains until every surviving wave component has retired. The original increments its charged-component ownership byte for both child allocations as well as the root. Lower charge releases continue through the selected base buster’s ordinary semi/full factories. Custom/unarmored charge policy remains unchanged.
The optional buster save extension stores a separate X1Charge object tagged
with SourceGame X1. X2/X3 scalar fields must be zero in that representation.
Malformed or cross-family payloads are rejected before changing live state;
legacy X2/X3 payloads retain their existing interpretation. Changing arms clears
the previous family’s charge, palette and sound.
The ROM’s $81:A163..A1B4 small-actor controller selects trail animations
05/05/06/07 and history offsets08/10/18/1C from $86:BDCF. The captured small
actors read the ring head after that update’s weapon history write. The
first allocation update selects scripts without submitting a visible draw.
History bit4000 selects queue class00/02; it never vertically mirrors a sprite.
The adapter projects four non-damaging history draws per wave without creating
extra host collision actors. It does not reproduce the original twelve-slot
small-object allocator or cross-entity queue-priority ordering.
Six preparation/leading/trail images are extracted from the original X1 x/y/tile/flags assembly format. Twelve observations validate both directions against consecutive OAM blocks; colors come from their captured CGRAM/VRAM. The resource-only package loads all frames during precache. Rendering supplies draw origins without changing the projectile’s simulation origin, partition, hitbox or animation clock. Child leading images with bit80 are hidden.
python tools/parity/extract_x1_arm_weapon_sprites.py --rom <X1-USA-ROM> --capture <private-X1-arm-capture> --check
python tools/parity/extract_x1_arm_buster.py --rom <X1-USA-ROM> --check
Charge sound03 is selected at $81:986F; request04 selects wave sound05 via
$86:BB0E. Cancel command17 stops the active charge rather than playing the
unrelated exported command17 sample. Semantic audio and sidecar names are now
x1-03-buster-charge.flac[.clip.json] and
x1-05-buster-arm-wave.flac[.clip.json]; the reproducible old/new filename map
is updated. The current exported charge03 clip has no established loop metadata;
indefinite native looping remains open rather than inventing a loop point.
Scoped tests compare938 original charge states,286 hosted wave updates and534
visible trail positions, plus render-queue classes in the standalone controller.
GPU readback checks the six RGBA crops. Source receipts preserve ROM revision,
code/tables, OAM associations and asset hashes. Original recycled velocities can
be supplied through the adapter’s spawn-only RetainedVelocity; the general
host still starts cleared and does not promise exact native pool recycling.
The initial host emission currently uses standing gun offset00. Full walking, wall and ladder gun-pose mapping, reflection/contact art and whole-stage replay validation remain open. These limits are separate from the verified idle-shot controller and history trace.
NativeX3Buster now draws ordinary charged preparation/flight from native sheet9E
images00..04. The source animation chooses03/04/02 during flight. These images
come from X3 ROM assemblies and captured VRAM/CGRAM, replacing the previous
trilogy-atlas projection that still resembled X2. A source shot without an
initialized animation script submits no draw.
X3CrossShotWeapon now draws the fused center from sheet54 images06..09 and
the four outward components from sheet3A images00/01. Variants01/02 use native
palette3 and03/04 use palette2; reusing a single static blue sphere for all
parts lost both the original art and their different colors. The simulation
script selects the image, so extra render calls cannot advance these animations.
All13 frames live in resource-only packages and load during precache.
The muted, normally loaded original-stage capture uses inventory writes only: arms for the upgraded experiments and no arms for the separate ordinary full shot. The probe rejects actors whose draw-visible flag is clear, which excludes newborn slots with stale image fields. Image bit80 alone must not reject a draw: some shared original sprite-cache requests retain it after rendering. Each selected frame must match a consecutive OAM block before asset generation.
python tools/parity/extract_x3_buster_weapon_sprites.py --rom <X3-USA-ROM> --capture <visible-arm-probe-directory> --check
python tools/parity/extract_x3_buster_damage.py --rom <X3-USA-ROM> --check
The code at $04:CEDE..CF69 indexes a receiver-selected row relative to
$06:E4A5, using original weapon +0A. Its default receiver00 points to
$06:E537. The previous X3 profile’s1/2/4 values and compound actors’ shared4
damage were too low for that common row:
| Attack | Original weapon column | Previous default | Native common-row damage |
|---|---|---|---|
| Normal | 00 | 1 | 3 |
| Semi charged | 01 | 2 | 5 |
| Ordinary charged | 03 | 4 | 8 |
| Dash normal | 06 | 2 | 5 |
| Equipped-arm core/orbiters | 1D | 4 | 10 |
| Combined center | 1F | 4 | 30 |
| Combined outward components | 20 | 4 | 30 |
The built-in and packaged X3 profiles now agree. The compound actors use their own original columns. Custom profiles retain their configured basic damage. These are default common-receiver values, not universal boss damage: other rows, immunity and high-bit special handlers still need receiver-specific audits. The receipt retains the row pointers, full38-byte common row and damage code.
Focused tests cover actual weapon hits against an X3 content enemy, all13 source-image bindings, distinct outward-component palettes and GPU readback. Charged/fused contact art remains open presentation work. The following milestone adds the ordinary and combined trails; this does not claim complete projectile or whole-stage pixel parity.
Both the ordinary charged projectile and the combined center create effect34
from the40 small slots at1818..1D18. $01:8FFC..900C emits on09CB modulo4==0;
$01:9105..9142 checks the16-active-trail cap, allocates, copies parent integer
coordinates/attributes and supplies the parent’s local emission ordinal. The
combined emitter supplies mode02 instead of00. Failed allocation still advances
the parent’s ordinal.
The effect controller $01:87B8..8850 uses sheet9E selector04: ten-update
images0C/0D/0E followed by terminal0F. That terminal marker is drawn once and
retires on the following controller update. X offsets by16 pixels behind its
parent; the sixteen signed Y offsets at $06:B7E7 cycle by ordinal&0F. Normal
particles begin at +/-0600, combined particles at zero, then decelerate by28 hex
per update in the opposite direction before displacement. Y does not move.
The particle retires early if it overtakes its parent, including the source’s
left/right equality asymmetry.
Initialization calls $04:BE35 once. Its result is stored to an unused scratch
byte, but the RNG seed advance is observable and is preserved by the host. The
generator is shared with gameplay; no independent cosmetic RNG is introduced.
Rendering neither advances the particle nor loads any asset. Four more
OAM/PPU-validated RGBA cells bring this charged/fused/trail extraction to17.
The emission counter for NativeX3Buster is an optional
xsharp-buster-trails:v1 save extension keyed by entity index, preserving the
previous projectile’s binary field layout. Old states default to ordinal00;
invalid actor references are rejected before changing live counters. The combined
center already serializes its native timer, which supplies the same ordinal.
Particle control state, parent references and animation state serialize with
the new effect actor. Host emission uses the accepted simulation/global counter;
complete original pool recycling and frozen-scene scheduling remain separate
parity work. Default host allocations start with cleared coordinate fractions.
The retained x3-buster-trails.csv and parent trace compare590 original effect
updates, including position, speed, image, countdown, flags and script address.
The standalone controller can accept explicitly retained slot fractions for
these source comparisons. Host tests additionally cover periodic allocation,
counter save/resume and rejection of incompatible save references. A real-engine
smoke checks active particles across full save/load and continued RNG/state.
The ordinary level2 shot’s preparation uses hitboxB867 =05/00/14/10: offset5, half-width20 and half-height16. With standing gun image49, the gun lies14 pixels forward and4 pixels upward; native mirroring puts the full hitbox11 pixels behind X. A receiver’s own hitbox can overlap it from farther behind. The host keeps the original inclusive integer edge rule. Production tests in both directions verify an actual rear hit for8 damage at that edge and rejection one pixel farther away. The hitbox already matched these source values; no extra collider or artificial backward projectile is added.
--check pass against the three pinned revisions.master yielded 4,170 passes, 34 skips
and the same 31 failing cases. The failure names were compared from both
logs. These existing enemy/resource-fixture failures remain outside this
equipment milestone; this is not a claim of a completely green suite.