Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Commit be1f78b

Browse files
author
brysondev
committed
v3.0.1 - Added http code msg explanation
1 parent 2dcbe81 commit be1f78b

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

of_install.bat

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,27 +124,32 @@ goto verify
124124
echo.
125125
echo Installing Open Fortress...
126126
echo.
127+
:: Since people are getting confused with the messages output by the verify command, here's a warning.
128+
SETLOCAL EnableExtensions DisableDelayedExpansion
129+
for /F %%a in ('echo prompt $E ^| cmd') do (
130+
set "ESC=%%a"
131+
)
132+
SETLOCAL EnableDelayedExpansion
127133

128134
:: TODO: Possibly let them input threads, but honestly this should be fine for now...
129135
murse.exe upgrade "%STEAM_REG_PATH%\open_fortress" -1
130136
if %ERRORLEVEL% EQU 1 (
131-
echo Something went wrong...
137+
echo Something went wrong...
138+
echo %ESC%[101mError Code 4XX means you are temporarily ^(or permanently^) restricted from accessing the server. Try again in 20 minutes.%ESC%[0m
139+
echo %ESC%[101mError Code 5XX means the server is having issues. Try again after bryson has been informed.%ESC%[0m
132140
goto exitmain
133141
)
134142
echo Validating just in case...
135143
echo This will take a while...
136-
:: Since people are getting confused with the messages output by the verify command, here's a warning.
137-
SETLOCAL EnableExtensions DisableDelayedExpansion
138-
for /F %%a in ('echo prompt $E ^| cmd') do (
139-
set "ESC=%%a"
140-
)
141-
SETLOCAL EnableDelayedExpansion
144+
142145
echo %ESC%[44mIGNORE ANY ERRORS/MESSAGES ABOUT GAMEUI.DLL!! %ESC%[0m
143146
echo.
144147
murse.exe verify "%STEAM_REG_PATH%\open_fortress" -1 -r
145148
:: > nul 2>&1
146149
if %ERRORLEVEL% EQU 1 (
147-
echo Something went wrong...
150+
echo Something went wrong...
151+
echo %ESC%[101mError Code 4XX means you are temporarily ^(or permanently^) restricted from accessing the server. Try again in 20 minutes.%ESC%[0m
152+
echo %ESC%[101mError Code 5XX means the server is having issues. Try again after bryson has been informed.%ESC%[0m
148153
goto exitmain
149154
)
150155
echo.

0 commit comments

Comments
 (0)