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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user