The partial camera-request correction restores complete Gap and Stag motion/camera agreement under supplied native cadence. Autonomous timing still differs at Gap 2185 / Stag 216. The preceding verification retains the now-corrected regression; older results below retain their original build/configuration scope.
The full 4,186-input run in parity/gap-jumps-native-controller-autonomous.json matches player X/Y/VX/VY, camera motion and RNG seeds/call counts through 2184 (52.2%). The first difference for all three is native display frame 2185, which executes no original game update. Every mapped Scriver, Aclanda body/head and Aclanda projectile observation before that pacing difference matches; the first subsequent mapped actor difference is 2471. Save restoration from 2184 reproduces 20 complete observed engine updates. This is not whole-scene acceptance: other actors/effects and rendered animation remain incompletely mapped. Native player weapons have a separate active-state audit, described below. gap-jumps-ceiling-dust.json retains the preceding autonomous milestone.
Read-only CPU callbacks at 2184..2187 confirm the skipped frame remains in $00:8100/8103, waiting on 09CE, while the cooperative graphics decompression task finishes and clears 00F5 at $00:B342. The game logic/RNG/actor dispatch does not run on 2185, despite the movie’s lag flag being zero. Graphics scheduler measurements explain the final copy crossing the display boundary, and compare a non-stalling request of the same resource. Autonomous SNES loading/scheduling cadence remains pending.
parity/gap-jumps-complete-motion-cadence-diagnostic.json records all 4,186 inputs after the native rising/falling ladder mount and walking-to-descent fixes. Player X/Y/VX/VY and observed acceleration, camera position/displacement/acceleration, health, RNG seed and per-update call count have no differences. Both executions make 8,458 RNG draws. The independent weapon audit matches all 412 active-state observations. Restoring the top-descent request at 3947 reproduces the following 20 complete observed engine updates.
This result explicitly supplies the original held-update cadence at display frame 2185; it does not establish autonomous timing or whole-scene equivalence. The mapped enemy audit still first fails at 3855: XSharp removes a Scriver before its native counterpart. Other actor/effect types and rendered animation also remain incompletely compared. The autonomous prefix above is a separate measurement.
After state-specific Scriver removal, parity/gap-jumps-mapped-enemies-cadence-diagnostic.json matches all 1,713 mapped enemy observations across the complete movie, including Scriver, Aclanda body/head and Aclanda projectiles. Player/camera motion, health, all RNG observations and all 412 audited weapons still match. A save at 3854 reproduces the next 20 observed updates, including the Scriver leaving the generic live area and its later native removal. These are explicitly timing-assisted results; other actors, effects and rendered animation still require independent audits and ports.
The latest small-object milestone,
parity/gap-jumps-small-object-draw-cadence-diagnostic.json, also matches all
5,304 mapped small-object states, including fragment flight/counter/facing,
effect animation/lifetime, retained slot fractions and native draw requests.
It preserves exact player/camera/RNG, all 1,713 mapped enemy observations and
412 weapon observations; restoration from 553 reproduces 20 subsequent updates.
The completed-camera phase, native death/contact
effects, retained wall-dust facing and slot-parity fragment drawing resolve the
previous small-object differences. A draw request is a simulation-side visibility
condition, not a pixel comparison or proof of every original rendering limit.
This report still uses reference cadence at 2185; unmapped controllers, original
effect pixels and autonomous execution timing remain open acceptance work.
parity/gap-jumps-graphics-load-set-cadence-diagnostic.json retains those exact
motion/RNG/enemy/weapon/small-object results and additionally matches native
1F18 versus engine ObjectTile on every one of the 4,187 states. The adapter
imports source set 6 once at initialization, replacing the checkpoint warmup’s
set 4. All later set changes are generated by engine triggers. A snapshot at
2170 reproduces 20 updates across the later set change; verification now includes
graphics-set state and entity visibility/native slot addresses.
The new unmapped-object inventory makes remaining coverage explicit. Types with
native draw requests are 1518/02 (632 observations / 600 draw requests) and
0B48/01 (512 / 512). Other unverified types are 0D18/2B, 1318/19,
1518/07, 1818/33, 1818/21, 1818/19, 1D18/15, 1D18/00, and
1D18/1A. Some already have partial or generic engine implementations, including
the weather RNG selector; their full native class-specific state still needs an
audit. No draw requests is not proof that a controller can be ignored. These
pool/dispatcher identities deliberately do not assign unverified enemy names.
An explicit --reference-cadence 1 diagnostic gates execution using only independent original logic-counter increments. Its separate report parity/gap-jumps-native-cadence-diagnostic.json declares timing assistance and the held display frame. It does not rewrite motion/RNG/actors and cannot certify autonomous parity. That run isolated a subsequent support-loss transition at 2581 (camera 2600, RNG/actor death 2648). Later reports below cover the resolved support-loss, gun placement, standing turn, ladder shooting and walking-jump rules.
The acceptance target is the entire scene on every movie frame: player and camera position, velocity and acceleration, every enemy/helper/effect, their logic and lifetime, and the original RNG seed. A passing player trajectory alone does not meet this target.
The earlier content-split milestone was not a full-scene parity pass. At that revision, player X/Y/VX/VY and camera position/derived motion matched through 2001, RNG matched through 553, and source-to-engine entity identities and class-specific states remained unmapped. parity/gap-jumps-x2-content-split.json records that historical complete 4,186-input run after the optional Scriver content migration; gap-jumps-weather-selection.json preserves the weather milestone; gap-jumps-held-ladder-release.json preserves the previous run after retained ladder-release speed and falling initialization. gap-jumps-top-ladder-descent.json preserves the preceding descent milestone. gap-jumps-wall-contact.json preserves the preceding milestone. gap-jumps-landing-hold.json, gap-jumps-walking-stop.json, gap-jumps-previous-wall-contact.json, gap-jumps-rng-audit.json, gap-jumps-weapon-phase.json and gap-jumps-scene-audit.json retain earlier milestones.
The ladder-anchor repair fixes the user’s separate native XSharp recording of air climbing. Its focused 650-input regression preserves the preceding milestone and passes restoration from 506. Later complete runs also passed restoration from 634 across wall contact/kick, 663 across walking release/Dash/Jump, and 717 across the retained landing-speed/idle transition. Each restoration compares 20 subsequent updates.
The original X2 USA ROM SHA-1 is 637079014421563283CDED6AEAA0604597B2E33C; the movie SHA-256 is 7A880EF4635D2B15F8AF963DF6E2915C7D37A09B43160ED37F4E5BEC62134E4E. The reference uses BizHawk 2.11/BSNESv115+ and the movie’s embedded initial state.
capture_bizhawk_movie.py --scene-memory --trace-rng captures 4,187 low-WRAM records, including frame zero, plus CPU entry observations of the RNG. Each record preserves $0000..$1FFF verbatim. The 34,299,904-byte memory file has SHA-256 3DFE1ABA99C90586329A32C0422C949CD2B7FD7D45F0442892B4042B6F0936A8. Captures with and without RNG callbacks produce identical memory and frame-CSV hashes. The latter remains 935C26EC7EF309376CC3B8248D252C7B21E2820447612F280D523A02B4EBAD0C. Callbacks neither write memory nor replace inputs; the source movie and emulator configuration remain unchanged.
X2SceneMemory in XSharpShared decodes the player, occupied dispatcher slots, raw slot bytes, camera registers, RNG seed and game-update counter without rendering/audio or an executable host. Pool bounds/strides come from ROM dispatch loops $00:CF80..D20C. The player is included even with its first byte zero because its dispatcher does not use that occupancy test.
Pool addresses/dispatch bytes are not automatically level event IDs or XSharp entity indices. Small slots do not have all common motion fields. Class-specific offsets, coordinate semantics and external state require verification, so every raw slot byte is retained and unsupported fields are not guessed. These observations are not a converted native save state or a complete semantic entity model.
Private memory binaries and full entity timelines stay outside Git. parity/gap-scene-source.json, gap-rng-calls.csv and small test fixtures preserve source hashes/evidence. The device-independent decoder can be reused by HunterBaseStudio. The shared research register now provides portable evidence export and synchronized runtime symbol/progress metadata in MegaEDXCore and HunterBaseStudio; loading native scenes or replaying them inside Studio remains unimplemented.
The existing RNG.NextValue() algorithm matches executed X2 USA routine $08:CB42..CB5B. A regression applies all 8,458 measured calls and checks the resulting seed at every source movie frame. This validates the algorithm against the recorded sequence; it does not prove that the engine schedules those calls correctly.
| Stacked return PC | Calls | Observed context |
|---|---|---|
0098FE |
4,185 | Global update, direct page 0000 |
07FF2C |
4,185 | Controller 1878, pool 1818, dispatch 19 |
01F0C8 / 01F0D5 |
40 each | Helper/effect slots |
08DFFD |
6 | Object contexts 0D18 / 0D58 |
29AF67 |
1 | Object context |
08C1B2 |
1 | Player context |
Extra calls occur at 554, 608, 635, 1055, 1333, 1438, 1442, 2535 and 2648. Frame 2185 has no game update: counter 09CC, actor/player state and seed remain unchanged, although BizHawk’s joypad lag flag is zero. Movie/display frames and game-logic updates must therefore be distinguished.
Advancing the global generator twice without its owning controller would put an actor-owned call in the wrong phase and miss extra/skipped updates. The comparison host aligns the seed once at frame zero, then records divergence; it never reseeds during playback. Matching the seed requires the missing controller/helper behavior and update order. The logged stacked return PC is the value before RTL increments it.
Before weather-selector integration, the host additionally observed every actual XSharp generator step through RNG.Advanced, recording previous/new seeds and per-frame call counts. It validates the original call trace before initialization and compares counts independently of seeds. The full run records 4,186 engine calls versus 8,458 original calls, with one engine call on every input, including the original skipped logic update at 2185. At frame 1, seed 24449 becomes 7839 in XSharp and 23546 in the original. The observer does not draw values or change the sequence; optional save replay is excluded from the continuous call log. Player comparison and both decompressed entity timelines are byte-identical to the preceding run. gap-rng-audit-source.json records this validation and the engine call-log hash. Tests cover observation without sequence changes, current non-advancing ushort-range reads, composite draws and seed restoration. The reusable input-validation script checks eight malformed trace cases before native device initialization.
The optional X2 gameplay module now supplies Sponge’s tentative weather selection. Its registered level entity runs after actor controllers and owns the second draw. It uses actual simulated integer player coordinates and original region/choice tables, with no reference-state correction or per-frame reseeding. The selector stores its candidate/region independently of rendering/audio. Weather transition queues and effects remain incomplete.
Read-only callbacks at $07:FF29/FF37 retain 560 original choices and before/after seeds in parity/gap-weather-selection.csv; the source JSON pins their revision and hashes. The complete run records 8,372 engine draws versus 8,458 original draws. Seeds and call counts agree through 553, then first differ on 554, where the original Scriver death calls $08:DFF5. The current hosted Scriver is still alive there: native initialization occurs on 484, while engine activation occurs on 499, and the existing hosted jump starts displacement too early. The isolated Scriver controller removes the controller approximation in component tests; activation/world-sweep and damage-phase adapters are still required before connecting it to the live actor. Player/camera motion remain exact through 2001, and a save at 635 restores 20 updates with the new controller. Source/engine entity semantics and other actor/effect calls remain pending.
Stable controller priorities preserve ordinary allocation order inside each phase. This exposed a pre-existing EntitySet.CopyTo bug: buffering copied the first entity repeatedly. Copying now follows sparse-set enumeration and validates destination bounds; tests ensure every actor runs once and the late stage phase runs after player/actors.
SideCollisionHeadHeight=9 / SideCollisionLegsHeight=7; the collider is updated when a profile is captured. This retains the last contact while rising past a platform. Other presets retain eight-pixel insets.DeferTopLadderContact extends delayed floor consumption to ladder tops during ordinary airborne movement. Releasing Jump inside a one-way ladder top acquires support, preserves the new fraction and consumes landing next update. Horizontal floor adjustment can resolve that overlap before the vertical sweep, so its contact is also acquired.LeftTop setup was ignored while FocusOn was set.BaseEngine.CameraFocusScreenBounds=(128,96,0,32) selects the observed X2 tracking region: screen X 128, screen Y 96–128. This runtime camera configuration is independent of player physics; null retains legacy tracking.Device-free tests compare the platform edge, upward opening and ladder-top landing against original observations. A separate camera test feeds a recorded trajectory to the production controller and checks tracking/clamping; this is isolated camera input, not a correction in continuous playback. The full host compares all movie inputs without repositioning entities to the reference.
The expanded save replay exposed a stale entity-allocation bitmap. After restoring frame 506, the dash smoke at 511 used index 71 instead of 70, while player/camera motion and RNG still matched. The allocation repair rebuilds occupancy and target memberships without adding fields to the saved stream. Native replay now compares 20 updates of player/camera/RNG plus recorded entity IDs, lifetimes, counters, motion and exposed state. This is same-build observable restoration, not certification of every historical save or every private field.
The former player/camera divergence at 609 came from delayed player-weapon activation. The original Scriver at 0D18/dispatch 09, position (5672,179) on 607, disappears on 608. The engine previously left the shot pending until 609, when player contact ran before the shot could kill it. The weapon phase correction removes that damage without bypassing collisions. The subsequent wall-contact correction removed the player/camera differences at 635/643. Walking release then removed 664, and landing timing removed the stored-speed difference at 715. The subsequent resolved wall-contact and top-ladder descent corrections removed the earlier differences through 1687. Ladder-release initialization then removed the stored-speed difference at 1688. Player motion and camera now first differ together at 2002. Health matches throughout this complete run. Saves at descent request 1585 and pending ladder release 1688 each restore the next 20 updates exactly.
The initial-state adapter does not import native weapon inventory, armor upgrades, charge counters or the complete actor population. Those initial conditions, plus projectile type, damage, animation and trajectory, still need comparison. The 20-update restore from 608 passes with player/camera/RNG and recorded entities. This is deterministic engine replay, not cross-engine actor equivalence.
RNG diverges earlier because controller/helper call scheduling is not equivalent. Other actors, effects, triggers, class-specific animation/state, and the skipped game update at 2185 also need explicit correspondence. Capturing slots and enumerating engine entities are not completed ports or parity proof.
The comparator returns exit code 2 while entity correspondence is unmapped, even when a selected player/camera prefix matches. Code 0 is reserved for eventual complete scene validation; code 1 indicates invalid inputs or execution/replay failure.
ICameraUpdateObserver receives a simulation callback after camera movement has
resolved, before the input row is committed to the demo. An observer may queue
actors for the next update without executing them immediately. The callback is
suppressed while paused, loading, or freezing the player. This lets optional game
modules implement camera-driven event streaming without coupling their rules to
the visual or audio backend. It does not by itself implement X2’s event scanner.
UpdatePlayerPhysicsBeforeActors optionally completes player and player-owned
weapon motion before later controllers read their positions. The X2 physics profile
selects this policy through CompletePlayerPhysicsBeforeActors; an engine host can
override it explicitly. The ordinary late completion phase skips entities already
completed during that update, including freshly spawned weapons, so timers and
physics advance once. This scheduling policy is independent of the render/audio
backend and does not itself translate projectile origins or native shot behavior.
scene.nativeWeaponAudit separately compares translated player weapons, including slot identity and active controller/animation state. Its declared scope excludes stale, unwritten native full-charge initialization fields. The initial 900-frame report parity/gap-jumps-weapon-audit-initial.json records 127/136 exact weapon observations and the first impact mismatch at 763, while player/camera/RNG and mapped enemies already matched that prefix. The subsequent impact, initial dash pose, idle firing direction and shooting-ladder fixes require their own later reports; this historical audit is retained as independent evidence of what the earlier position/health checks missed.
The later parity/gap-jumps-facing-ladder-cadence-diagnostic.json retains a full 4,186-input diagnostic after the impact/facing/ladder fixes. With the separately supplied native held-update schedule, RNG seed and per-update draw count match the entire movie, and the native weapon audit matches all 412 observations. Player motion first diverges at 2952 (walking-jump dispatch), camera motion at 2973 and mapped enemies at 3778. A snapshot at 2683 reproduces the following 20 updates. These are timing-assisted observations: the autonomous run still diverges at the loading stall at 2185, and neither run establishes complete scene or visual equivalence.
After walking-jump dispatch was corrected from the native controller, the timing-assisted full run in parity/gap-jumps-walking-jump-cadence-diagnostic.json matches all player motion through 3015, camera motion through 3154, all 4,186 RNG seed/draw-count observations and all 412 weapon observations. The first remaining player mismatch is the slow walking start at 3016. A snapshot at the walking jump (2952) reproduces the following 20 updates. The independent autonomous prefix still ends at 2184, pending original loading-stall scheduling; these assisted results do not certify complete scene parity.
The intermediate reports parity/gap-jumps-walking-resume-cadence-diagnostic.json and parity/gap-jumps-prewalking-cadence-diagnostic.json retain the independent slow-start and pre-walking-jump milestones (first player differences 3281 and 3400 respectively). Later source-backed regressions resolve the first full-walking initialization at 3400 and the ladder-bottom exit at 3541; top climbing at 3628 is tracked in physics-ladder-anchor.md. These historical reports preserve the failures rather than replacing them with unrelated later figures.