Files
BT411/scratchpad/pod/setup_pod.bat
T
Joe DiPrimaandClaude Opus 5 05d8164801 pod: make the frozen rig survive a NEW BUILD, not just a reboot
Both frozen files live inside the versioned install and neither ships in the
zip -- environ.ini is generated on first run, glass_layout.cfg is ours.  So
Nick extracting the next build would get a cab that comes up wrong with no
error anywhere, which is exactly the failure the freeze was supposed to end.

Masters now live at the stable C:\bt411\ (podprofile.ini, glass_layout.cfg,
podkit.ps1).  setup_pod.bat pushes them into the newest BT411_* folder -- run
once per extract.  runpod.bat resolves the newest install and applies the kit
itself, so the remote launch path needs no per-build edit.  Re-tuning means
editing the MASTER: the apply overwrites the install's copy on purpose, so a
moved panel has one place to look.

Also records, for playtesting on the cab: all five tester launchers set no pod
key at all, so each inherits the rig from environ.ini without knowing the pod
exists -- verified by running play_solo.bat on the cart (7 settings applied,
not 9, because the bat sets BT_PLATFORM and BT_START_INSIDE itself and the
real environment wins).  That is the case against a separate pod-only ini: a
second file would need every launcher to opt in.

Verified: kit re-applies idempotently, and the rewritten runpod.bat brings the
cab up correct -- 9 settings, GLASS, -fit borderless, all three surfaces on
their intended displays.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rw7No5wLTpkaUgA3ANbtZZ
2026-08-06 17:59:57 -05:00

25 lines
1.0 KiB
Batchfile

@echo off
REM ============================================================================
REM RUN THIS AFTER EXTRACTING A NEW BT411 BUILD.
REM It finds the newest BT411_* folder under C:\bt411 and pushes the cab's
REM frozen rig config into it (environ.ini block + glass_layout.cfg).
REM Without it a fresh extract comes up with the MFDs wrong and no error.
REM ============================================================================
setlocal
set ROOT=C:\bt411
set INSTALL=
for /f "delims=" %%d in ('dir /b /ad /o-d "%ROOT%\BT411_*" 2^>nul') do (
if not defined INSTALL set INSTALL=%ROOT%\%%d
)
if not defined INSTALL goto noinstall
echo Newest install: %INSTALL%
powershell -NoProfile -ExecutionPolicy Bypass -File "%ROOT%\podkit.ps1" -Content "%INSTALL%\content"
echo.
echo Done. play_solo.bat / join.bat / play_steam.bat in that folder will now
echo all come up on the pod glass -- they inherit it from environ.ini.
pause
exit /b
:noinstall
echo No BT411_* folder found under %ROOT%. Extract the zip there first.
pause