Add -tbaud switch: force COM1 RIO baud for high-speed replica boards

-tbaud <rate> (9600-921600) overrides the COM1 baud rate while keeping
old-RIO (type 0) protocol behavior unchanged; independent of -trio.
SetupComm buffers 2/2 -> 1024/1024 only when the override is active.
Rebuilt Release + Profile (0 errors), deployed rel.bin\MW4.exe to MW4\.
run-firestorm driver: game-start now takes optional extra args.
CLAUDE.md: branch notes incl. the CP949 comment-encoding hazard
(mw4 sources must be edited byte-safely).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-12 21:50:10 -05:00
co-authored by Claude Fable 5
parent 1fd489d9a6
commit dbcf4052e2
55 changed files with 63237 additions and 62587 deletions
+7 -2
View File
@@ -5,7 +5,8 @@
# report <MissionName> HEADLESS: editor loads the mission, writes <MissionName>.report, exits.
# Prints the report. (Editor always exits code 1 by design -- not an error.)
# editor-start launch the mission editor (windowed), wait for its UI to appear
# game-start launch the game (fullscreen 800x600 16-bit -- grabs the display)
# game-start [args] launch the game (fullscreen 800x600 16-bit -- grabs the display);
# optional quoted extra command line, e.g. game-start "-tbaud 115200"
# shot [name] screenshot -> shots\<name|timestamp>.png (whole virtual screen;
# fullscreen-exclusive DDraw has no window rect worth cropping)
# windows enumerate top-level windows (detects the editor's modal dialogs)
@@ -138,7 +139,11 @@ switch ($Command) {
'game-start' {
if (Get-Process -Name 'MW4' -ErrorAction SilentlyContinue) { throw 'MW4 already running. Run: driver.ps1 stop' }
Start-Process -FilePath (Join-Path $GameDir 'MW4.exe') -WorkingDirectory $GameDir | Out-Null
if ($Arg) {
Start-Process -FilePath (Join-Path $GameDir 'MW4.exe') -ArgumentList $Arg -WorkingDirectory $GameDir | Out-Null
} else {
Start-Process -FilePath (Join-Path $GameDir 'MW4.exe') -WorkingDirectory $GameDir | Out-Null
}
# NB: the game window title is 'BattleTech Firestorm' (not MechWarrior/MW4)
$w = Wait-ForWindow 'Firestorm|FireStorm' 120
if ($w) { Write-Output "Game up: '$($w.Title)' ($($w.W)x$($w.H))"; Show-Windows }