#!/usr/bin/env bash set -euo pipefail source "$(dirname "$0")/env.sh" scripts/build-linux.sh scripts/build-windows.sh 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/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/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/gadgets" cp -a artifacts/extracted/gadgets/. "$out/scenes/gadgets/" mkdir -p "$out/scenes/invisible-meter" cp -a artifacts/extracted/invisible-meter/. "$out/scenes/invisible-meter/" mkdir -p "$out/scenes/bubble" cp -a artifacts/extracted/bubble/. "$out/scenes/bubble/" mkdir -p "$out/scenes/baseball" cp -a artifacts/extracted/baseball/. "$out/scenes/baseball/" mkdir -p "$out/scenes/rocketship" cp -a artifacts/extracted/rocketship/. "$out/scenes/rocketship/" mkdir -p "$out/scenes/grappler" cp -a artifacts/extracted/grappler/. "$out/scenes/grappler/" mkdir -p "$out/scenes/scooter" cp -a artifacts/extracted/scooter/. "$out/scenes/scooter/" 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" cp docs/infrastructure.md "$out/BUILD-AND-LIMITATIONS.md" cp docs/compatibility.md "$out/COMPATIBILITY.md" cp docs/dependencies.md "$out/licenses/DEPENDENCIES.md" cp -a docs/. "$out/docs/" cp README.md "$out/SOURCE-README.md" { printf 'source_commit=%s\n' "$(git rev-parse HEAD)" printf 'source_dirty=%s\n' "$(if [[ -n "$(git status --porcelain)" ]]; then echo yes; else echo no; fi)" printf 'packaged_utc=%s\n' "$(date -u +%FT%TZ)" } > "$out/BUILD-INFO.txt" cat > "$out/README.md" <<'NOTES' # Neutron lab story and gadgets checkpoint Linux: run ./launch-scene.sh. Windows: run launch-scene.cmd. Append --headless --frames 2 to render without a window, or --screenshot lab.ppm to save GPU readback. A Vulkan 1.3 graphics driver/loader is required. This package includes the .NET runtime, SDL3, shaders and local asset copies. The default opens the controllable original lab. Arrows walk/backpedal/turn; Shift, Insert, numpad 0 or right mouse jump. R resets to the original start area; F1 opens debug tools: arrows navigate/change, Enter applies, Tab switches pages, F1/Escape closes. General/Player/Systems pages cover implemented runtime controls. The menu pauses gameplay/audio and provides diagnostics, camera/cutscene controls, energy/jetpack/task changes, level/start selection, reset and Force Control toggle. F1 -> Player -> Give/Select Grappler equips it in VR08. Its Practice tile opens that tutorial. Aim at a surface until the target appears; hold Enter/Ctrl/left mouse to attach/reel, arrows steer, release fire and jump to detach. Tab/Space unequips. Grappler is currently limited to VR08. Scooter works normally in VR05 and outside: select its owned gadget tile or F1/Player Give/Select Scooter, then walk into it at Goddard to mount. Up/primary fire accelerates, Left/Right steers, Down brakes then reverses, jump jumps. Tab/Space unequips, restores Goddard and stops the engine. Give All Gadgets grants the normal tile too. See docs/gameplay/scooter-live.md for source and limits. Player/Systems add input ordering, jetpack availability, objective/practice, camera obstruction, audio category mutes and debug checkpoint save/load. Checkpoints save level/start/progression, not live position; see docs/debug-menu.md. F3 toggles noclip: WASD moves/strafe, arrows move/turn, Space/E up, Ctrl/Q down, Shift boosts speed. Noclip bypasses collision and contact triggers. Reset/new level disables it; Return Noclip Entry restores the position where it was enabled. F2 toggles compact live diagnostics without pausing; --debug-overlay enables it at startup. F1's Live Overlay toggle controls the same session preference. Level changes retain the window, fullscreen and size. HUD/debug UI scales uniformly on widescreen; --width 1920 --height 1080 sets initial window/offscreen dimensions. 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. Tab/Space opens the original gadget screen (first unequips a special gadget). Point with mouse/arrows; Enter/Ctrl or a mouse button selects; Escape/Return closes. Practice Mode plus an owned gadget opens its tutorial. The combined shrink-ray/ jetpack pickup fires on Enter/Ctrl/left mouse and bursts on jump. Original Yokian soldiers support the shrink morph,30-second restoration and10-point reward. Other gadget effects and full enemy AI/combat remain incomplete. Invisible is now implemented: select its owned tile, wait7 seconds to recharge, then fire without jump for a7-second effect costing2 energy (tutorials exempt). F1/Player can Give/Select Invisible, Unequip, and show its timers/targetability. The original meter and final3-second flashing are included; enemy sensing remains incomplete. Source warning sounds for low/empty energy are shared by gadgets. Bubble is implemented too: F1/Player can Give/Select Bubble, Up or primary fire accelerates, arrows steer, and jump holds produce higher bounces. Tab/Space first unequips it, then the original sprite fades. VR01 uses recovered static body and floor111 behavior; lab/outside still have provisional collision. Baseball is implemented: F1/Player can Give/Select Baseball. Hold Enter/Ctrl/left mouse, Up/Down changes elevation and Left/Right turns; release fire to throw. Its owned tile's Practice Mode opens VR07 with original moving targets,15-second respawn and source trophy activation. Original ball/crosshair/TIME glyphs scale uniformly on widescreen. Full enemy combat and original pair scheduling remain incomplete; flying balls and a pending throw can survive unequipping. Rocketship flight is implemented in VR02. Select its Practice tile, then equip it there with Tab/Space or F1/Player Give/Select Rocketship. Up/right mouse accelerates and climbs, Down brakes and descends, Left/Right banks. Enter/T performs a180-degree turn and R barrel rolls; Tab/Space unequips. R remains reset when unmounted. Aircraft body/camera and source driver/Goddard/flame art are included; other levels and special mission/hazard sequences remain open. 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 opens/closes objectives, which also time out. 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. Tutorial RETURN restores the departure position and suppresses the lab intro. 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. VR04 now uses recovered static body response, support and friction. Lab/outside retain the capsule pending special contact and dynamic collision recovery. Full combat, AI, progression, menus and runtime saves remain incomplete. The user confirms lab/tutorial/lab/outside and that their corrected Windows build works; comprehensive native Windows input/physics/audio/driver validation remains pending. See BUILD-AND-LIMITATIONS.md, COMPATIBILITY.md and docs/ for evidence and remaining work. SOURCE-README.md describes development from the separate source repository. NOTES done cat > dist/linux-x64/launch-scene.sh <<'LAUNCH' #!/usr/bin/env bash set -euo pipefail here="$(cd "$(dirname "$0")" && pwd)" exec "$here/GamePort" --assets "$here/assets" --scene "$here/scenes/level1b/scene.json" --level gam/level1b.gam --walk "$@" LAUNCH chmod +x dist/linux-x64/launch-scene.sh cat > dist/win-x64/launch-scene.cmd <<'LAUNCH' @echo off "%~dp0GamePort.exe" --assets "%~dp0assets" --scene "%~dp0scenes\level1b\scene.json" --level gam/level1b.gam --walk %* LAUNCH printf '%s\n' 'Local Linux and Windows investigation packages prepared in dist/.'