XSharp

Stag Final Climb physics calibration

The active physics reference is Stag Final Climb.bk2. This 2026-11-08 milestone corrects fourteen player-motion discrepancies from the baseline. The full scene remains divergent. No new enemy or autonomous native CPU pacing is implemented by this milestone. The latest measurements explicitly enable the independent optional X2 camera-bound controller; the player physics preset does not select that whole-scene accuracy feature automatically.

Continuous measurements

Both runs execute all 3,487 original inputs from the explicit frame-zero adapter.

Measurement Autonomous Native-cadence diagnostic
Matching player position/velocity prefix 0–215 0–3487
First stored velocity difference 216 None through 3487
First player position difference 216 None through 3487
Matching camera-position prefix 0–215 0–3487
First RNG seed / call-count difference 216 / 216 223 / 223
20-update XSharp restoration from 2985 Passed Passed
Whole-scene acceptance False False

Reports: autonomous and diagnostic. The diagnostic explicitly supplies held logic updates from the independent native counter at 216, 254, 763, 768, 1276, 1323, 1328, 2041 and 2616. It isolates physics but cannot certify autonomous pacing. Original and engine state/animation IDs are not numerically equated. The previously observed stored-speed mismatch at 364 is now corrected. Initial dust and unsupported scene controllers already prevent full-scene acceptance at the start.

Exact input-result frame counts exclude the aligned frame zero. The diagnostic matches position, velocity and their conjunction on 3,487/3,487 updates (100% each). Autonomous position matches on 215/3,487 (6.17%); velocity on 3,290/3,487 (94.35%); both together on 215/3,487 (6.17%). These are exact numeric equality rates, not visual-error scores or whole-scene fidelity percentages. Later velocity coincidences do not repair a diverged trajectory. The raw comparison CSVs and reports are preserved in the portable archives; the shared progress register records the counts and denominator.

Contact acquired during horizontal floor adjustment

On 130, the unmodified X2 USA collision code resolves a platform overlap while preserving the movement-produced fractional Y byte. $08:D261 writes integer Y; $08:D199 records floor bit 04 in $0A03. On 131, the player consumes the contact, enters landing and immediately dispatches walking for current Right.

XSharp reached the same position on 130 but lost the contact: horizontal floor adjustment resolved the overlap before the vertical sweep, bypassing the latch normally acquired by its vertical callback. Post-motion acquisition, already used for ladder tops, now covers the selected deferred flat-world-floor policy. It reuses the serialized latch and retains incoming fall speed for that update. Slope and solid-sprite support do not acquire this new flat-world path.

stag-platform-contact.json checks native 126–137 motion and contact. It first failed at acquisition. The first full rerun moved the next player mismatch from 131 to 211 and passed a 20-update restoration from pending-contact frame 130.

Newly pressed Dash preempts a walking jump

At 211, Left was held while Dash and Jump were newly pressed. Executed native instructions show $08:BBB8..BBC1 selecting dash $14/00, initialization entering $14/01, and $08:B9C8 passing into $08:BA14. That path sets air speed 0375, prepares VY=0553, stores zero VX and performs no ordinary displacement. The next update moves with dash-inherited speed.

XSharp instead launched an immediate full-walking jump and retained walking speed. The immediate-walking selection now excludes a newly accepted dash request. An already-held Dash keeps its separate behavior. The X2 walking-jump policy selects this path; other presets retain their previous selection. The same fixture checks native 208–215. Additional tests cover both directions and new/held Dash.

The native animation adapter still differs at 211: intermediate dash/animation work is not fully represented by its resolved-state input. Correct movement does not establish animation/graphics-work parity.

Inclusive final floor pixel

On 343, center and left foot probes miss. The right point at X 2720 (0AA0), offset +6, Y 981 (03D5), reads collision 3B. $08:D261 changes Y from 03C5.51 to 03BF.51, preserving fraction 51 during the six-pixel correction. The native floor code tests center/left/right through $08:CE10..CE46.

XSharp’s half-open down detector omitted that last integer column and acquired contact a frame later with another fraction. UseInclusiveWorldFloorProbes extends only the world-down detector’s right edge by one pixel. X2 enables it; common/legacy/X1/X3 retain their previous probes. Body, side/up and solid-sprite down detectors keep their sizes. The collider derives this from its owner, without another serialized contact-phase field.

stag-right-floor-probe.json first reproduced the 343 Y failure, then passed native 340–347 motion/contact. Profile regressions verify the probe boundary. All 849 core/content/replay/ROM tests pass, including earlier floor/ladder/wall cases. Neither continuous run enters the engine’s dying state.

Landing against a wall retains stored speed

On 363, native falling completes with floor/right contact 05. On 364, $08:BE74 prepares walking VX 0178; $08:97ED..97F7 observes the old right contact and requests idle without ordinary motion. Idle clears speed on 365. Selecting idle from a side-collision callback instead loses that intermediate walking speed. The X2 controller now owns this transition, including current-input dispatch after landing. The fixture checks 360–366.

Dash support loss requests falling before movement

On 826, $08:9CCF..9CD8 sees the absent previous floor contact, requests falling and returns. Coordinates and stored velocities stay unchanged until falling initializes on 827. The existing original support-loss path now also covers dash, cleaning its dash spark at that transition. The regression checks 824–832 without changing other profiles’ support-loss policy.

A downward sweep resolves the whole initial floor overlap

On 1055, the first downward step after rising beside a platform integrates Y to 0561.1B. $08:D261 resolves it fully to 055F.1B, retaining fraction 1B and incoming fall speed. XSharp previously left one pixel for the following update’s floor adjustment. Its deferred world-floor collision callback now finishes that initial overlap before preserving the requested fraction. The regression checks 1052–1058; a 20-update snapshot replay from 1055 also passes.

After the first six corrections, the diagnostic matched position/speed through 1176; position first differed on 1177 and stored speed on 1178. The following source-backed corrections extend the current motion prefix to 1531. The autonomous prefix remains 215 because native pacing is still separate work.

Wall slide extends the floor probe before idle entry

On 1177, $08:BA57..BA61 requests wall slide and clears player +2F. $00:CF10..CF1E temporarily sets $1F2E=80 around the player collision call. $08:CDE4..CDF9 selects an extra six floor-probe pixels when +2F is zero; it uses zero extra pixels while +2F is nonzero. This temporary phase flag is not the water flag. Ordinary entity floor queries have a four-pixel default.

The extra center probe reads the platform at Y 0574; $08:D261 changes integer Y from 055E to 055F while preserving fraction 4E. Native state remains slide 12/00 with incoming VX 0375 and VY FFC0 on 1177. On 1178, slide initialization prepares VX 0100, VY FE00; the old floor contact requests idle without movement. Idle clears those speeds on 1179.

WallSlideFloorSnapDistance exposes this reach, enabled at six only in the X2 preset. The adapter applies it to deferred flat-floor/ladder-top support for original wall-slide control. It does not globally extend arbitrary actor floor queries. Common/legacy/X1/X3 retain zero. Headless tests cover the original 1175–1187 trajectory plus both sides at distances one, six and seven; invalid negative/cross-cell settings are rejected. On 1256 the same native probe writes floor bit 04 even though $08:D261 writes the existing integer Y (04CF) unchanged. Acquiring that exact contact without a correcting sweep is also required; the 1253–1261 regression checks its following idle request and retained slide speed.

General native slope/probe-order and all other actor-specific extension cases remain separate work.

Wall-kick direction also survives as the idle resume counter

The next diagnostic difference, 1184, was not caused by held shooting. The original idle path $08:96FB..9717 decrements player +4F from 3B to 3A, requests pre-walking and immediately replaces it with full walking because +4F remains nonzero. The request update stays stationary; movement starts on 1185 with VX FE88. XSharp previously selected slow pre-walking at this point.

$08:BA4D..BA50 also writes this byte as the retained wall-facing direction (00 left, 40 right). The native slide-to-idle path retains it; landing completion has its distinct clear. XSharp now applies that side effect to its existing serialized resume counter when requesting a wall kick and preserves it when leaving the slide on the floor. No per-frame movie correction or new parallel phase field is used. The fixture retains the original +4F bytes throughout 1175–1187, and controlled tests cover both wall-kick directions.

Slow walking also separates a blocked turn request from movement

At 1264, the original updates facing away from the right wall but its previous sprite orientation rejects movement. On 1265, $08:970C..9713 requests slow walking 02/00 because +4F is zero. It returns with unchanged coordinates and VX zero. $08:9753..975A initializes slow speed on 1266. XSharp already paused that accepted request for full walking; its slow path moved one update early. The existing pending walking initialization now covers both walking states and selects the appropriate speed. The extended 1253–1268 fixture and four controlled slow/fast reversals on both walls cover this phase boundary.

Landing without direction retains both incoming speeds

At 1296, the native falling controller consumes the floor contact and enters landing without displacement, retaining VX FC8B and VY FE80. It keeps both through the final landing/idle request on 1299; ordinary idle initialization clears them on 1300. XSharp’s generic no-direction branch cleared VX too early. It now preserves VX under the selected original landing policy as well as VY. The 1293–1302 regression compares coordinates, both speeds and landing state.

The independent camera difference at 1272 is an effective-bound transition, resolved by the explicitly enabled optional X2 controller. Camera coordinates, observed derivatives and both requested/effective limits now match all 3,488 compared states in the cadence diagnostic. Stored player speed also matches throughout after the first-slide initialization correction. The pure model and full hosted limits/request audits are recorded in camera boundary research.

Shot pose preserves idle-request velocity

Stag 1532 requests idle and fires a new shot. The native controller retains VX FE88 until idle initialization on 1533. XSharp’s subsequent shooting-pose refresh cleared it. The new-shot and charged-release branches now preserve speed while the existing idle-request latch is pending. The 1529–1534 fixture uses the real Shot input; six controlled tests cover both directions and the three shot charge cases with handled, resource-free weapon requests.

Accepted dash versus the intentional held-Dash extension

Stag 1577 rejects Dash while facing the wall. The jump requested on 1578 therefore retains native air-control speed 0178, despite Dash remaining held. The prepared launch previously promoted it to 0375, first changing position/velocity on 1579. The native comparison mode now captures only an active/newly accepted dash. The engine’s intentional held-Dash ground-jump feature is preserved through AllowHeldDashGroundJumps = true, the default in all shared/game profiles. Only the comparison host explicitly disables it, and its report records that value. Prepared versus immediate walking-jump timing remains independent. See profile configuration and native walking/jump findings.

The preceding shooting/dash milestone passed 882 tests, with no skips and supplied X1/X2 ROMs. Controlled cases cover both directions, enabled/disabled extension, held/new Dash, idle/full-walking launch and blocked/accepted dash admission. The full diagnostic now matches all four player-motion fields and camera coordinates through 2408, with a passing 20-update restoration from 1578. This diagnostic still supplies native held-logic cadence and does not certify autonomous scene parity.

Landing completion has controller priority

The native four-update landing countdown completes on 2409 before reading Left or Jump. XSharp previously moved left early and cleared incoming VY. The selected native landing policy now owns a serialized LandingDuration countdown (default four); visual animation completion cannot change the controller state. Its final idle request preserves stored speed, followed by ordinary idle initialization and a stationary slow-walking request. The existing pending walking-initialization path starts the slow animation on initialization rather than consuming a frame on its request.

The 2404–2416 native fixture compares all four motion fields, landing state and its state-specific timer. Eight controlled cases vary duration 1/2/4/6 and visual updates enabled/disabled; three more cover final-update Left/Right/Jump priority. At that landing milestone, 894 tests passed with no skips and supplied X1/X2 ROMs. Before the first-slide correction, full diagnostic player coordinates and camera coordinates/derivatives/effective/requested limits match through 3487. Stored speed/observed player acceleration first differs at wall-kick preparation 2985. A snapshot immediately before the completion (2408) reproduces the next 20 engine updates. None of this removes the explicit reference-cadence assistance or certifies RNG/entities/graphics/audio.

First-slide initialization precedes the wall-kick request

The original slide request on 2984 retains falling speed. On its first controller update, 2985, $08:9BB9 initializes VX 0100 and VY FE00 before $08:9C20 accepts Jump. Those speeds remain during the five stationary wall-kick preparation updates. XSharp accepted Jump before its slide-update method and kept the incoming fall speeds instead. The first accepted slide kick now invokes the same speed-initialization helper as the slide-to-floor path.

The 2982–2999 fixture and both wall directions cover the initialized contact speed, five stationary updates, impulse preparation and following motion. The suite passes 897 tests, with no skips and supplied X1/X2 ROMs. The complete diagnostic now has no player position, stored velocity, observed acceleration, camera coordinate, camera derivative, effective-bound or requested-bound differences through 3487. Restoration from wall-kick preparation 2985 reproduces the next 20 engine updates. This is completion of the measured motion/camera stage under declared reference-cadence assistance; native RNG, pacing, entities, animation, pixels and audio remain outside that acceptance.

Preserved evidence and reproduction

All sixteen instrumented full original replays retain frame-CSV SHA-256 4A064AC42BCF037AF03D0CC8962D24E50D3BF0DBD704B8D6F3FFD1EFCF88A007. Source records pin movie/ROM/core/settings, raw observations and fixture hashes. Callbacks only read memory/registers. Writes can report the following PC; pre-instruction callbacks record the executing PC and P/M/X context.

Window Source record Native data
125–133 contact writes
209–213 priority instructions, writes
342–345 right foot instructions, writes
362–366 blocked landing instructions, writes
824–829 dash edge instructions, writes
1053–1057 vertical overlap instructions, writes
1175–1181 slide floor instructions, writes
1182–1188 idle resume instructions, writes
1254–1260 floor touch instructions, writes
1263–1268 slow wall turn instructions, writes
1294–1301 landing speed instructions, writes
1269–1274 camera bounds instructions, writes
1530–1534 shooting stop instructions, writes
1576–1581 dash admission instructions, writes
2406–2412 landing completion instructions, writes
2983–2993 first-slide kick instructions, writes

Fixtures retain native 16-pixel collision IDs from stage 4, extracted through MMXCore.LoadLevel/LoadLevelLayout, sceneLayout -> mapping -> pCollisions. Constant integer X/Y offsets localize the test world; no per-frame correction is used. Git attributes preserve checksum-pinned fixture/source bytes.

Capture with --trace-player-control FIRST LAST --trace-floor FIRST LAST. The executed subset covers player/controller and collision ranges when D or X identifies the player. Scratch/probe fields retain raw meanings and require instruction context. Run the comparison host with the original full scene/RNG capture and --verify-state-at 2985; add --reference-cadence 1 only for the declared diagnostic. The exporter accepts repeated --extra-capture directories, requires identical movie/ROM/full frame-trace provenance and preserves each window’s sibling layout. Portable archives in the shared progress manifest retain these windows, full scene/RNG data, comparison reports, source and fixtures.

Remaining boundaries

The symbol catalog and measured progress are synchronized with HunterBaseStudio and the internal MegaEDX API used by the level importer. Studio replay UI, native-state conversion and an X2 level codec there remain pending. See the shared research register.