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
@@ -190,3 +190,16 @@ all physics/AI/render fields. The detailed contract, phase limits and original
|
||||
component probe are in checkpoint/retained-player-body.md; companion/shadow
|
||||
resets and full availability tails have separate reports. Uncontrolled physics
|
||||
and exact appended-helper traversal remain next scheduler boundaries.
|
||||
|
||||
## Player control versus frame ownership
|
||||
|
||||
PlayerSceneBinding connects authored preparation/transform events to the player
|
||||
adapter. Body integration and owned fire run without player control; only input
|
||||
and movement math are gated. CAM/MCA/AI preparation has distinct order and operates
|
||||
on the prior raw owner, while Force Control affects effective input. Ordinary
|
||||
frame/modal/debug pauses stop all these phases. Scripted AI roots/yaw flow into
|
||||
physics, and physical roots flow back to director/camera targets. Destination yaw
|
||||
and queued work are not cleared by a transform setter. The original full wrapper,
|
||||
registry, body response and morph clock are still not reconstructed by this bridge.
|
||||
See checkpoint/control-phase-implementation.md. REA tooling is separate from
|
||||
runtime architecture; setup/provenance are in rea.md.
|
||||
@@ -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.
|
||||
@@ -3,6 +3,23 @@
|
||||
Compilation, native runtime, original behavior and full feature completion are
|
||||
separate evidence categories. **The game is not fully reconstructed/playable yet.**
|
||||
|
||||
Control-phase continuation (2026-10-26): body/fire eligibility and ordered raw
|
||||
preparations are source-byte guarded separately from port behavior. Targeted24
|
||||
movement groups, coupled director/preparation tests and the airborne control
|
||||
fixture pass. Native Linux GTX1070 at1280x720 passes Carl/control-phase, F1 pause/
|
||||
Force Control and F3/tools/same-window checkpoint checks, all with enabled Vulkan
|
||||
validation and zero errors. The input-only route uses the actual binding and
|
||||
Down braking at turns; source score/task/inventory/contact checks still pass.
|
||||
Detailed gaps: checkpoint/control-phase-implementation.md. Native Windows and
|
||||
original whole-game comparisons remain unverified for this chunk.
|
||||
Full scripts/test.sh passes in artifacts/uncontrolled-phases/integration-final.log:
|
||||
93 Python checks,24 movement groups plus remaining managed groups,27 zero-error
|
||||
GPU renders with enabled validation, SDL dummy checks and539 unchanged hashes.
|
||||
REA6.8.0/Ghidra12.1.4 decompiled five selected procedures locally using a generated
|
||||
copy; complete Evidence is retained.421FB0 lacked a recognized procedure; that
|
||||
limit is recorded without replacing its existing byte/vtable evidence. Static
|
||||
pseudocode is not original execution. See rea.md for local installation and CLI.
|
||||
|
||||
Retained-state continuation (2026-10-26):14 new source-evidence tests and22
|
||||
movement groups cover named property loading, cleanup/Init/PostLoad/control
|
||||
boundaries and bounded route scalar carry. Corrected full tutorial/lab gadget
|
||||
|
||||
@@ -151,3 +151,17 @@
|
||||
practice gadget after the shared disable pass; LV1B disables1/7. Correct the
|
||||
implementation and expectations from the later dispatch/call evidence and
|
||||
retain the earlier report as a scoped historical audit with a correction.
|
||||
|
||||
31. **Control identity gates movement, not the whole player.** Run eligible body
|
||||
physics and owned fire while raw control is absent; skip input/controller
|
||||
tail. Preserve queued work and distinct resets. Apply source-specific ordered
|
||||
preparations at CAM/MCA/AI activation; initial MCA target-none returns without
|
||||
completion, and later shots do not repeat preparation. STOP notification follows
|
||||
body clear. Authored transforms update the real player body. Keep modern
|
||||
Force/Noclip and frame pauses separate from raw ownership. Other wrapper/class
|
||||
callbacks and collision remain evidence gates rather than empty-input guesses.
|
||||
32. **Use local REA as an additional static evidence source.** Keep Ghidra/JDK
|
||||
and process environment local, analyze generated copies, retain complete
|
||||
Evidence/profile/hash/snapshots and close owned sessions. CLI avoids changing
|
||||
the existing MCP registration. Unknown procedure definitions remain unknown;
|
||||
they do not invalidate byte/vtable evidence or imply missing game code.
|
||||
@@ -1,5 +1,54 @@
|
||||
# Progress — 2026-10-26
|
||||
|
||||
## Uncontrolled-player implementation and REA
|
||||
|
||||
Continued C3 into source control/body/fire boundaries. Original475CA0/frame/body
|
||||
eligibility is separate from controlled pointer5099E4. Movement437940 has an
|
||||
identity gate after base/timer work;421FB0 fire has no raw-control gate. CAM,
|
||||
initial MCA and AI preparation order differ; later MCA shots do not repeat it.
|
||||
Source-byte reports/helpers/tests: uncontrolled-player.md, uncontrolled-physics.md
|
||||
and cutscene-preparation.md under checkpoint/. Investigators supplied independent
|
||||
player/control traces; primary completed physics and preparation work when agent
|
||||
capacity ended. All file ownership is now primary.
|
||||
|
||||
Implemented LabSimulation controlled-input/controller gates while existing body
|
||||
physics and owned fire continue. Preparation clears speed/velocity only; queued
|
||||
impulse/acceleration and mode/jump/hold/fire are independent. Ordinary grounded
|
||||
radius60 is outside the movement gate. PlayerSceneBinding connects ordered raw
|
||||
preparations and authored AI root/yaw; STOP observation follows physical clear.
|
||||
An initial MCA with first target none returns instead of executing completion.
|
||||
Force Control stays an effective override; preparations use authored ownership.
|
||||
Headless story pre-roll uses the same phases; F1/practice/inspect still pause them.
|
||||
Full wrapper/base transforms/ceiling response, other gadget/class effects and
|
||||
registry/cadence remain explicit gaps in control-phase-implementation.md.
|
||||
|
||||
Targeted movement24 groups, coupled director tests and the32-frame airborne
|
||||
control fixture pass. Native Linux GTX1070 at1280x720 passes Carl/control phases,
|
||||
F1 menu/Force Control and F3/tools/checkpoint reload, with zero enabled Vulkan
|
||||
validation errors. The input-only lab replay now uses the actual binding; its
|
||||
old coasting turn missed the narrow exit. Down braking before large turns reaches
|
||||
outside with score150, one practice No, owned jetpack, zero jumps and6 wall hits.
|
||||
No physical response/task gate was changed for that replay. A corner snapshot
|
||||
is retained for C4. Logs: artifacts/uncontrolled-phases/.
|
||||
|
||||
REA MCP connected but lacked native providers. Installed the verified official
|
||||
Ghidra12.1.4 ZIP locally and extracted matching full Ubuntu JDK21 packages under
|
||||
.tools (system Java21 was runtime-only). Existing Node24/public REA6.8.0 launcher
|
||||
is selected by ignored .tools/rea.env and scripts/rea.sh. Client registration was
|
||||
not changed. Local Unix IPC needed the approved execution allowance. Five source
|
||||
procedures were decompiled and byte-cross-checked; complete Evidence/snapshots are
|
||||
on disk.421FB0 maps correctly but has no recognized Ghidra procedure in this
|
||||
profile; existing byte/vtable evidence remains authoritative. See docs/rea.md and
|
||||
the control-phase report's Evidence IDs. No original game execution or new native
|
||||
Windows runtime comparison is claimed by this setup.
|
||||
|
||||
Final C3 validation: full scripts/test.sh passes (integration-final.log):93
|
||||
Python checks, all managed groups including24 movement, updated input-only route,
|
||||
27 GPU render completions with zero enabled Vulkan validation errors, SDL dummy
|
||||
lifecycle and539 unchanged originals. Coupled director tests include body-before-
|
||||
STOP observation and the initial empty-MCA return. Four native window commands
|
||||
pass (five scene renders) in native/*.log. No native Windows runtime is added.
|
||||
|
||||
## Retained-state implementation continuation
|
||||
|
||||
Read prompt.MD in full and resumed C3/C7. Three independent investigators owned
|
||||
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
# Local REA and Ghidra
|
||||
|
||||
REA is an analysis dependency, absent from the packaged game's runtime. The
|
||||
installed MCP tools connected successfully and opened a generated EXE copy with
|
||||
the authoritative hash. Native decompilation initially lacked an engine. The
|
||||
project-local CLI setup now works without changing the client's MCP registration.
|
||||
|
||||
- REA6.8.0: existing public `scripts/rea.mjs` launcher in the user's npm cache.
|
||||
- Existing Node24.22.1: configured through ignored `.tools/rea.env`; the login
|
||||
shell's Node20 cannot load this CLI's zstd imports.
|
||||
- Ghidra12.1.4: `.tools/ghidra_12.1.4_PUBLIC`, from the
|
||||
[official pinned release](https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_12.1.4_build).
|
||||
Download ZIP SHA256 `ddac49f903da9d5bac833e5cc79395098b9c33cfd3279be5f31bd00387d2d4db`
|
||||
verified before extraction. Its pinned README requires a full JDK21.
|
||||
- Full OpenJDK21.0.12.1+1-1~24.04.4: matching Ubuntu JDK/JRE headless packages
|
||||
downloaded with apt and extracted under `.tools/java`; no system installation.
|
||||
JAVA_HOME is `.tools/java/usr/lib/jvm/java-21-openjdk-amd64`. The pre-existing
|
||||
system Java21 was runtime-only. Adoptium metadata endpoint returned403; no
|
||||
archive from that endpoint was installed.
|
||||
|
||||
scripts/rea.sh reads local launcher settings from ignored `.tools/rea.env`, sets
|
||||
local GHIDRA_INSTALL_DIR/JAVA_HOME and invokes the public launcher. For another
|
||||
machine set NEUTRON_REA_NODE and NEUTRON_REA_LAUNCHER there, or provide `rea` on
|
||||
PATH. This environment does not alter the already-running MCP server; native MCP
|
||||
tools need those environment paths when that server next starts. CLI use is
|
||||
already verified. No registration/setup rewrite was performed.
|
||||
|
||||
```bash
|
||||
mkdir -p artifacts/rea-copy
|
||||
cp ../Original/Neutron.exe artifacts/rea-copy/Neutron.exe
|
||||
scripts/rea.sh decompile "$PWD/artifacts/rea-copy/Neutron.exe" 0x475ca0 \
|
||||
--provider ghidra --snapshot "$PWD/artifacts/rea-copy/snapshot.json" \
|
||||
--format json --full-output > artifacts/rea-copy/gate.json
|
||||
```
|
||||
|
||||
Use generated copies and keep complete Evidence with binary/profile identities.
|
||||
For several functions, one local stdio session avoids re-importing the EXE for
|
||||
each query:
|
||||
|
||||
```bash
|
||||
python3 tools/binary/rea_decompile_batch.py artifacts/rea-copy/Neutron.exe \
|
||||
artifacts/rea-batch-NEW 0x40e050 0x437940 0x479bc0
|
||||
```
|
||||
|
||||
The output directory must be new. The helper saves each complete reply, exports
|
||||
successful Evidence and closes/snapshots its owned session. A per-function error
|
||||
is retained separately; inspect it before claiming complete coverage. REA's
|
||||
Ghidra bridge needs a local Unix socket, which the default Codex sandbox blocked;
|
||||
the approved local execution allowance worked. This was a host IPC restriction,
|
||||
not an analysis-timeout or engine-install failure. Target executable code is not
|
||||
run by these static operations. Retained primitive queries are not a complete
|
||||
Ghidra database or proof every function is recognized.
|
||||
|
||||
Five selected routines were decompiled and cross-checked against existing byte
|
||||
evidence. Fire421FB0 was not recognized as a procedure even with the correct
|
||||
file-offset selector; keep that limitation explicit. Actual Evidence IDs and
|
||||
gameplay interpretation are in checkpoint/control-phase-implementation.md.
|
||||
Logs, readiness errors, complete replies, export bundles and snapshots are under
|
||||
artifacts/uncontrolled-phases/rea/. Temporary native sessions were closed.
|
||||
@@ -5,6 +5,10 @@ offsets, virtual addresses, API symbols or observed behavior. Decompiled output
|
||||
evidence, not original source. Original gameplay has not yet been observed successfully; isolated original DLL
|
||||
probes and modern runtime checks are recorded separately.
|
||||
|
||||
- `checkpoint/control-phase-implementation.md`, `uncontrolled-player.md`,
|
||||
`uncontrolled-physics.md`, `cutscene-preparation.md`: frame/body versus identity
|
||||
gates, ordered CAM/MCA/AI preparation and bounded implementation. `rea.md` records
|
||||
local tooling, Evidence and procedure-recognition limits.
|
||||
- `checkpoint/retained-player-body.md`, `retained-streamer.md`,
|
||||
`retained-return-cleanup.md`, `retained-companion.md`: complete named property
|
||||
read chain, bounded ordinary-load scalar/body resets, full tutorial availability
|
||||
|
||||
+9
-3
@@ -74,9 +74,15 @@ plan in verified chunks. Earlier priorities below are a backlog.
|
||||
- [x] Full tutorial gadget re-enable tails and LV1B item1/7 restrictions; replaces
|
||||
previous prefix-only availability. Other level tails/selection remain open.
|
||||
- [x] Companion/shadow reset trace and equal-state AI guard; no blanket AI carry.
|
||||
- [ ] Next: uncontrolled body/controller/fire scheduling, body registration and
|
||||
appended-helper callback timing; then C4 support/response and shared viewport/
|
||||
DEFAULT handoff. C6 source channel allocation/clock/banks remains separate.
|
||||
- [x] Bounded uncontrolled body/fire versus controlled movement, ordered CAM/MCA/
|
||||
AI preparation, no repeated later-shot reset, held input restoration and authored
|
||||
player-transform synchronization; managed/GPU/native Linux checks.
|
||||
- [x] Local REA6.8.0/Ghidra12.1.4/full JDK21 launcher, selected native pseudocode
|
||||
Evidence/snapshot export; client MCP configuration unchanged. See rea.md.
|
||||
- [ ] Next: full Jimmy/base wrapper and body registration/helper timing; C4 support/
|
||||
response/root and shared viewport/DEFAULT handoff. C6 source channel allocation/
|
||||
clock/banks remains separate. Fire's missing Ghidra procedure definition is an
|
||||
analysis limitation; its immutable source-byte contract is already guarded.
|
||||
|
||||
1. Lab regressions are corrected and republished, with user verification of their
|
||||
own Windows build. Keep comprehensive native Windows driver/audio/input
|
||||
|
||||
Reference in new issue
Block a user