Run body and fire phases during scripted control locks
This commit is contained in:
1 parent
5876da112c
commit
c285b57091
35 files changed
+1503
-45
No files matched your search
@@ -23,6 +23,11 @@ The retained-field continuation adds [property reader](retained-streamer.md),
|
||||
[player body/scalar boundary](retained-player-body.md) and
|
||||
[companion/shadow resets](retained-companion.md). It corrects the earlier
|
||||
availability-prefix interpretation and implements bounded route scalar carry.
|
||||
The next C3 continuation is [control phases](control-phase-implementation.md),
|
||||
backed by [uncontrolled player](uncontrolled-player.md),
|
||||
[physics eligibility](uncontrolled-physics.md) and
|
||||
[cutscene preparation](cutscene-preparation.md). [REA setup](../rea.md) records
|
||||
local Ghidra/JDK and Evidence/snapshot use.
|
||||
|
||||
Evidence labels used throughout:
|
||||
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
# C3 continuation: uncontrolled body and fire
|
||||
|
||||
Implementation2026-10-26. Source contracts: uncontrolled-player.md,
|
||||
uncontrolled-physics.md and cutscene-preparation.md. This replaces the port's
|
||||
whole-player freeze on control loss with a bounded phase split.
|
||||
|
||||
LabSimulation.Step consumes prior body state first. Input/controller math runs
|
||||
only when Jimmy has effective control; fire ticks independently afterward.
|
||||
The existing fresh/retained input ordering remains. Ordinary grounded radius60
|
||||
is reasserted before the movement gate, matching the supported wrapper path.
|
||||
Grounded fire can expire while mode/jump/hold remain untouched by the skipped
|
||||
controller. Queued impulses survive camera preparation and are consumed once by
|
||||
the following body pass. Neither control loss nor restoration invents a key flush.
|
||||
|
||||
PlayerSceneBinding connects raw-owner preparation events to speed/velocity and
|
||||
supported gadget cleanup, and publishes the simulated root while uncontrolled.
|
||||
Authored AI transforms update the body too, preventing a later physics publish
|
||||
from overwriting the script's teleport. Destination yaw is preserved. Pitch/roll
|
||||
remain director-owned; Jimmy's render/controller still uses the existing yaw
|
||||
adapter. Initial MCA preparation occurs once, with its first-name guard; later
|
||||
shots do not repeat it. AI and CAM use their own callback order. STOP notification
|
||||
follows physical preparation. DEFAULT grants control without preparation.
|
||||
|
||||
Force Control is a modern effective-input override; raw ownership still selects
|
||||
source preparations/music. Noclip keeps its separate flight path. F1/modal/inspect
|
||||
boundaries stop the whole frame, so body/fire do not accrue paused time.
|
||||
Contact-triggered interactions retain the existing control gate pending C4.
|
||||
|
||||
Counters now distinguish total Steps, PhysicsSteps, ControllerSteps and EffectSteps.
|
||||
Total Steps also counts modern flight, which bypasses the physical/effect phases.
|
||||
The console report exposes these counts; a cutscene's nonzero total count does
|
||||
not mean Jimmy accepted input. `--smoke-carl-cutscene` asserts zero controlled
|
||||
updates/jumps/turn/speed while physical/effect callbacks continue. The new
|
||||
`--smoke-control-phases` seeds an airborne retained-fire fixture, holds movement
|
||||
and jump through15 locked frames, checks falling/fire/energy without input, then
|
||||
skips/restores control and verifies held-input movement resumes. This is a port
|
||||
fixture, not an original end-to-end recording. Headless story pre-roll uses the
|
||||
same binding/phase policy.
|
||||
|
||||
## Verification and limits
|
||||
|
||||
New managed tests cover queued impulse across preparation, uncontrolled fire and
|
||||
tutorial immunity, independent grounded resets, CAM/MCA/AI order, body-before-STOP
|
||||
observation, raw/effective ownership, later-shot behavior, held jump restoration
|
||||
and authored teleport synchronization. Python adds9 source/projection tests.
|
||||
The input-only lab replay now uses the same binding and waits through live
|
||||
cutscenes with body/fire ticking. Its old coasting turn missed the narrow exit:
|
||||
port snapshot root(318.11124,75.02122,770.8816), yaw47.52308, controlJIM1,
|
||||
no shot/block and2290 wall hits. Braking with the actual Down input before large
|
||||
heading changes restores the route (score150, owned jetpack, one practice No,
|
||||
zero jumps,6 wall hits). No physics or task gate was changed to make that replay
|
||||
pass. The provisional corner response remains a useful C4 investigation case.
|
||||
Native Linux GTX1070 at1280x720 passes Carl/control-phase and F1/F3 tools/menu
|
||||
checks with zero enabled Vulkan validation errors. Full integration/package
|
||||
results are recorded in progress.md; native Windows remains separate.
|
||||
|
||||
REA6.8.0/Ghidra12.1.4 source Evidence is retained under
|
||||
artifacts/uncontrolled-phases/rea/. IDs:
|
||||
|
||||
| Procedure | Evidence ID |
|
||||
|---|---|
|
||||
|475CA0 gameplay gate|ev_aa0b7db46894c10d2f28f76d0da1e568ef06253f3d6c8cf6b06fbef299602bab|
|
||||
|479BC0 body traversal|ev_56b7e074ec8509d1c5b3576d02361ff051963b777d7ccb8259ed9c65dc2db52f|
|
||||
|437940 movement gate|ev_de7097867d129a4232318e667e9496c6868cdb1da4b37a1f3304c94b0b101677|
|
||||
|40E050 animated base|ev_03a109302788b85597e253293bbcb535c4080732e41cc828bb33d01d2b2da09a|
|
||||
|462520 base body/rotation bridge|ev_f0a2e1fd465472295b272f2fdbfb6be4651aeb8c35d90dc2ca02a495ed359edd|
|
||||
|
||||
These are static decompiler observations with unknown C++ types, not original
|
||||
source or runtime.421FB0 maps correctly from file21FB0 but lacks an analyzed
|
||||
procedure in this Ghidra profile; its pseudocode is unavailable, not evidence
|
||||
that the source callback is absent. Existing guarded bytes/vtable/body hash remain
|
||||
the authority for that callback. Partial batches preserve successful Evidence.
|
||||
|
||||
Remaining: full424600 wrapper timers/UI/sound cleanup, base40E050/462520
|
||||
resource/transform/morph policies, collision-triggered ceiling cancellation,
|
||||
scooter radius160 and other gadget/class cases, original body registration and
|
||||
response, complete registry and engine cadence, shared viewport handoff and
|
||||
original whole-game comparison. Calling the entire controller with empty input
|
||||
would not implement these missing phases. Existing capsule/yaw/camera adapters
|
||||
remain explicit; this chunk does not certify a complete scene scheduler.
|
||||
@@ -12,18 +12,18 @@ runtime comparison. Coverage does not mean implementation completeness.
|
||||
|
||||
| ID / system | Recovered contract / anchors | Port implementation | Evidence / remaining gap | Next bounded action |
|
||||
|---|---|---|---|---|
|
||||
| LOOP | Viewport47E4F0 physics before registry473740, including input44DF80; second sync473770; construction order and selective retained-character/new-game ordering. Separate engine morph clock. | Player now integrates prior body state, then fresh input/player/fire or retained player/fire/input. Other systems remain grouped; fixed60Hz policy. | S/M/R. Controlled player partial order implemented; full registry/cadence and uncontrolled-body preparation open. | C3 continue other callbacks and morph/control phases; C4 support/response remains separate. |
|
||||
| LOOP | Viewport47E4F0 physics before registry473740, including input44DF80; second sync473770; construction order and selective retained-character/new-game ordering. Separate engine morph clock. | Player now integrates prior body state, then fresh input/player/fire or retained player/fire/input. Uncontrolled body/fire now continue while movement/input are gated. Other systems remain grouped; fixed60Hz policy. | S/M/R. Controlled player partial order implemented; bounded raw-owner preparation implemented; full wrapper/registry/cadence open. | C3 continue other callbacks and morph/control phases; C4 support/response remains separate. |
|
||||
| INPUT | Game interface+8C slot3C4→44DF80→475A70 reads controlled5099E4 and calls3CC; Jimmy interface+C0→426030. | SDL arrows/jump aliases; control gate, modern debug override; mouse/controller incomplete. | S/M/R, user Windows route. Input occurs in object traversal after physics; device sampling/focus and latency open. | Trace event pump, key/mouse and focus gates alongside retained registry order. |
|
||||
| MOVE |437940/439900 ground/air arithmetic; physics479D20 consumes queued impulse once before acceleration/gravity. | Controlled player consumes prior body state before callbacks; fresh/retained input order explicit. Fixed dt and custom yaw/model conventions remain. | S/P/M/R. Controlled partial phase split verified; uncontrolled/full registry and body response open. | Continue C3 uncontrolled phases, then C4 support/response. |
|
||||
| JET |437F90 controller;421FB0 effect; fresh constructor order places fire after Jimmy, both after global physics. States0..5, hold>.4,8s, energy. | Explicit state table with post-collision effect ticking and VR immunity. | S/M/R. Fresh same-pass countdown recovered; retained child lifecycle, sound and expiry→animation open. | Trace retained Jimmy/fire resets and phase end events before scheduler integration. |
|
||||
| COLL |479D20/47BD80 body response; support and quick magnitude; dynamic boxes; NC-shape registration exclusion. | Source support and box pieces around modern swept24-unit capsule, feet/root grounding and slide. | S/P/M/R. Response/masks/stairs/contact order not fully recovered; source radius60 is not port capsule24. | C4: isolate response and root convention; replace adapter behind route tests. |
|
||||
| ANIM | Engine morph10002DB0; linear interpolation10002F9A; game logical→OMT sync4624B0. | ASE sample timing, unconditional loop closure, pose/action aliases,1/60 advance. | S/P/M/R. Playback flags, rate, completion callbacks, transition order open. | Recover one-shot/loop/end notifications before more aliases. |
|
||||
| SCRIPT | Source AI/CAM/MCA dispatch and chains; task45F990 objective406F50 BEFORE records BEFORE per-entity424. | Bounded synchronous director; baseline objective after records/actor batch. | S/M/R. Script callbacks recovered for route; generic class coverage and reentrancy incomplete. | C1: ordered objective notification; C2: per-actor Carl override. |
|
||||
| CONTROL | Global5099E4 null during valid CAM/MCA; PlayerControlled completion target; DEFAULT447D..447F restores camera/UI/music. | Director raw ownership plus explicit debug effective override; player physics stops when uncontrolled. | S/M/R. Null control is not proof all objects/physics stop; scheduler gap remains. | Map raw ownership transitions against phase gates and deferred LOAD. |
|
||||
| SCRIPT | Source AI/CAM/MCA dispatch and chains; task45F990 objective406F50 BEFORE records BEFORE per-entity424. | Pre-assignment objective selection and per-actor Carl override implemented; bounded synchronous director. | S/M/R. Script callbacks recovered for route; generic class coverage and reentrancy incomplete. | Continue other class-specific callbacks and reentrancy under the recovered owner/phase boundaries. |
|
||||
| CONTROL | Global5099E4 null during valid CAM/MCA; PlayerControlled completion target; DEFAULT447D..447F restores camera/UI/music. | Director raw ownership plus explicit debug effective override; eligible player body/fire continue; only input/controller tail is gated. | S/M/R. Raw/effective control and ordered preparation are implemented; full base/class wrappers and scheduler remain incomplete. | Continue full wrapper/base and collision contact phases around deferred LOAD. |
|
||||
| CAMERA | Shared viewport; strict>1000 DEFAULT snap; source eye correction/gain; first wall-grid hit then general-grid FIFO; per-level far planes. | Static source query now integrated for the three route scenes; other scenes use provisional sweep. Separate chase/script eyes and merged clip maximum remain. | S/M/R. Query/kernel/counts tested; x87 boundaries, shared handoff/previous-eye and input branches open. | C5 next shared viewport/DEFAULT and complete follow state. |
|
||||
| AUDIO | CAM416776..E1 stops music; DEFAULT447F12..45 restarts; bank696008 / gate4F8434; handle47D890 polls inherited software duration and repeat+30. | Separate SDL streams, floating-file-duration cutscene completion, independent per-file SFX. | S/M/R (dummy streams). Source duration/allocation/play-failure/bank/attenuation lifecycle incomplete; speakers/native Windows timing not verified. | C6: explicit bank owner and software channel-clock tests; SDL queue-empty is not the source oracle. |
|
||||
| UI |406F50 selector/timer;4043D9 controlled clock;407070/O edge;404D97 practice resume.44 objective flags distinct from selector. | Timed objective subset, modal practice, modern UiViewport/debug. | S/M/R. Other flags/gadgets/highlights/cursor/energy/layout transitions open; source widescreen not recovered. | Keep modern scale policy separate; recover UI dispatcher/mode gates before expanding. |
|
||||
| LOAD | CEditor deferred scene request; selective teardown/reuse; Init stored+11→live+139 resolves old-game deletion; Jimmy/Goddard retained. RETURN root/flags and per-object28→40C. | Reconstructed scene with retained input-order identity and bounded mode/hold/fire container; app-owned presentation. | S/P/M/R. Property stream and bounded scalar/companion resets closed; full body/helper timing and fades remain.50988A is editor R input. | Continue body registration/helper traversal and uncontrolled scheduling; other gadget/level branches remain gated. |
|
||||
| LOAD | CEditor deferred scene request; selective teardown/reuse; Init stored+11→live+139 resolves old-game deletion; Jimmy/Goddard retained. RETURN root/flags and per-object28→40C. | Reconstructed scene with retained input-order identity and bounded mode/hold/fire container; app-owned presentation. | S/P/M/R. Property stream and bounded scalar/companion resets closed; full body/helper timing and fades remain.50988A is editor R input. | Continue full wrapper/body registration/helper traversal; other gadget/level branches remain gated. |
|
||||
| INVENTORY | PostLoad common prefix enables eight owned gadgets4→1, then VR01..08 disables1→4; full tail re-enables the practice gadget. LV1B disables1/7; other wire values preserved. | Availability pass now applied at level entry and verified across TSK tutorial/return; snapshots preserve raw values. | S/M/R. Full selected-gadget/UI and other level tails remain incomplete; bounded route mode/hold/fire carry is implemented. | Keep availability separate from ownership, task changes and arbitrary state carry. |
|
||||
| SAVE | TSK45FEE0 writer /4603F0 reader; records, arrays, return strings, stored departure root; queued460E70→460EA0. | Original-format round-trip and CLI save, scene snapshots; no full source save UI/load lifecycle. | S/M. Source reader duplicates matching task callback then all-entity420 post-task hook; this is distinct from Jimmy placement PostLoad423A90. Current fresh-director path differs. | C7 after C1/C2; test repeated callbacks before adopting loader behavior. |
|
||||
| CHECKPOINT | Pickup42AF00 stores+1E38 root/+1E48 level separately from+9A8 RETURN root. | Capture exposed, not used for return; source capture consumers unknown. | S/M. Do not interpret as death/respawn until read consumer found. | Track unresolved consumer; no speculative gameplay. |
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
# Cutscene preparation and control handoff
|
||||
|
||||
2026-10-26, static EXE evidence. SHA256
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
VAs below use400000 preferred base; raw offset=VA−400000 at these sites.
|
||||
cutscene_preparation.py records exact bytes/virtual targets; its projection is
|
||||
interpretation, not source execution. Primary completed the investigator's helper,
|
||||
corrected its sign-extended byte−1 comparison anchor and added tests/report.
|
||||
|
||||
| Boundary | Proven order and source sites |
|
||||
|---|---|
|
||||
|CAM with PlayerControlled=NULL|Guard prior raw owner416635;43841665D→41041666B→flatten logical/cached Euler(0,yaw,0)41667E..4166E5→game118(NULL)4166F4. Target lookup occurs later416754. Preparation can precede a missing target/sound failure.|
|
||||
|Initial MCA activation|First target name `none` guard431300 exits before preparation. A non-none name reaches initial target/animation prelude; missing lookup can continue. Prior owner guard431502;410431512→flatten Euler431525..431578→438431598→game118(NULL)4315A7. Per-shot helper invoked431600.|
|
||||
|Later MCA shot|CompleteE0→431750; target/sound/animation work, no410/438 or raw control clear. The sound−1 check431771 sign-extends one immediate byte, not a four-byte immediate.|
|
||||
|AI PlayerControlled=NULL|Prior raw owner guard40C4AD→41040C4B9→game118(NULL)40C527; no438 or flatten. Named AI ownership remains an older port interpretation requiring broader proof.|
|
||||
|DEFAULT|447D5C checks whether Jimmy already owns raw control;447E27 restores via118 without410/438. No new key-release boundary is implemented. Music uses authored ownership independently of debug force.|
|
||||
|
||||
Jimmy410→42AFC0 calls43A750 first: clear speed608 and velocity XYZ2C4; stop
|
||||
saved sound148; then request complete150(`STOP`) at42AFDE/E5. Body changes precede
|
||||
the STOP animation notification. Mode, jump, hold, pending impulse, acceleration
|
||||
and fire timer are separate. Existing isolated43A750 probe validates its limited
|
||||
write set with invalid sound handle; it does not execute full camera activation.
|
||||
|
||||
Jimmy438→42AE00 invokes selected-gadget cleanup178→427FF0 and sets interface1D65
|
||||
and global4F8182. Supported no-selection/jetpack cleanup clears selection; other
|
||||
gadget cases are not blanket resets (retained-return-cleanup.md). The port exposes
|
||||
these ordered boundaries, implements supported player motion/selection and logical
|
||||
orientation changes, and leaves other class/UI/resource side effects explicit.
|
||||
|
||||
Authored AI movement has separate setters: marker root310 at40C732→target314
|
||||
at40C757; yaw40C88F..40C961 uses174→4716D0, writes authored/live Euler and cached
|
||||
Euler, and does not write movement destination yaw61C. PlayerSceneBinding applies
|
||||
root/yaw to the simulation without erasing pending motion or destination yaw.
|
||||
Only actual transform writes emit that event; animation-only changes do not.
|
||||
|
||||
The port's skip fast-forward, malformed/reentrant activations, MCA's initial
|
||||
animation prelude, all other class virtual effects and full shared camera state
|
||||
are not certified by this chunk. Existing named control behavior is preserved,
|
||||
not newly recovered here. Three byte/projection tests and coupled managed
|
||||
director/body tests guard the implemented ordering and boundaries.
|
||||
@@ -105,3 +105,20 @@ allowed where it resolves a core-system question, without waiting for every leve
|
||||
Linux launch from /tmp verifies nondefault tutorial/RETURN scalar boundaries and
|
||||
body resets. Release validation unavailable; source GPU checks enabled. Native
|
||||
Windows runtime remains unverified for this chunk. Preserved baseline untouched.
|
||||
|
||||
- C3 control continuation: gated movement/input independently of eligible body and
|
||||
fire; explicit CAM/MCA/AI raw-owner preparations and body-before-STOP order;
|
||||
initial MCA target-none returns, later shots do not repeat preparation. Scripted
|
||||
player transforms synchronize into body state. Grounded ordinary radius is outside
|
||||
the control gate. Full wrapper/base/ceiling/class effects remain open.
|
||||
- Same binding is exercised by the input-only lab route; modern replay now brakes
|
||||
before large turns instead of coasting past the narrow door. Task/score/inventory/
|
||||
contact assertions remain. The observed corner behavior is retained as C4 input.
|
||||
- Local REA/Ghidra/full-JDK setup and batch Evidence/snapshot workflow verified.
|
||||
Five selected source procedures cross-check gates/base calls. Missing analyzed
|
||||
fire entry is recorded; no target execution or client registration change.
|
||||
|
||||
- Final C3 integration: full scripts/test.sh passes with93 Python checks,24 movement
|
||||
groups, remaining managed checks and the binding-based input-only lab route,
|
||||
27 zero-error enabled-validation GPU renders, SDL dummy lifecycle and539 hashes.
|
||||
Native GTX1070 Carl/control/F1/F3 commands pass; native Windows remains separate.
|
||||
@@ -6,6 +6,11 @@ It does not replace the entire scene scheduler, collision response or animation
|
||||
clock. Evidence is in `input-frame-bridge.md`, `lab-registry.md`, the new
|
||||
`player_phase_evidence.py`, and the follow-up `level-game-lifetime.md`.
|
||||
|
||||
Continuation: `control-phase-implementation.md` now separates uncontrolled body/
|
||||
fire from controlled movement, with source-specific preparation boundaries. The
|
||||
older unresolved-control wording below describes this chunk's original boundary;
|
||||
full wrapper/base/morph work and the scene scheduler still remain open.
|
||||
|
||||
## Source contract and implementation
|
||||
|
||||
EXE47E554 calls479BC0 physics before473740 game-object callbacks47E582;473770
|
||||
|
||||
@@ -6,6 +6,10 @@ Preferred-base EXE VAs below map to raw offset VA−400000; the helper independe
|
||||
maps PE sections. Originals remain untouched. Static recovery, isolated component
|
||||
execution and port tests are separate evidence categories.
|
||||
|
||||
Continuation: uncontrolled body/fire and cutscene preparation are now implemented
|
||||
in a bounded C3 chunk; see control-phase-implementation.md. Full wrapper/base
|
||||
policies, body response and scene scheduling remain separate gates.
|
||||
|
||||
## Closed callback chain
|
||||
|
||||
Read `retained-streamer.md`, `retained-return-cleanup.md` and
|
||||
|
||||
@@ -10,6 +10,11 @@ availability conclusions are superseded. See `player-phase-implementation.md`,
|
||||
`level-game-lifetime.md` and the current ledger. The exit review below preserves
|
||||
the evidence/verification boundary at the original checkpoint milestone.
|
||||
|
||||
The control-phase continuation now separates uncontrolled body/fire from controlled
|
||||
movement and implements bounded ordered preparations. Local REA/Ghidra static
|
||||
Evidence cross-checks the original gates. See control-phase-implementation.md and
|
||||
rea.md; full wrapper/collision/camera work is still outstanding.
|
||||
|
||||
The initial architecture checkpoint is complete: all requested core systems have
|
||||
source anchors, state owners/lifetimes, route interactions, baseline comparison,
|
||||
explicit unknowns and bounded implementation actions. Feature expansion remains
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
# Physics eligibility while control is absent
|
||||
|
||||
Static C3 follow-up,2026-10-26. Original EXE SHA256
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
Preferred-base VAs map to raw offset VA−400000 here; the helper independently
|
||||
PE-maps and guards19 instruction sites and6 virtual targets. Investigator supplied
|
||||
the initial trace; primary completed/checked it after investigator capacity ended.
|
||||
No original physics routine was executed for these assertions.
|
||||
|
||||
## Separate owners and gates
|
||||
|
||||
47E531 invokes475CA0 before the frame's physics pass47E554→479BC0.475CA0 reads
|
||||
5099AB and4F641C only: return `!5099AB ||4F641C`. It does not read controlled
|
||||
pointer5099E4. The viewport additionally requires a supervisor and supervisor+8C
|
||||
clear; valid QPC dt remains a separate frame condition (loop-motion.md).
|
||||
|
||||
Route game complete168 resolves44E450 on LV1B/VR04/LEV1. It stores its argument
|
||||
to5099AB at44E458 and clears4F641C at44E465. Jimmy PostLoad calls168(0), while
|
||||
modal callers use this state separately. Control118 instead resolves475A40 and
|
||||
writes5099E4. Clearing control is not equivalent to calling168 to suspend play.
|
||||
|
||||
479BC0 tests body-list enable4F69E7 at479BE9, walks registered payloads rooted
|
||||
695D3C and calls479D20 at479C2B. No raw-owner predicate selects that traversal.
|
||||
479D58 calls body210→4719F0, reading interface13E; false skips integration.
|
||||
Generic construction calls471030(1) at46FDDF..46FDE3, storing authored byte16
|
||||
and invoking214→471A00 to set live13E. Init470612/47061B copies authored16
|
||||
through getterB4→471020 and setter214. This is the integration gate, not the
|
||||
similarly named GAM `CanMove` descriptor used by animated-object behavior.
|
||||
|
||||
When eligible, the body consumes pending impulse479EBB..479EF2, acceleration
|
||||
479F01 and velocity479F8D regardless of Jimmy's raw ownership.43A750 camera
|
||||
preparation clears speed/velocity XYZ but does not clear queued impulse or
|
||||
acceleration; the earlier isolated body probe covers that narrow write contract.
|
||||
CAM/MCA control transfer does not disable13E in the inspected paths.
|
||||
|
||||
## Implementation boundary
|
||||
|
||||
The port now runs its existing player body adapter during ordinary cutscene
|
||||
control locks, skips controlled movement/input, and still ticks owned fire.
|
||||
F1, practice, inspection and inactive-window policy remain whole-frame boundaries.
|
||||
This does not reconstruct all supervisor/override/body-list modes, contact masks,
|
||||
registration cleanup, static/dynamic response or source cadence. Source support
|
||||
flags can differ from the provisional capsule's grounded flag. Other actor bodies
|
||||
still use their existing subsystem adapters; this is not a full-scene scheduler.
|
||||
|
||||
`test_uncontrolled_physics.py` checks immutable gates/targets and a deliberately
|
||||
separate predicate projection across NULL/Jimmy/other control and disabled gates.
|
||||
Projection tests are not original execution. REA/Ghidra independently decompiled
|
||||
475CA0 and479BC0; see rea.md and control-phase-implementation.md for Evidence IDs.
|
||||
@@ -0,0 +1,122 @@
|
||||
# Uncontrolled Jimmy and owned jetpack-fire callbacks
|
||||
|
||||
Static C3 continuation,2026-10-26. Original `Neutron.exe` SHA256
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
All addresses below are preferred-base EXE VAs; inspected raw offsets are
|
||||
VA−400000, independently checked through PE sections by the helper. No original
|
||||
code was executed for this report. Original files remain read-only. No runtime
|
||||
files were changed by this independent investigation.
|
||||
|
||||
## Result
|
||||
|
||||
Null control is not a gate on the entire Jimmy object or on his owned fire object.
|
||||
Jimmy's movement math has an explicit **identity** gate inside437940. Fire421FB0
|
||||
does not read the raw controlled pointer at all: after the common gameplay gate
|
||||
and base work, it tests its owner/support/timer and follows the owner. Physics is
|
||||
an earlier separate pass; its exact activation gates belong to the companion
|
||||
physics investigation. Do not infer physics freeze from the movement return.
|
||||
|
||||
## Jimmy caller chain and work before the movement gate
|
||||
|
||||
Registry473740 invokes interface slot10→470280, which stores dt and dispatches
|
||||
normal3C4→424600 (table4A373C). Source editor/supervisor mode uses3C8 instead;
|
||||
this report covers normal gameplay. Jimmy game-interface pointer is complete+C0.
|
||||
|
||||
424600 increments global4F8408 by dt before inspecting control. At42460A it
|
||||
loads5099E4;424622 bypasses only a cleanup prefix when that pointer is nonnull.
|
||||
Raw NULL therefore performs UI/resource cleanup, resets interface1D74 and stops
|
||||
saved sounds interface974/97C through47D7A0, assigning−1. It does **not** return
|
||||
from the object update. Other actors being controlled skip this NULL-only prefix
|
||||
but still fail Jimmy's later identity gate.
|
||||
|
||||
42469F then queries support218→458960 regardless of control. On support, gadget0
|
||||
uses radius160; ordinary selected gadget uses radius60 at4246DC. The callback
|
||||
also has its own menu/modal branch42471F..424751, character timers and class
|
||||
callbacks. Those are separate from ownership. At424C34 it calls437940; after
|
||||
that returns, it continues through complete1C8→424E80 and position/history/class
|
||||
callbacks. Complete1C8 has a raw-NULL menu-hide early return of its own.
|
||||
|
||||
Consequently “skip all Jimmy update when uncontrolled” and “call the whole
|
||||
controller with no keys” are both broader policies than the source gate.
|
||||
|
||||
## Movement437940: exact gate placement
|
||||
|
||||
| Order / site | Recovered operation |
|
||||
|---|---|
|
||||
|437946..43794D|Call475CA0; false jumps straight437C33. This is a common gameplay predicate, not the controlled pointer.475CA0 returns false only when5099AB!=0 and4F641C==0; meanings of these two flags are not assigned here.|
|
||||
|437953..437964|Increment interface774 timer before raw ownership comparison.|
|
||||
|43796A|Base40E050 update runs before raw ownership comparison. Its own resource/transform/animation-end policies remain separate.|
|
||||
|43796F..437A0F|Conditional interface7A8 timer/restore work precedes ownership. This is not the jump-hold7B4 field.|
|
||||
|437A1B..437A2B|Compare raw5099E4 with Jimmy's game interface; mismatch jumps437C33, the return epilogue. Normal allocated complete pointer is nonzero, so the source complete-to-interface idiom gives this+C0 interface exactly.|
|
||||
|437A31..437A43|Two additional flag guards4F83E0 and4F8181 can skip the same controller tail even when Jimmy is controlled. Their full semantics are outside this bounded audit.|
|
||||
|437A49 onward|Read movement mode704, jump-held callback and support; choose ground/air application. Grounded released path437B9E clears jump728, mode704 and turn614. These writes are **after** the ownership gate.|
|
||||
|437BC5 /437C1C|Invoke complete134→437F90 air/jetpack math or complete130→437C40 ground math. These are complete-object slots, not same-numbered game-interface getters.|
|
||||
|437C2D|Write final speed via game-interface26C only after the controlled tail.|
|
||||
|
||||
Uncontrolled movement therefore does not itself consume held jump, clear grounded
|
||||
jump/mode/turn, compute new steering/velocity/extra acceleration, or perform the
|
||||
final speed publication. Existing body state can still be consumed by the earlier
|
||||
physics pass. Control-preparation410's explicit speed/velocity clear is a different
|
||||
event and must not be expanded into a per-frame reset of every field.
|
||||
|
||||
## Fire421FB0: independent owner and timer
|
||||
|
||||
Owned fire uses complete+C0 interface4A3160; its normal3C4 target is421FB0.
|
||||
Owner is interface5FC=complete6BC; timer is interface600=complete6C0.
|
||||
|
||||
| Site | Recovered operation |
|
||||
|---|---|
|
||||
|421FB6..421FBD|Same475CA0 gate. False returns4220BC.|
|
||||
|421FCA|Base40E050 callback before owner test.|
|
||||
|421FCF..421FD7|Read owner5FC; no owner skips timer/energy/follow.|
|
||||
|421FDF..421FE9|Query owner's support218; true sets remaining time0. Jimmy's support218 resolves458960, which accepts force-support interface4A0 or reads cached support13F via471A10.|
|
||||
|421FF3..422003|Subtract dt and store timer, including when already zero/negative.|
|
||||
|422009..422049|Strict positive result takes active visibility/energy path; nonpositive hides through complete58(1). Positive path may request complete58(0), then calls42A920 with−dt×.5. The complete70 visibility-related check is not a control gate.|
|
||||
|42204C..4220B6|Copy owner logical position310 and Euler328 into fire314/32C even when timer is inactive/hidden.|
|
||||
|
||||
Energy helper42A920 skips numeric VR01..VR08, otherwise adjusts global4F83D4 and
|
||||
clamps0..100; no controlled-pointer condition. A running timer can continue with
|
||||
zero energy, and landing zeroes it before subtracting dt. A controller that is
|
||||
skipped while raw NULL does not make the effect skip as well. The full421FB0
|
||||
body checksum and absence of the5099E4 address are guarded by the helper; base
|
||||
resource/animation work is not replaced with a claim that all indirect operations
|
||||
are independent of every global state.
|
||||
|
||||
## Collision-side cancellation still runs outside movement ownership
|
||||
|
||||
Before calling437940,424600 reads vertical velocity and, if positive, invokes
|
||||
complete1A4→425170. This source ceiling-ray/response path is outside raw ownership
|
||||
gates. On a hit it can change body velocity and invoke complete1E0→425120. In
|
||||
mode1,425120 clears jump complete7E8, requests `FALL`, zeros owned fire6C0 if
|
||||
present, then invokes complete140. Thus fire can be cancelled by collision during
|
||||
a cutscene even though ownership alone does not cancel it. Complete1A8→4252E0
|
||||
also refreshes a source distance cache before437940. These are not yet a recovered
|
||||
full collision implementation, and must not be silently replaced by calling
|
||||
controlled air math during a cutscene.
|
||||
|
||||
After movement, complete1B0→425490 can maintain/replay a position history under
|
||||
its own flag; complete1B4→4255C0 has another flagged class-specific effect. Their
|
||||
full behavior remains outside this movement/effect split. A limited implementation
|
||||
must state that it does not reproduce every branch of424600.
|
||||
|
||||
## Port consequence and verification boundary
|
||||
|
||||
The audited port gates its entire LabSimulation.Step on effective control, so it
|
||||
freezes both body and fire when uncontrolled. A justified partial correction is
|
||||
an explicit body/effect tick while suppressing Jimmy input/controller math, with
|
||||
control preparation applied at the actual CAM/MCA events. Do not send default
|
||||
input through StepPlayer: the grounded-release and steering changes above would
|
||||
run despite the source early return. Do not treat raw NULL as F1/practice pause.
|
||||
Modern force-control/noclip policy stays distinguishable from original ownership.
|
||||
|
||||
Four Python tests verify47 instruction sites,12 vtable targets and two whole-body
|
||||
hashes, plus source-gate/state projections with nondefault timers, absent owner,
|
||||
raw NULL/other actor, strict expiry and VR energy immunity. Run
|
||||
`python3 -m unittest discover -s tests -p test_uncontrolled_player.py -v` or
|
||||
`python3 tools/binary/uncontrolled_player.py ../Original` for reproducible JSON.
|
||||
These tests interpret immutable code; they do not execute the original callback,
|
||||
validate original cadence, prove full body response or compare complete cutscenes.
|
||||
|
||||
Remaining: full class-specific424600 branches, pre-control base/timer semantics,
|
||||
source collision-side ceiling/distance behavior, complete animation-end timing,
|
||||
global475CA0 flag owners and original end-to-end runtime comparison.
|
||||
Reference in new issue
Block a user