8.7 KiB
Progress — current checkpoint
Full reconstruction is incomplete. The current milestone is an evidence-backed asset recovery toolchain and a controllable original lab with local Linux/Windows packages. This is a movement checkpoint, not a completely reconstructed scene.
Controllable lab checkpoint
The user confirmed that the previous Windows build loads and renders and asked to advance. The default now runs walking/backpedaling/turning, ballistic no-gadget jumping, source-triangle collision, a chase camera, and original idle/run/backpedal/ jump/fall clips. Arrows move, Shift/Insert/numpad0/right mouse jump, R resets, C pauses for inspection/resumes, F11 fullscreen, Escape quits. The intro is skipped.
Recovered arithmetic and addresses are in analysis/movement-checkpoint.md.
Notable corrections: Left precedence; current-yaw target offsets rather than
accumulating destination yaw; Up halves keyboard turn; turning alone decays speed;
no ordinary midair arrow steering; disabled-gadget long hold can repeat on landing;
normal camera eye (0,180,-350) and target (0,99,0). Exact original frame order
is unresolved; the transient disabled-gadget state3 transition is collapsed.
Explicit port approximations: fixed60Hz cadence, capsule radius24 and standing height209.4361, floor-derived model/root separation, static sweep/slide solver and all-source-triangle mask, camera sphere obstruction, animation state/loop timing. Collision retains all2869 lab triangles including325 invisible proxy triangles. Original solver/masks, actor pivot/scale, stairs/dynamic objects and state activation remain unresolved. At walls the clipped camera can move close to Jimmy.
Verification: 11 collision and13 movement groups pass, including real lab source geometry, long/high-speed sweeps, held/re-pressed jumping, ten-minute stability, deterministic replay and60/120/144Hz presentation yielding the same simulation. A240-step GPU walk/jump replay travels1250.12 units, jumps once, lands, and ends grounded; maximum rise137.62. This is port behavior, not original fidelity proof. The Linux SDL window run receives injected movement/jump keys, resizes800x600, and reports zero Vulkan validation errors on GTX1070. Headless llvmpipe also reports zero errors. User-confirmed native Windows loading/rendering applies to the previous build; native Windows movement validation remains outstanding. Both self-contained packages were rebuilt. The Linux package passes the same GTX1070 window replay; the Windows package passes240 windowed frames under isolated Wine64 with SDL keys/jump/resize and identical movement statistics (validation disabled there). Wine is preliminary compatibility evidence, not native Windows. One additional inspector-window regression was not executed because automatic approval review was unavailable; the full headless inspector regressions passed.
Latest user-reported preview fix
The user ran the Windows build and observed a static Jimmy partially inside the lab floor. This verifies initial Windows startup/rendering by user report, with OS/GPU/version/input/audio details unspecified. The user subsequently confirmed that the corrected build loads and renders.
Both issues were reproduced from actual assets: jimstop has two byte-identical vertex poses, and its minimum local Y=-64.6165 plus GAM Y=26.6619 places the soles at -37.9546 while the original visible floor is near Y=0.5486. Calling the default an animated idle was inaccurate. The idle stays faithful to its still source pose; 1/2/3/4 now explicitly select idle/run/jump/scratch previews and the window title states the mode/controls. A source-data-based preview correction of +38.503 Y places the standing model on visible floor triangles, leaving GAM data unchanged. This is an explicit preview policy, not the recovered game collision solver.
Tests verify real lab grounding, ceiling/invisible-proxy rejection, still idle and moving clips, automatic animation advance in actual GPU readbacks, and SDL keyboard switching to a run cycle. Khronos validation reports zero errors on llvmpipe and GTX1070. Source assets remain unchanged. See rendering.md for evidence/scope. The rebuilt Windows package additionally passed an isolated Wine64 window test: six frames, animation key2 selected moving source samples, resize800x600, exit0. Validation was disabled in that Wine test; corrected native Windows retest is pending.
Verified
- Full
../prompt.MDspecification read; originals preserved and local Git initialized. - All 539 original files (224,601,234 bytes) still match recorded SHA-256 hashes.
- Native PE32 x86 MSVC C++ game, Open Media Toolkit 2.0 DR4, Direct3D7/DirectDraw7, DirectInput8 and DirectSound identified with addresses in analysis reports.
- 35 GAM files: 3,299 entities, 93 class codes, 84,044 properties, byte-for-byte round-trip in Python and full corpus decoding in native C#.
- 100 OMT files / 7,027 indexed resources audited: 2,155 meshes, 2,183 materials, 1,614 textures, 875 bounded RIFF resources; zero decode failures.
- ASE/OMT coordinate and UV conversion proven with duplicate assets. Jimmy morph sample vectors retain original base UV/topology; normal texture corrected to jimycarl.png via actual InitObject code, with shock atlas kept separate.
- .NET SDK10.0.402/runtime10.0.13, Silk.NET2.23.0, SDL3.4.2 provisioned locally.
- C# builds without warnings/errors; 20 Python tests plus native C# corpus, malformed-data, arithmetic, visibility, case lookup, morph and merge tests pass.
- Native Vulkan lab rendering: 2,869 triangles / 33 textures; combined Jimmy preview: 3,683 triangles / 34 textures. Real GPU readback, zero validation errors under llvmpipe; scene/player screenshots visually reviewed.
- Fixed original null-material skipping removes false white collision-proxy surfaces. Original startpoint/camera and recovered projection are available.
- SDL3 hardware window/presentation on GTX1070 under Xvfb: six frames, injected keyboard received, resize to800x600, zero validation errors.
- SDL3 recovered WAV stream consumes bytes on dummy device. Speaker output untested.
- Self-contained linux-x64/win-x64 packages built under dist/. Linux package also renders inside a separate filesystem namespace with no SDK/project/original directory mounted. Initial Windows rendering is now user-reported as noted above.
- Windows x64 package also renders two headless frames under isolated Wine64, exit0, without source/SDK/originals mounted. Its fixed-time PPM is byte-identical to the Linux package on the same lavapipe driver (checkpoint670adb4). Broader native Windows remains untested; Wine test did not enable validation or exercise SDL window/audio/input.
- Official Wine11 original-copy runs attempted in isolated filesystem/network namespaces. Both GL and Vulkan backends produce unusable frames; details below.
Build and run
From GamePort: source scripts/env.sh, dotnet build, then dotnet run -- --with-player.
Asset preparation: python3 tools/extractors/prepare.py --audio sounds musicsecretlab.
Tests: scripts/test.sh; packages: scripts/package.sh. See README for exact options.
Generated outputs and dependencies are ignored, and everything remains local.
Remaining and current constraints
No original gameplay reference has been captured. Wine GL cannot obtain a suitable pixel format/3D surface; Wine Vulkan logs unsupported fixed-function state and a swapchain image count mismatch. Native Windows/VM access has been requested for reference/fidelity and native port validation. These failures do not establish original behavior. Static reverse engineering can continue independently.
Original collision resolution, introductory LABEXP cutscene, entity activation/ task/trigger execution, interactions, combat, AI, progression, menus, mouse aiming and saves remain incomplete. The no-gadget controller checkpoint requires original runtime comparison. Animation looping/speed and collider/pivot remain approximations. Rendering material/lighting/fog/blend state mapping also remains incomplete.
Two investigators contributed movement evidence/tests and collision implementation/ tests for this checkpoint. Primary integrated the runtime, input, animation, packages and verification. Reports distinguish static recovery from runtime checks.
Continuation
Read AGENTS, tasks, architecture, compatibility, reverse-engineering index, and analysis reports. Check Git status before editing. Avoid repeating solved inventory, GAM decoding or OMT extraction. LV1B/STARTEXP is initial scene evidence; its LABEXP trigger still needs reconstruction. VR01 provides a smaller, 16-entity test scene. Next actionable addresses/tasks are in tasks.md; original execution procedure and errors are in reference-testing.md. Commit history preserves local milestones.