X2GameplayModule registers game-specific level controllers without depending on enemy/boss content or a visual/audio backend. The engine supplies generic level-controller factories and stable controller priorities. Referencing XSharp does not load this module. The demo and original-movie comparison host select it explicitly.
The first controller translates Wire Sponge’s tentative weather selection, X2 USA $07:FF03..FF44, owned by small-pool dispatch 19. It reads integer player coordinates, the region table at $06:E91B, and choice weights at $06:E938. The original retains the preceding band’s weights at inclusive boundaries. It draws from the common RNG after player/actor controllers, including when the tentative result is clear weather. The lower-area and table-sentinel branches do not draw.
The controller’s candidate, region and defined-output flag are saved simulation state. No renderer, sound device, callback or reference trace is stored. This component can also be tested without an engine through X2WeatherSelection.TrySelect.
X2GraphicsDecodeTask is a separate device-free incremental graphics-stream
component for the optional SNES timing work. It exposes the original cooperative
yield boundaries, not wall-clock delays or reference-movie frame numbers. It
is not yet connected to engine pacing; see docs/physics-graphics-scheduler.md
for the native observations, tested scope and remaining CPU/DMA budget work.
X2SpriteGraphicsControl translates native player image changes into ROM-to-VRAM
transfer requests and retains the native previous-image cache. It operates on
bank-05 metadata and has no renderer, audio device or clock dependency. Its
isolated complete-movie test matches all 2,097 original transfer requests from
852 image reloads; original animation decisions are external component inputs.
The native player animation and video-workload integration are still pending.
X2PlayerAnimationClock provides the native sprite-00 animation semantics and
pending-image flag. Generated metadata preserves all 133 bindings, including
walking aliases whose loops return before their initial entry. Shooting swaps
restore the clock’s own previous countdown. A combined device-free fixture
matches all 8,617 original animation/graphics commands and intermediate states.
The fixture supplies controller commands explicitly; producing them autonomously
from hosted player control and integrating video/CPU timing remain pending.
This is the selector portion of the native weather controller. The transition queue, timed weather activation, rain/heat/wind effects, player-death path and all other stage-controller behavior remain to be ported. Candidate selection must not be described as a complete weather implementation.
Read-only BizHawk observations cover 560 selector updates. At the initial selector milestone, the complete movie matched RNG only through 553, before the unported enemy-death draw at 554. Subsequent Scriver/Aclanda combat and fragment ports resolve those draw sites. Current full-movie reports linked from the scene comparison distinguish autonomous execution (pending the original loading stall at 2185) from a diagnostic with original cadence supplied explicitly; the latter now matches seed and draw count on all 4,186 displayed frames. Weather transition/effect completeness remains a separate requirement.
The scene comparison and docs/parity/gap-weather-selection-source.json record source hashes, revision, native values and the complete result. Tests exercise every region boundary, all four random alternatives, no-draw paths, original tables, module isolation/rollback, controller order and sparse entity buffering.
EnableNativeBuster opts into the translated X2 normal/dash/semi/full-charge controllers and game-wide weapon-pool controller. It is disabled by default while integration parity is being established. Enemy modules are not referenced. X2BusterControl and X2GunPoseClock have no graphics/audio dependencies; the adapter currently projects existing weapon art, so pixel equivalence is not certified.
Source entries are $01:85B6, 8658, 884B, 8AC7; gun positions use $06:B5F6, collision geometry $06:B5DE/B688, animation metadata sprite tables 08/0E/9E in bank 2F. With UseOriginalObjectSlots explicitly enabled before loading, the native allocator preserves fractional position across reuse and enforces original capacities. Ordinary engine content uses unrestricted allocations without native slot identities; selecting X2 player physics does not enable these constraints. Gun requests capture the pose before motion and initialize at the integer player position after motion. Simple projectiles do not move on their creation update; normal-shot acceleration moves before terminal-speed clamping. Full-charge collision is disabled until its first post-initialization update.
Device-free controller tests compare 360 independently recorded flight states from all 35 original shots, starting each isolated flight from its original initial state and supplying original player motion as explicit controller input. These component tests do not prove continuous hosted replay. The hosted native weapon audit separately verifies 412 active-state observations in the complete timing-assisted movie, including impact positions/phases and firing poses. Rendered assets and other unmapped actors/effects remain outside that audit.
EnableNativeDust selects $08:C171 wall-slide dust scheduling and a real, independently simulated particle. The delay is consumed for eight slide-control updates, then emissions align to the native logic counter modulo four. Underwater and exhausted-pool paths do not draw RNG. The emitter reads the wall retained by slide control, which can differ from the current facing direction. SnesObjectPoolController shares the native small-object allocator between optional content modules; it does not couple their assemblies.
The emission request also retains native facing, away from that wall. $08:C19C
copies this slide-facing flag; taking the engine’s current visual direction instead
produced 25 facing mismatches for the frame-1442 particle. The complete hosted
timing-assisted run now matches all 5,304 mapped small-object observations; see
docs/parity/gap-jumps-small-objects-cadence-diagnostic.json. This state audit does
not certify effect pixels, other controllers or autonomous graphics-loading timing.
The isolated component compares every original wall-slide window (60 controller states) in the full movie and reproduces its single dust creation at frame 1442, including the original RNG-selected integer position. Placement uses the unresolved movement from $08:C61F, before world pushout, rather than the preceding or final clipped player position. Particle animation metadata is sprite 17/animation 0 in bank 2F. The current sprite adapter still projects legacy effect art; original graphics and other small-object producers require independent scene validation.
The same option now supplies wall-kick flashes through X2WallKickDustControl
and NativeWallKickDust. Native $08:D673 selects right before left, testing
three wall samples; $08:C375 uses the retained selection on the next preparation
update. Effect Y offsets are 18, 0 and -16 pixels, separately from the collision
probe coordinates. Integer X is placed 14 pixels toward the selected wall, while
the allocator retains the destination slot’s fractional bytes. Sprite 17/animation
6 lasts two initial updates and one visible end-marker update. Full pools drop
the request without RNG or retry. The module handles the legacy wall-kick factory
request to avoid a second emission at the old effect phase.
The device-free fixture wall-kick-dust-gap.json covers all 24 original flashes,
including restoration of the pending contact selection. A complete hosted run
also matches all 24 birth frames and integer positions, without missing or extra
flashes, and passes a 20-update replay from the pending request at 125. Player,
camera, RNG, major enemies and weapons retain their complete timing-assisted
match. This is not slot or pixel acceptance: the small-object audit still exposes
different addresses/fractions because other native producers are not yet ported.
The report docs/parity/gap-jumps-wall-kick-flash.json retains those failures.
The same optional module now owns small dispatchers 31 (dash smoke) and 0B
(dash spark), suppressing their legacy factory requests. $08:C1D0 emits smoke
before player movement, when the global logic counter is divisible by four,
with at most six successful allocations per dash. Underwater, water-surface and
full-pool paths leave that allowance unchanged. The final dash update can still
emit smoke before a jump or falling transition. $08:9CF6 emits the spark on the
fourth controller update, after movement, while dash control is still active.
The spark keeps its initial position and ends with the dash or its animation.
Smoke initializes with zero speed, then $00:D957 adds 16 native velocity units
upward per update and moves it with the retained fractional coordinates. Its
simulation animation is sprite 17/animation 0; the spark is sprite 60/animation
x2-player-effects-source.json pins the original capture and fixture hashes.The complete hosted diagnostic docs/parity/gap-jumps-dash-effects.json retains
player/camera/RNG, all 1,713 major-enemy observations and all 412 weapons, and
passes restoration from the first smoke birth at 74. Its expanded small-object
audit now first fails at 554, where the missing native death explosion changes
fragment allocation. The audit has 540 exact slot observations and 5,675 total
comparisons; downstream slot/fraction differences remain visible. This milestone
does not certify all small objects, pixels or autonomous graphics-loading cadence.
Player weapons and wall dust use Sprite.RequestedPhysicsOrigin, the integrated target before collision pushout. The original runs $08:C61F before allocating these objects and resolves player world overlap later. Using only the final player position placed the shot from frame 793 two pixels too high at a ladder-top correction. Read-only placement callbacks for all 35 original shots confirm the integer gun offset calculation at this intermediate position. The engine still resolves its normal physics once; the additional value is simulation state, not a reference-fed correction.
The nonlethal buster hit path resets the impact dispatcher state/substate. $08:E191 chooses the enemy’s nearest integer hitbox edge and moves inward by half the inclusive overlap; when the other hitbox is narrower than that overlap, the other object’s integer origin is used instead. The charged body impact at 763/764 therefore moves to X 5799 while retaining its slot fraction (5799.5), rather than simply snapping to the enemy’s outside edge. Native weapon auditing compares this position and impact phases separately from enemy health.
Normal/dash buster termination now also creates the original small-09 contact
flash through $08:E167, before releasing the producer weapon slot. Placement
uses the stored contact point, retains the destination small-slot fractions and
records the original producer slot address. Leaving the camera without a hit
does not emit this effect. Its sprite-17 animation 1 advances on initialization
and removes the effect when the marker countdown reaches one. The fixture
buster-impact-sparks-gap.csv compares all 23 effects / 161 original states.
The current visual adapter projects existing flash art; original frame pixels
remain outside that simulation audit.
Small-effect visibility follows the native draw request independently of lifetime.
Wall dust, dash smoke/sparks and wall-kick flashes select animation on their birth
update and first request drawing on the next update. Contact flashes continue
into their controller and request drawing immediately. $00:D859 uses the
completed camera; smoke tests its moved position. The hosted draw-request audit
in docs/parity/gap-jumps-small-object-draw-cadence-diagnostic.json checks these
conditions alongside all previously compared small-object state.
A shot requested on the first dash update uses the newly initialized dash animation phase, rather than a phase retained from walking/jumping. The separate native weapon audit first exposed this at 1779: the three dash muzzle offsets happen to share coordinates, so position-only comparisons could not detect the wrong pose index.
X2ObjectGraphicsMetadata reads bounded stage/load-set entries, compressed resource
pointers and upload scripts from supplied metadata banks. X2ObjectGraphicsTransferTask
plans native WRAM-to-VRAM queue entries and preserves explicit script pauses and
the shared upload-budget wait across snapshots. Neither API creates rendering/audio
devices, changes player physics or embeds original tile assets. Callers retain
responsibility for decompression, task replacement, the shared queue and CPU/DMA
timing. These components are not yet enabled by the gameplay host.
The native capture regression checks 24 uploads / 19,936 bytes and 13 suspensions, with and without restoration at every pause. Original shared-budget values are explicit component inputs; this does not certify autonomous loading cadence. See the scheduler investigation for the ROM revision, observed task replacement and remaining integration work.
X2GraphicsDecodeCpuTask additionally wraps the data decoder with optional native
CPU-work accounting. It compares all 128 observed checkpoint intervals from two
original resource-19 requests, including a scheduler return and snapshots at every
checkpoint. Its clock counts exclude refresh, DMA, NMI and other tasks. The model
is independent of devices and does not change the engine’s default update pacing;
the linked investigation documents its supported CPU context and pending integration.
X2NormalNmiWorkPlanner generates normal-mode video-driver work from semantic
palette/VRAM/tile/audio queues, using the shared CPU/DMA/refresh clock components.
It matches 52 independently captured handlers and 159 transfers, including mixed
queues and restoration of the initial clock. Native initial clocks and queues are
explicit test inputs. The planner supplies no PPU/audio side effects and is not
enabled by the gameplay host; see the investigation for unsupported contexts and
remaining autonomous scheduling work.
Enable X2GameplayModule.EnableNativeCameraBounds explicitly to select the
source-backed distinction between effective and requested camera limits. It
remains independent of the player physics preset, original actor limits and
native CPU/graphics pacing. The normal following adapter uses XSharp level
requests and stable player/camera update callbacks; it does not read a reference
trace during playback. A source movie can import pending state once through
CameraBoundsController.ImportInitialState during explicit initialization.
X2CameraBoundsControl runs without an engine, video or sound device. Its Stag
fixture checks all 3,488 original boundary states and a save/restore before a
pending release. See docs/physics-camera-bound-transitions.md for the executed
source windows, native carry/phase semantics and hosted validation limits.
Native camera requests preserve pending destinations for unchanged edges. The shared CameraConstraintRequest identifies explicit world-edge values before box normalization, and the optional policy composes successive partial requests without replacing untouched targets with effective interpolating values. Existing whole-box observers and immediate default behavior remain supported. See partial-request regression.
The device-independent X2BusterControl, its animation interpreter and reviewed
player/buster script tables now live in XSharpShared/Engine/Players/X2. They
retain their historical namespace. Type forwarders in the optional gameplay
assembly preserve the former qualified names for saved objects, including the
internal animation interpreter. The optional gameplay module still owns scene,
slot-pool and graphics-work integration; referencing the shared protocols never
registers gameplay controllers or loads a ROM/device.
The engine’s common SNES charge and arm-firing bases now have separate X2/X3 policies. X3 keeps its existing runtime adapter; X2’s firing clock matches the retained 22-update native Neon Jump script window. X2 projectile/Player wiring remains pending. This foundation was validated with 53 focused protocol tests (one existing optional fixture skipped), including legacy type-name forwarding, and seven hosted X3 charge/snapshot/Neon Jump regression cases.