Reconstruct lab story, interactions, patrol and jet pack practice flow

This commit is contained in:
UnixNight committed 2026-10-24 20:33:03 -04:00
1 parent 58424120bb
commit c929f942e1
84 files changed
+7957 -305

No files matched your search

+27 -9
View File
@@ -3,14 +3,26 @@ set -euo pipefail
source "$(dirname "$0")/env.sh"
scripts/build-linux.sh
scripts/build-windows.sh
python3 tools/extractors/prepare.py --audio sounds musicsecretlab
python3 tools/extractors/prepare.py --all-scenes --audio sounds musicsecretlab
for rid in linux-x64 win-x64; do
out="dist/$rid"
mkdir -p "$out/assets" "$out/scenes/level1b" "$out/scenes/animations" "$out/audio/sounds" "$out/licenses" "$out/docs"
mkdir -p "$out/assets" "$out/scenes/level1b" "$out/scenes/VR01" "$out/scenes/animations" "$out/scenes/actors" "$out/scenes/ui" "$out/audio/sounds" "$out/licenses" "$out/docs"
for directory in ASE png gam omt; do cp -a "../Original/$directory" "$out/assets/"; done
cp ../Original/fontsmall.png ../Original/green_font.png ../Original/NewGame.tsk ../Original/readme.txt "$out/assets/"
cp ../Original/fontsmall.png ../Original/green_font.png ../Original/alpha.omt ../Original/NewGame.tsk ../Original/readme.txt "$out/assets/"
cp -a artifacts/extracted/level1b/. "$out/scenes/level1b/"
cp -a artifacts/extracted/animations/. "$out/scenes/animations/"
cp -a artifacts/extracted/actors/. "$out/scenes/actors/"
cp -a artifacts/extracted/ui/. "$out/scenes/ui/"
mkdir -p "$out/scenes/effects"
cp -a artifacts/extracted/effects/. "$out/scenes/effects/"
cp artifacts/extracted/scene-catalog.json "$out/scenes/scene-catalog.json"
cp -a artifacts/extracted/VR01/. "$out/scenes/VR01/"
for manifest in artifacts/extracted/*/scene.json; do
scene_directory="$(dirname "$manifest")"
scene_name="$(basename "$scene_directory")"
mkdir -p "$out/scenes/$scene_name"
cp -a "$scene_directory/." "$out/scenes/$scene_name/"
done
cp -a artifacts/extracted/musicsecretlab/. "$out/audio/"
cp -a artifacts/extracted/sounds/. "$out/audio/sounds/"
cp .tools/sdl-win/LICENSE.txt "$out/licenses/SDL3.txt"
@@ -20,7 +32,7 @@ for rid in linux-x64 win-x64; do
cp -a docs/. "$out/docs/"
cp README.md "$out/SOURCE-README.md"
cat > "$out/README.md" <<'NOTES'
# Neutron controllable lab checkpoint
# Neutron lab story and jet pack checkpoint
Linux: run ./launch-scene.sh. Windows: run launch-scene.cmd.
Append --headless --frames 2 to render without a window, or --screenshot lab.ppm
@@ -32,12 +44,18 @@ Shift, Insert, numpad 0 or right mouse jump. R resets to the original start area
C pauses into inspection and resumes the chase camera. F11 fullscreen, Escape quit.
Inspection: arrows/WASD orbit, +/- zoom, 1 idle, 2 run, 3 jump, 4 scratch preview.
Append --inspect to start directly in the old scene inspector.
The default runs the recovered lab camera/speech sequence; Escape/Space skips
its actions and restores control. --skip-intro starts with control; --mute disables
scene audio. O raises/lowers objectives. The original jet pack pickup opens the
practice prompt: Y/Yes enters VR04; N/No resumes. Hold jump for a powered burst
after obtaining it. --headless --story-time 12 renders a deterministic story shot.
This checkpoint implements recovered walking/jump/camera arithmetic and original
animation clips. Collision solver/masks, collider/pivot, 60Hz cadence and animation
state timing remain provisional. Intro, interactions, progression, AI and saves
remain incomplete. A user verified rendering on Windows; this new movement build
still needs native Windows input/physics testing.
Original actor/model/sprite props, common patrol, buttons/moving bars, lab task
route, objectives, practice flow and checkpoint CLI are integrated. Collision,
60Hz cadence, pivots, rendering states and animation timing remain provisional.
Full combat, AI, progression, menus and runtime saves remain incomplete. Initial
Windows rendering is user-confirmed for an older build; this story/tutorial
checkpoint still needs native Windows input/physics/audio validation.
See BUILD-AND-LIMITATIONS.md, COMPATIBILITY.md and docs/ for evidence and remaining
work. SOURCE-README.md describes development from the separate source repository.
+20 -1
View File
@@ -2,16 +2,32 @@
set -euo pipefail
source "$(dirname "$0")/env.sh"
python3 -m unittest discover -s tests -p 'test_*.py' -v
python3 tools/extractors/prepare.py --audio sounds musicsecretlab
python3 tools/extractors/prepare.py --all-scenes --audio sounds musicsecretlab
dotnet run --project tests/GamePort.DataTests -- ../Original
dotnet run --project tests/GamePort.CollisionTests -- ../Original
dotnet run --project tests/GamePort.MovementTests -- ../Original
dotnet run --project tests/GamePort.DirectorTests -- ../Original
dotnet run --project tests/GamePort.PatrolTests -- ../Original
dotnet run --project tests/GamePort.SupportTests -- ../Original
dotnet run --project tests/GamePort.InteractionTests -- ../Original
dotnet run --project tests/GamePort.DynamicCollisionTests -- ../Original
dotnet run --project tests/GamePort.JetpackTests
python3 tests/GamePort.HudTests/test_ui.py
dotnet run --project tests/GamePort.HudTests -- artifacts/extracted/ui/ui.json
dotnet build GamePort.csproj
dotnet run --no-build -- --verify-assets --assets ../Original
python3 tools/extractors/omt.py ../Original/omt/level1b.omt --scene --output artifacts/extracted/level1b
dotnet run --no-build -- --headless --assets ../Original --scene artifacts/extracted/level1b/scene.json --level gam/level1b.gam --original-camera --screenshot artifacts/test-level1b.ppm
dotnet run --no-build -- --inspect --headless --with-player --time 0.05 --screenshot artifacts/test-player.ppm
dotnet run --no-build -- --headless --smoke-walk --screenshot artifacts/test-walk.ppm
dotnet run --no-build -- --headless --story --story-time 12 --screenshot artifacts/test-story.ppm
dotnet run --no-build -- --headless --story --smoke-practice-prompt --screenshot artifacts/test-practice.ppm
dotnet run --no-build -- --headless --story --smoke-practice-transition
dotnet run --no-build -- --headless --story --smoke-lab-route
dotnet run --no-build -- --headless --scene artifacts/extracted/VR04/scene.json --level gam/VR04.gam --smoke-jetpack --screenshot artifacts/test-jetpack.ppm
dotnet run --no-build -- --headless --skip-intro --write-save artifacts/test-checkpoint.tsk
dotnet run --no-build -- --headless --load-save artifacts/test-checkpoint.tsk --skip-intro
dotnet run --no-build -- --headless --story --scene artifacts/extracted/VR01/scene.json --level gam/VR01.gam --smoke-transition --skip-intro
dotnet run --no-build -- --headless --animation artifacts/extracted/animations/jimrun/animation.json --time 0 --screenshot artifacts/test-run-start.ppm
dotnet run --no-build -- --headless --animation artifacts/extracted/animations/jimrun/animation.json --frames 7 --screenshot artifacts/test-run-advanced.ppm
python3 - <<'PY'
@@ -19,9 +35,12 @@ from pathlib import Path
assert Path('artifacts/test-run-start.ppm').read_bytes() != Path('artifacts/test-run-advanced.ppm').read_bytes(), 'Animation did not advance in GPU readback'
print('PASS: original run preview advances across rendered frames')
PY
SDL_AUDIODRIVER=dummy dotnet run --no-build -- --effects-audio-smoke artifacts/extracted/effects/effects.json
SDL_AUDIODRIVER=dummy dotnet run --no-build -- --audio-smoke artifacts/extracted/sounds/Wave_00000001_save.wav
SDL_AUDIODRIVER=dummy dotnet run --no-build -- --scene-audio-smoke artifacts/extracted/level1b/entities/entities.json
python3 tools/recon/inventory.py ../Original --verify docs/original-manifest.json
if [[ "${NEUTRON_WINDOW_TEST:-0}" == 1 ]]; then
dotnet run --no-build -- --smoke-practice-window --frames 12 --screenshot artifacts/test-practice-window.ppm
dotnet run --no-build -- --scene artifacts/extracted/level1b/scene.json --smoke-window --frames 6 --screenshot artifacts/test-window.ppm
dotnet run --no-build -- --smoke-walk --screenshot artifacts/test-walk-window.ppm
fi