Harden player bats: location guard for 'cannot find path specified'
Field report: a remote player ran join.bat from the wrong place (inside
the zip, or the .bat separated from content\/build\) and got 'The system
cannot find the path specified' + dumps -- the relative 'cd %~dp0content'
failed cryptically.
Now each bat: cd to its own dir, verify build\Release\btl4.exe +
content\<egg> exist, else jump to :badpath and print a clear message
('this file must sit in the extracted folder next to content and build;
right-click the zip - Extract All and run it from there'). Verified: run
from a dir with no content/build -> the guidance prints, no dump.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
9690043e57
commit
0b83d71578
+21
-3
@@ -1,9 +1,12 @@
|
||||
@echo off
|
||||
rem BT411 -- join 107.202.218.169's game (internet). Your seat/mech
|
||||
rem is assigned automatically by the operator console.
|
||||
rem BT411 -- join 107.202.218.169's game (internet). Seat/mech assigned
|
||||
rem by the operator. Keep this file next to content\ + build\.
|
||||
cd /d %~dp0
|
||||
if not exist "build\Release\btl4.exe" goto badpath
|
||||
if not exist "content\OPERATOR.EGG" goto badpath
|
||||
set BT_RELAY=107.202.218.169:1500
|
||||
set BT_LOG=join.log
|
||||
cd /d %~dp0content
|
||||
cd content
|
||||
..\build\Release\btl4.exe -egg OPERATOR.EGG -net 1501
|
||||
echo.
|
||||
echo The game has exited. If you did NOT quit on purpose
|
||||
@@ -11,3 +14,18 @@ echo (crash, or it never connected), send the operator the
|
||||
echo file content\join.log so they can see what happened.
|
||||
echo Otherwise the session may not be up yet -- try again.
|
||||
pause
|
||||
exit /b
|
||||
:badpath
|
||||
echo.
|
||||
echo ==================================================
|
||||
echo ERROR: this file is not in the right place.
|
||||
echo.
|
||||
echo It must sit in the EXTRACTED game folder, next to
|
||||
echo the 'content' and 'build' folders.
|
||||
echo.
|
||||
echo Fix: right-click the .zip - Extract All, open the
|
||||
echo extracted folder, and run this file from THERE.
|
||||
echo (Do NOT run it from inside the zip.)
|
||||
echo ==================================================
|
||||
echo.
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user