Match Jimmy controller arithmetic and facing to original probes
This commit is contained in:
1 parent
42ea2b8cd5
commit
0e2f426d42
60 files changed
+6027
-48
No files matched your search
@@ -0,0 +1,131 @@
|
||||
# Jimmy ordinary airborne movement audit
|
||||
|
||||
2026-11-04. User prioritizes stable Jimmy movement and explicitly preserves the
|
||||
current GamePort feel over JN-Engine's replacement movement. JN-Engine's saved
|
||||
original decompiler output was used only to locate/interpret original routines;
|
||||
its C/Godot movement was not used as a behavioral reference. Authoritative source
|
||||
is the immutable project EXE SHA256
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
|
||||
## Recovered contracts and concrete mismatches
|
||||
|
||||
Addresses below are original EXE VAs; independently mapped file offsets equal
|
||||
VA−400000. `tools/binary/jimmy_air_motion.py` guards source identity, five complete
|
||||
bounded ranges and decoded absolute relocation operands. Source instruction
|
||||
extracts are retained in artifacts/jimmy-air-audit/{input,apply}.asm.
|
||||
|
||||
| Original VA / offset | Original behavior | Prior port mismatch / bounded correction |
|
||||
|---|---|---|
|
||||
|439900..439A69 /39900..39A69|Mode1 keyboard Left precedes Right, changes stored turn by100dt; no-key return toward0 occurs only when complete6E6 keyboard-turn latch is set. Key turning sets latch; mouse turning clears it.|AirSteering always applied return, without storing the latch. JimmyAirMotion.Input owns explicit latch state; caller must retain it and share it with other input modes.|
|
||||
|439AE6..439B69 /39AE6..39B69|Up adds30 only when scalar<maximum, then clamps. Existing overspeed is preserved.|RecoveredMotion.AddSpeed clamped overspeed down to maximum. New helper preserves it. Ground correction is investigated separately.|
|
||||
|439B69..439BA2 /39B69..39BA2|Without throttle, coast only above maximum*float.909090936; compare uses the unrounded x87 product. Coast subtracts17.5 per callback.|Float-rounded C# comparison misses a representable threshold case. At max600, speed545.45459 must coast to527.95459. New helper uses double intermediate for the comparison.|
|
||||
|439BA2..439BED /39BA2..39BED|Independently test body218 support, even with stored air mode1. Supported positive scalar subtracts17.5 with no crossing clamp; nonpositive scalar resets0.|Old AirSteering had no support argument. Supported speed300+Up ends312.5; speed5 with no keys ends−12.5. These affect landing/rejump and retained input phases.|
|
||||
|439C1D..439CB2 /39C1D..39CB2|Down after throttle/coast/support subtracts35 supported or17.5 airborne, clamps positive scalar to0; negative scalar adds35 toward0.|Old helper used17.5 for positive scalar regardless support. No reverse-flight initiation is added.|
|
||||
|439D81..439DB7 /39D81..39DB7|Ordinary mode1 turn caps±30, distinct from Bubble's±50.|Existing cap is correct and retained.|
|
||||
|437FD0..438011 /37FD0..38011|Read incoming live velocity. Exact zero magnitude skips independent yaw AND lateral computation. It still publishes forward scalar afterward.|LabSimulation gated yaw but computed side unconditionally. Zero incoming velocity/scalar300/turn30 produces(0,0,300), not a lateral launch.|
|
||||
|438011..438062 /38011..38062|For nonzero velocity, call334 AddEuler(0,turn*dt,0), then side=turn*float(1/55)*(1−friction)*scalar, without dt on side.|Existing side formula is generally right but ungated. Plain yaw modulo omitted full-axis AddEuler normalization. New helper reuses original-leaf-compatible RocketOrientation.Add.|
|
||||
|438062..4380E6 /38062..380E6|Rotate the lateral contribution around current yaw using original OMT table values.|Retain yaw-only lateral contribution. No invented normalization or clamp.|
|
||||
|4380E6..438124 /380E6..38124|game38C rotates local(0,0,scalar) by full Euler. Sum its X/Z with lateral contribution and preserve incoming Vy, discarding rotated forwardY.|Old port used flat yaw only. Nonzero pitch must scale horizontal forward; roll does not alter this local-forward vector. Use original-compatible rotate/lookup helper.|
|
||||
|
||||
The probe complete-object fields are6C8 scalar,6D4 turn,6D8 applied turn,
|
||||
6BC acceleration step30,6C0 decay35,6C4 maximum600,6E4/6E5 throttle/backward,
|
||||
6E6 keyboard-turn latch,7C4 movement mode1. Its game interface is complete+C0.
|
||||
Game Euler is224/228/22C; getVelocity2BC/setVelocity2C4, friction248, support218,
|
||||
getEuler328, AddEuler334, local-vector transform38C are separate calls. Synthetic
|
||||
probe binds the last three to original4723F0/472480/472B10. Real class wrapper
|
||||
334 may add gameplay gates; source publication/controller ownership remain caller
|
||||
responsibilities and are not reconstructed by this isolated component.
|
||||
|
||||
Keyboard steering and scalar increments retain current signs, precedence, source
|
||||
per-callback30/17.5/35 values and mode1 turn cap. Existing ordinary flat-air
|
||||
movement with nonzero incoming velocity is preserved. None of these corrections
|
||||
adopts JN-Engine's tuned jump650/gravity1600 or instant tank movement.
|
||||
|
||||
## Native observations and REA
|
||||
|
||||
`tests/GamePort.JimmyAirTests/original-air-reference.json` commits35 copied-original
|
||||
observations and source/generator/shared-map-helper/probe-EXE/output-log hashes:
|
||||
22 mode1 keyboard input cases and13 velocity-prefix cases. Coverage includes
|
||||
Up/Down combinations, overspeed, exact coast boundary, supported positive/negative
|
||||
crossings, turn cap/precedence/latch/return crossing,60Hz, zero/rising/falling live
|
||||
velocity, slope pitch, roll, Euler seam/negative angle normalization, friction0,
|
||||
reverse scalar, zero scalar and ordinary60Hz output.
|
||||
|
||||
Probe executes copied439900 through439DB7 (before orientation/camera work) and
|
||||
complete-entry437F90 through438124 (before jump suffix). It supplies synthetic
|
||||
actor/body/friction/mouse callbacks and uses the copied project's original OMT
|
||||
trig global plus original Euler helpers. Zero mouse/controller input is explicit.
|
||||
439900's continuation is replaced by a stack-correct return, and437F90's suffix
|
||||
is replaced by its original4387A1 epilogue. No original game entrypoint, physics,
|
||||
collision, camera, animation or audio is executed. Source jump suffix438148 and
|
||||
effect421FB0 are independent parent investigations.
|
||||
|
||||
The isolated Wine32 run exits0 and prints JIMMY_AIR_MOTION_COMPLETE; capture.json
|
||||
and wine.log are retained in artifacts/jimmy-air-audit/probe. Thirty-five saved
|
||||
outputs match two managed conformance groups. Two Python groups guard source,
|
||||
relocations, PE offsets, complete fixture counts and generator provenance. This
|
||||
is original component execution, not whole-original or native Windows gameplay.
|
||||
|
||||
REA/Ghidra12.1.4 was invoked through the configured local scripts/rea.sh on the
|
||||
generated target copy. The default profile did not recognize439900 as a procedure;
|
||||
the complete explicit mapped-selector failure, export and closed snapshot are
|
||||
retained under artifacts/jimmy-air-audit/rea-input. No pseudocode success or
|
||||
Evidence ID is attributed to that failure, and the unchanged selector was not
|
||||
repeated. Earlier Bubble movement attempts had provider startup failures and do
|
||||
not establish successful decompilation either. Supporting source instructions,
|
||||
whole-source identity and new native observations establish the bounded arithmetic.
|
||||
JN's docs/decomp/evidence/c3dplayer_movement_target3.md supplied an original-code
|
||||
reading lead, independently checked against these project originals.
|
||||
|
||||
## Integration API and remaining limits
|
||||
|
||||
New `JimmyAirMotion` is an isolated source-backed implementation. Parent owns live
|
||||
integration and existing AirSteering/LabSimulation files:
|
||||
|
||||
1. Pass Input(new(Speed,TurnRate,keyboardTurnLatch),input,Grounded,dt,MaximumSpeed).
|
||||
Retain returned scalar, rate and latch. Complete6E6 is shared with ground and
|
||||
Bubble input: update it when those source paths set it; do not reset each frame.
|
||||
2. Call Apply(Speed,TurnRate,new(Pitch,Yaw,Roll),Velocity,dt,friction) in the ordinary
|
||||
air branch, after existing facing/mode selection and before438148 jump suffix.
|
||||
Publish returned full Euler and velocity. The incoming velocity gate must use
|
||||
prior live velocity, not a newly fabricated forward vector.
|
||||
3. Keep body-first/fresh-vs-retained order, ordinary landing/reset, jump/jetpack
|
||||
state/effect, raw/effective control and special modes in their existing owners.
|
||||
|
||||
This does not implement mouse/controller axes, general camera/pose targets,
|
||||
reverse-run helper states, complete full-Euler/render root behavior, original
|
||||
cadence, dynamic/special contacts or the jump state suffix. Fixed60Hz and source
|
||||
body vs capsule admission remain existing port policies. Ordinary input requires
|
||||
0<dt<1 because the original divides mouse deltas by dt. Native Windows and
|
||||
whole-original movement/trajectory comparison remain unverified.
|
||||
|
||||
|
||||
## Destination-Euler follow-up (2026-11-05)
|
||||
|
||||
REA's complete retained objdump Evidence
|
||||
`ev_0d64cc58fa8f5573fc8e61e0f2c20e36288099212bd2257d3a3121361fd6c904`
|
||||
adds the next target write. 439DB7..439E33 (offset39DB7;
|
||||
range end39E33) reads accepted forward6E4 before backward6E5, writes pitch7EC
|
||||
or7F0, yaw=currentEulerY and roll=−turn. Neutral pitch is0. Constructor437445/
|
||||
43744F (offset37445/3744F) initializes7EC=−40,7F0=10; ordinary437FBC/437FC6
|
||||
reasserts those values. Bubble43880A/438814 substitutes−10/10. These are
|
||||
retained controller fields, separate from current Euler and destination Euler.
|
||||
|
||||
`tools/binary/jimmy_air_targets.py` extends the previous input probe through
|
||||
439E33, supplying a synthetic36C destination writer. Twelve native observations
|
||||
are retained in `tests/GamePort.JimmyAirTests/original-air-targets-reference.json`,
|
||||
including both arrows (Up wins), turn signs, supported zero/overspeed, zero and
|
||||
custom pitch seeds. Isolated capture exits0 with JIMMY_AIR_TARGETS_COMPLETE;
|
||||
source range, generator, executable and output hashes are recorded. No camera,
|
||||
facing interpolation, body or original whole-game entrypoint ran. A Python guard
|
||||
checks source/provenance and saved writes; this is recovery evidence, not a
|
||||
managed/runtime implementation claim.
|
||||
|
||||
Live ordinary-air pitch targets are deliberately still the baseline simplification.
|
||||
The source-backed input/velocity helper is integrated, but enabling this target
|
||||
requires the full Euler/actor-root visual bridge and retained mode-field ownership
|
||||
to move together. Otherwise horizontal velocity would gain pitch attenuation
|
||||
while the ordinary rendered Jimmy remains upright. Follow-up must retain source
|
||||
7EC/7F0 across Bubble→ordinary and fresh/retained callback order, then verify
|
||||
model pivot, takeoff, turning, landing and route returns. This is an identified
|
||||
original mismatch, not a recovered behavior that is already live.
|
||||
@@ -0,0 +1,99 @@
|
||||
# Jimmy ordinary ground movement audit
|
||||
|
||||
2026-11-04. User paused gadget expansion to stabilize Jimmy. Preserve the current
|
||||
playable fccc0b9 baseline. This report isolates original keyboard ground input
|
||||
and ground velocity apply; it does not replace collision, timing or animation.
|
||||
The supplied JN-Engine C3DPlayer report/target3 decompiler dump supplied function
|
||||
names/field leads only. Its tuned/native gameplay is not used as an oracle.
|
||||
|
||||
## Original evidence and ownership
|
||||
|
||||
EXE SHA256 `f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`;
|
||||
OMT2.dll `3ec41ead011adf56387a6dbd4580e5b5a9721b5f8020c8a56420f42824354943`.
|
||||
`jimmy_ground_motion.py` validates both identities and six bounded ranges, with
|
||||
PE-mapped offsets and hashes. The listed EXE text offsets are VA−400000.
|
||||
|
||||
REA/GNU objdump produced source observation
|
||||
`ev_0d64cc58fa8f5573fc8e61e0f2c20e36288099212bd2257d3a3121361fd6c904`.
|
||||
Complete Evidence is under artifacts/jimmy-ground-audit/rea-disassembly.json;
|
||||
summary projection `ev_eeefcf5542ee0c3151932829c0e898696754a264ac7fccb208fa26cceb36f0c0`
|
||||
is in rea-summary.json. The command completed, output was not truncated, and
|
||||
pre/post source digests match. The provider's executable-version/format metadata
|
||||
is unknown; the independent PE reader establishes the image mapping. This is
|
||||
static instruction evidence, not successful Ghidra pseudocode or target execution.
|
||||
Previously failed unchanged procedure selectors were not repeated.
|
||||
|
||||
| Source VA / offset | Owner and contract |
|
||||
|---|---|
|
||||
|438BC0 /38BC0;438CE3 /38CE3|Ground input clears complete6E4 accepted forward/back flag. Mouse/side-camera/idle prefix is outside the pure keyboard suffix.|
|
||||
|43915D..43928D /3915D..3928D|Clear870 keyboard lateral bias. Left precedes Right. Left adds20 yaw delta and−1000 lateral, Right−20/+1000. Set6E6 keyboard-turn latch. Add30 to6C8 only when below6C4 cap, then clamp an actual crossing.|
|
||||
|43928D..439318 /3928D..39318|Up halves nonzero keyboard yaw delta and applies a second below-cap30 increment. Sets6E4. Up+turn can therefore increment twice. Existing overspeed is preserved, not clamped down.|
|
||||
|438F66..438FE3 /38F66..38FE3|Earlier backward-acceptance gate uses Down/analog/side qualifications. In raw−1/3, true primary predicate15C suppresses accepted backward. Flags864/828 also qualify acceptance. This prefix is caller-owned, not part of the suffix probe.|
|
||||
|439318..439416 /39318..39416|Accepted backward850 sets6E4; ordinary subtract35*1.5 and clamp−cap*.5. If seeded830 is strictly>double1.5, set latch828, speed=cap, stored target710=currentYaw+180, keyboard yaw delta0. Already latched backward keeps cap. Releasing acceptance clears830 and latch. The830 clock's increment owner remains unresolved.|
|
||||
|439416..439490 /39416..39490|Without Up or accepted backward, release positive/negative scalar toward0 by35. Left-only still receives this decay after its acceleration. Keyboard side bias can move while scalar remains0.|
|
||||
|43951E..4395CF /3951E..395CF|Accepted active input publishes destination yaw even with zero turn: ordinary currentYaw+delta; latched with delta uses currentYaw−delta*.5, otherwise stored710. No active input retains the previous destination.|
|
||||
|437C40..437DF6 /37C40..37DF6|Read current live velocity; special global4F83E0 returns unchanged. Only nonzero incoming velocity OR nonzero keyboard lateral admits yaw addition and side computation. That gate does not suppress the later base forward rewrite. Side=(turn*(1−friction)*speed*float(1/45)+bias)*dt. Read full Euler via328, add yaw via334 and use full-Euler38C(0,0,speed). Publish its X/Z plus side, preserving incoming Y.|
|
||||
|437E10..437F4B /37E10..37F4B|Only supported218 and nonnull support polygon338 reaches the support suffix. It subtracts float250 at4A3E58 from current live Vy. The rest of the normal/angle calculation does not project X/Z onto a slope or publish a new actor Euler here.|
|
||||
|437C22..437C2D /37C22..37C2D|Controlled wrapper publishes complete6C8 controller scalar into body160 afterward. This is separate from live velocity and body friction state.|
|
||||
|
||||
Complete/game interface displacement isC0. Complete6BC acceleration30,6C0 decay35,
|
||||
6C4 current cap600,6C8 controller scalar,6D4 turn rate,6D8 applied turn,6E4 accepted
|
||||
forward/back,6E6 keyboard-turn latch,710 stored backward heading,828 auto-turn latch,
|
||||
830 clock,850 accepted-backward and870 lateral bias. Live Euler is game224/228/22C;
|
||||
destination is game274/278/27C. Ground only sets6E6 on turns; neutral/up/back do
|
||||
not clear it. The source's air handler owns later keyboard-turn return behavior.
|
||||
|
||||
## Confirmed differences from the pre-audit port
|
||||
|
||||
1. RecoveredMotion.AddSpeed's unconditional Min(speed+30,cap) reduces existing
|
||||
overspeed; the original only adds while below cap. This affects ground/air use
|
||||
of that helper; changing the shared helper requires checking its other callers.
|
||||
2. Active forward/backward input without turn must publish current yaw as the new
|
||||
destination. LabSimulation only changed targetYaw for a nonzero turn delta,
|
||||
allowing residual destination-yaw drift after releasing turn while keeping Up.
|
||||
3. Ground direction uses full Euler X/Z, not yaw alone. A pitch30/yaw45/roll20
|
||||
native case projects speed300 to X/Z≈−183.725/+183.725, not±212.132. This matters
|
||||
during tilt restoration after gadgets/script placement; no new slope tilt is
|
||||
invented by the helper.
|
||||
4. Live support with a real polygon supplies downward Vy−250 pressure. The port
|
||||
preserved Y unchanged. Supported/no-polygon and unsupported cases retain Y.
|
||||
5. Side computation shares the incoming-motion/bias gate. The existing simplified
|
||||
apply computes side outside it. Most ordinary landings reset turn0, but the
|
||||
mathematical distinction is explicit and tested.
|
||||
6. Primary/backward acceptance and the latent auto-turn state are not modeled by
|
||||
the old simplified input. Do not enable a fabricated1.5-second timer: its live
|
||||
clock owner must be recovered first. The pure helper permits explicit source
|
||||
state inputs so the seeded branches can be compared without claiming live use.
|
||||
|
||||
## Implementation, tests and integration
|
||||
|
||||
`JimmyGroundMotion.Input` returns state, keyboard lateral and heading-update flag.
|
||||
Callers resolve backward acceptance (ordinary raw−1/3 primary blocks it), retain
|
||||
shared6E6 on neutral ground input and set it on Left/Right. BackSeconds defaults0;
|
||||
leave auto-turn live admission gated until its clock owner is established.
|
||||
`Apply` accepts full live Euler, source turn/bias, actual support and actual support
|
||||
polygon presence. It returns velocity and Euler. Body integration, input/apply
|
||||
order, ordinary/gadget mode dispatch, collision and published-speed copy stay
|
||||
with the caller. In particular, do not derive a support polygon merely from a
|
||||
provisional capsule's Grounded flag or apply this ground suffix during air mode.
|
||||
|
||||
Twenty-five copied-original observations execute successfully in isolated Wine32:
|
||||
17 keyboard suffix cases (combinations, release/crossing, cap/overspeed, backward
|
||||
cap and seeded exact/over1.5/latch branches), eight complete437C40 cases (rest,
|
||||
stationary turn, lateral-only, turn, full tilt, supported polygon, missing polygon,
|
||||
unsupported). Synthetic actor/root/support/animation methods surround the copied
|
||||
routines; original OMT vector/trig methods execute from a copied DLL. No original
|
||||
game entrypoint, camera prefix, general dynamic body or complete Jimmy executes.
|
||||
The initial missing OMT export qualifier was corrected before the final run;
|
||||
only the final exit0/JIMMY_GROUND_COMPLETE output establishes observations.
|
||||
|
||||
The committed original-ground-reference.json records both source identities,
|
||||
bounded spans, generator/shared harness/executable/log hashes and all25 cases.
|
||||
Two managed groups compare every case and check active-versus-idle heading and
|
||||
caller-owned primary/backward suppression. Two Python groups validate identity,
|
||||
provenance, ranges/offsets and complete observed counts. Logs and final capture
|
||||
metadata are under artifacts/jimmy-ground-audit/. Parent owns live integration,
|
||||
route/render/platform checks and root status documents; this agent made no shared
|
||||
runtime edits or commits. Whole-original/native Windows movement parity remains
|
||||
unverified. Mouse/analog, camera side timers, generic clock registration, full
|
||||
standing/pose/climb branches and engine cadence remain separate evidence gates.
|
||||
@@ -0,0 +1,58 @@
|
||||
# Jimmy jump and powered hold conformance
|
||||
|
||||
2026-11-05. Authoritative EXE SHA256
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
This extends the existing [jetpack recovery](../analysis/jetpack.md); the playable
|
||||
550 impulse, −800 gravity and existing state0..5 behavior remain the baseline.
|
||||
JN-Engine's tuned movement is not used.
|
||||
|
||||
## Evidence and corrections
|
||||
|
||||
REA inspect-with-objdump Evidence
|
||||
`ev_0d64cc58fa8f5573fc8e61e0f2c20e36288099212bd2257d3a3121361fd6c904`
|
||||
retains the complete original disassembly in
|
||||
artifacts/jimmy-movement-audit/rea-original-disassembly.json. This is static
|
||||
instruction evidence. The complete437F90..4387D8 range, including both jump
|
||||
tables, maps to file37F90..387D8. Euler helpers4723F0/472480/472B10 map to
|
||||
723F0/72480/72B10. The generator guards identity, offsets and each range's hash.
|
||||
|
||||
`tools/binary/jimmy_jump_motion.py` extends the air harness without its early
|
||||
suffix return. It executes full copied437F90 with synthetic actor/body, support,
|
||||
energy/inventory, level, animation and effect callbacks, plus original OMT trig
|
||||
and original Euler leaves. The game entrypoint, collision/body integration,
|
||||
effect countdown421FB0 and real animation/audio are not executed. Absolute
|
||||
strings and jump-table entries are separately relocated; operands outside the
|
||||
mapped image are rejected so disassembled table bytes cannot corrupt relocation.
|
||||
Initial harness attempts required correcting those relocations and the synthetic
|
||||
509948 owner pointer. Only the final successful32-case run is used as evidence.
|
||||
|
||||
The isolated Wine32 run exits0 and prints JIMMY_JUMP_MOTION_COMPLETE. Fixture
|
||||
`tests/GamePort.JimmyJumpTests/original-jump-reference.json` records32 observations,
|
||||
source ranges, relocations, generator/shared setup/probe executable/output hashes.
|
||||
Generated source, capture.json and wine.log remain in artifacts/jimmy-jump-audit.
|
||||
The managed suite compares jump state, hold/effect timers, pending impulse,
|
||||
vertical/extra acceleration, pose requests, effect calls and radius writes.
|
||||
|
||||
Two directly evidenced precision mismatches are corrected in `JetpackBurst`:
|
||||
|
||||
- Before powered state3, gravity correction retains the wide intermediate:
|
||||
`(float)((double)gravityY * 1.33f - gravityY)`. With−800 this is−264.000031,
|
||||
rather than the old staged float−264.
|
||||
- 438407 stores hold as float but43840D compares the unrounded x87 sum against
|
||||
float.4. Stored `.3f + .1f` and `23f/60 + 1f/60` both become.400000006,
|
||||
but only the first starts the burst. The port now compares the wide sum before
|
||||
returning. Testing the stored float cannot distinguish those observations.
|
||||
|
||||
Coverage includes states0..5, held/released branches, takeoff/landing, null effect,
|
||||
expiry, exact/adjacent hold thresholds, inventory/energy/gadget/level gates,
|
||||
VR04 immunity and both sides of the500-height acceleration threshold. The outer
|
||||
437940 grounded/released bypass remains a caller phase and is not certified by
|
||||
invoking437F90 alone. Physics consumes pending impulse on the following pass;
|
||||
source effect421FB0, input registration and raw control retain their own owners.
|
||||
|
||||
## Remaining limits
|
||||
|
||||
This proves bounded original component outputs and managed conformance, not a
|
||||
whole-original trajectory. Fixed60Hz, the capsule in lab/outside, render root,
|
||||
complete animation completion, sound and native Windows feel remain separate.
|
||||
Live route and SDL tests are recorded in [movement stabilization](jimmy-movement-stabilization.md).
|
||||
@@ -0,0 +1,99 @@
|
||||
# Jimmy movement stabilization
|
||||
|
||||
2026-11-04. User pauses gadget expansion and prioritizes solid Jimmy movement.
|
||||
Current C# movement is the playable baseline; runtime packages fccc0b9 and source
|
||||
42ea2b8 remain preserved. JN-Engine's native/Godot movement is explicitly not the
|
||||
behavior oracle. Its saved original decompiler/class index is a navigation aid;
|
||||
REA, authoritative bytes and copied-original observations verify corrections.
|
||||
|
||||
## Working checkpoints
|
||||
|
||||
1. Compare ordinary ground/air input, velocity and facing with copied-original
|
||||
cases; preserve current acceleration/jump/gravity values unless contradicted.
|
||||
2. Verify jump/hold/release/landing, jetpack acceleration/expiry, queued impulse
|
||||
and physics-before-input ownership, including fresh/retained scene order.
|
||||
3. Recover lab/outside contact metadata, root publication and animation-owned
|
||||
response sufficiently to replace the provisional capsule safely. Preserve
|
||||
scene/actor state ownership; do not enable unsupported special contacts.
|
||||
4. Verify the combined input/physics/control/animation behavior on lab → VR04 →
|
||||
lab → outside, including all jump aliases, stairs/slopes/walls/ceilings,
|
||||
cutscenes, reset, RETURN and stable presentation-rate behavior.
|
||||
|
||||
## Evidence boundary on entry
|
||||
|
||||
Current ordinary body is source-backed in bounded tutorials; lab/outside still
|
||||
use the modern capsule. Controller input and apply are simplified in LabSimulation,
|
||||
with source-based Jump550/gravity800 plus jump acceleration correction, fixed60Hz
|
||||
as a modern policy, and a sole/root render bridge. Previous numeric/route/native
|
||||
verification remains valuable; it does not certify complete movement fidelity.
|
||||
Ground/air/math corrections are separate from admitting special/dynamic physics.
|
||||
|
||||
New independent reports: jimmy-ground-motion.md, jimmy-air-motion.md,
|
||||
jimmy-orientation.md and ../checkpoint/jimmy-special-contact.md. Parent owns
|
||||
integration/jump/route verification; investigators own their named new files only.
|
||||
Findings/tests and implementation status are updated here as chunks finish.
|
||||
|
||||
## Controller checkpoint, 2026-11-05
|
||||
|
||||
Integrated `JimmyGroundMotion`, `JimmyAirMotion` and `JimmyOrientation` into
|
||||
LabSimulation. Ground Up/accepted Down publishes current heading even without
|
||||
turn input, clearing the old turn destination; neutral retains it. Acceleration
|
||||
preserves existing overspeed. Ground backward acceptance honors raw−1/3 primary
|
||||
fire. Air input retains the shared keyboard-turn latch, performs its independent
|
||||
supported subtraction/brake and compares coast with the wide product. Full-Euler
|
||||
apply preserves incoming Vy and correctly gates lateral/yaw on incoming velocity.
|
||||
Facing uses original shortest arcs/full-axis angle normalization and runs in the
|
||||
base phase even without raw control. Published speed, pending impulse, effect
|
||||
clock and fresh/retained ordering remain separate. [Jump conformance](jimmy-jump-motion.md)
|
||||
adds the exact wide hold comparison and gravity intermediate.
|
||||
|
||||
108 saved native observations compare against managed components:25 ground,
|
||||
35 air,16 facing and32 jump.27 additional native special-contact dispatch cases
|
||||
establish callback eligibility only.12 air destination writes establish missing
|
||||
pitch/roll target behavior, which remains a deliberate implementation gate; see
|
||||
[jimmy-air-motion.md](jimmy-air-motion.md). These are copied-original component
|
||||
observations, not observed original whole-game play.
|
||||
|
||||
### Collision compatibility boundary
|
||||
|
||||
The original supported ground apply subtracts250 from live Vy only when actual
|
||||
support polygon338 is non-null. This is live with the source body and its real
|
||||
SupportHit. A capsule Grounded flag or floor-height query does not stand in for338.
|
||||
An attempted mapping from capsule support introduced a repeatable lab stair block
|
||||
(artifacts/jimmy-movement-audit/lab-route.log, leg1 root4307.62/15.13/351.25).
|
||||
Removing that mapping restores the entire input-only route
|
||||
(lab-route-compatible.log), and the two-way underground route also passes. The
|
||||
capsule retains baseline landing Vy0. This is an explicit compatibility gate,
|
||||
not an original-body result or a replacement friction/step tuning fix.
|
||||
|
||||
### Next coherent implementation chunks
|
||||
|
||||
1. Implement source destination-Euler pitch/roll with retained7EC/7F0, the full
|
||||
actor-root visual bridge and mode/registration order together. Verify ordinary
|
||||
jump, powered turning, Bubble cleanup, landing and RETURN. Baseline ordinary
|
||||
air currently stays visually upright; the recovered−40/+10 targets are not live.
|
||||
2. Finish Vec4 previous/live-root publication after callbacks; separate body
|
||||
integration210 from world-response1D0. Verify successful fence/ladder entry,
|
||||
animation-end/fallback completion and4255C0 hazard/impulse ownership before
|
||||
broader Jimmy body admission. The incomplete success-probe experiment is
|
||||
preserved under ignored artifacts/jimmy-special-contact/success; it is not
|
||||
conformance evidence or part of the committed dispatcher tool.
|
||||
3. Recover dynamic pair eligibility/shared context and original support metadata;
|
||||
replace the lab/outside capsule in an independently verified route chunk.
|
||||
4. Complete animation/camera/retained helper/cadence comparison on a working
|
||||
original installation and native Windows. The user's preserved movement
|
||||
baseline remains authoritative among unverified port alternatives.
|
||||
|
||||
### Cross-system regression interpretation
|
||||
|
||||
Original AddEuler stores small negative pitch near360; Bubble's test/smoke checks
|
||||
now compare signed angular direction rather than requiring a negative stored
|
||||
number. Its fire/throttle and source target sign stay unchanged. Source-supported
|
||||
Grappler attachment also exposes phase composition: fresh input writes Vy100,
|
||||
then the ordinary ground controller subtracts250, producing−150; retained late
|
||||
input writes100 after that publication. The existing ground native positive-Vy
|
||||
case proves this subtraction. Managed attachment checks now distinguish those
|
||||
orders. Control loss still runs the body, but a supported root need not move;
|
||||
its regression checks the physics count/support/ownership instead of inventing
|
||||
an airborne displacement. Grappler completion/other callbacks are not inferred
|
||||
from these tests.
|
||||
@@ -0,0 +1,72 @@
|
||||
# Jimmy facing interpolation and full Euler seams
|
||||
|
||||
2026-11-04. This source-backed helper closes an integration dependency of the
|
||||
ordinary movement audit. The current playable port remains the baseline. No
|
||||
JN-Engine native movement/controller constants were adopted.
|
||||
|
||||
## Recovered original contract
|
||||
|
||||
Authoritative EXE SHA256
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
Code VAs below have independently mapped file offset VA−400000. New extractor
|
||||
jimmy_orientation.py records three bounded ranges, hashes and two double factors.
|
||||
|
||||
| VA / file offset | Contract |
|
||||
|---|---|
|
||||
|43A420..43A5CF /3A420..3A5CF|Jimmy game-interface3D8 facing.475CA0 gameplay gate, +5 enabled, +A dirty control execution. Clear dirty, read current224/228/22C and retained target274/278/27C. Unequal axes reassert dirty; current/target remain distinct state.|
|
||||
|43A4A4..43A58C /3A4A4..3A58C|For each target−current difference, wrap strictly>180 by−360 and strictly<−180 by+360 once. ±180 retain sign. Pitch/yaw deltas have explicit float stack stores; roll's difference remains on x87 until final argument publication.|
|
||||
|43A58C..43A5C2 /3A58C..3A5C2|Multiply differences by supplied float dt, then double4.5 for pitch/roll (4AFD38), double3.7 for yaw (4AFCF0), store each resulting delta as float parameter and invoke334. There is no small-step snap or gain clamp.|
|
||||
|458F90..458FB6 /58F90..58FB6|Jimmy334 wrapper repeats gameplay gate, then forwards XYZ float parameters to472480.|
|
||||
|472480..472570 /72480..72570|Add angles and preserve original asymmetric negative truncation and strict>360 single wrap. Existing RocketOrientation.Add models this leaf; zero steps can normalize negative angles.|
|
||||
|473240→47328D /73240→7328D|Shared base updater invokes game3D8→43A420.43796A calls40E050 before437A1B raw-owner identity check. Facing is thus a base phase independent of movement input acceptance. Body/registry/callback ordering still belongs to caller.|
|
||||
|
||||
Jimmy vtable4A373C+334 binds458F90 and+3D8 binds43A420. The probe uses these
|
||||
original wrapper/leaf bodies with a synthetic game-interface object and active
|
||||
475CA0. No global game entrypoint or actor/controller/body path executes.
|
||||
|
||||
## Why this matters for live integration
|
||||
|
||||
LabSimulation previously interpolated raw targetPitch−Pitch and targetRoll−Roll
|
||||
with float4.5, while yaw used IEEERemainder and float3.7. Source AddEuler used by
|
||||
movement canonicalizes all axes, so a recovered pitch/roll338 must approach0
|
||||
through360. A raw difference would instead rotate338 toward0 the long way.
|
||||
This can create an artificial spin after a slope/vehicle/Bubble tilt. Source
|
||||
native338→0 at60Hz produces339.65 on both pitch/roll, preserving the short arc.
|
||||
|
||||
New JimmyOrientation.Step(current,target,dt,enabled=true,dirty=true) returns the
|
||||
new full Euler and leaves destination state untouched. It supports ordinary
|
||||
movement and existing Bubble facing; no targets are invented/reset by the helper.
|
||||
X/Y delta rounding, factor widths and AddEuler parameter publication are preserved
|
||||
with double intermediates and explicit float argument casts. Disabled/clean gates
|
||||
return current unchanged. Caller owns actual enabled/dirty fields and scheduling;
|
||||
this pure API does not infer either from input ownership.
|
||||
|
||||
Parent owns LabSimulation integration: apply this once in the recovered base
|
||||
phase, after fresh input and before ordinary controlled apply, while retained
|
||||
input remains after player/fire. Remove duplicate naive interpolation. Exact
|
||||
base-wrapper/dirty flag state and unsupported class modes remain separate gates.
|
||||
|
||||
## Evidence and verification
|
||||
|
||||
Parent's retained REA inspect_with_objdump Evidence
|
||||
`ev_0d64cc58fa8f5573fc8e61e0f2c20e36288099212bd2257d3a3121361fd6c904`
|
||||
contains the complete original disassembly. Bundle:
|
||||
artifacts/jimmy-movement-audit/rea-original-disassembly.json. The focused source
|
||||
instructions/caller are retained under artifacts/jimmy-orientation-audit. The
|
||||
same routine may not be recognized as a Ghidra procedure under the default profile;
|
||||
no unchanged failed pseudocode selector was repeated. This evidence establishes
|
||||
bytes/instructions, not original gameplay runtime.
|
||||
|
||||
The isolated copied-original probe executes43A420/458F90/472480 and records16
|
||||
cases: ordinary axes,338→0 leveling, both359/1 seams, negative angles, exact±180,
|
||||
>180, canonical360, fractional input/double arithmetic, small-angle/no-snap,
|
||||
120-tick settling, upright and enabled/dirty/zero-dt gates. Wine32 exits0 with
|
||||
JIMMY_ORIENTATION_COMPLETE. Source/generator/shared-map-helper/generated EXE/log
|
||||
hashes are committed in original-orientation-reference.json. Native outputs and
|
||||
capture metadata are under artifacts/jimmy-orientation-audit/probe.
|
||||
|
||||
Two managed groups compare all16 observations and verify retained target state.
|
||||
Two Python groups guard identity, ranges/offsets, double factors, complete fixture
|
||||
and provenance/gates. This is component execution plus managed conformance, not
|
||||
whole-original/native Windows gameplay, full animation/visual-root parity or a
|
||||
complete scene registry/cadence implementation. Parent records live verification.
|
||||
Reference in new issue
Block a user