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

Commit

Permalink
v3.0.1 - Added http code msg explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
brysondev committed Jan 19, 2023
1 parent 2dcbe81 commit be1f78b
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions of_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -124,27 +124,32 @@ goto verify
echo.
echo Installing Open Fortress...
echo.
:: Since people are getting confused with the messages output by the verify command, here's a warning.
SETLOCAL EnableExtensions DisableDelayedExpansion
for /F %%a in ('echo prompt $E ^| cmd') do (
set "ESC=%%a"
)
SETLOCAL EnableDelayedExpansion

:: TODO: Possibly let them input threads, but honestly this should be fine for now...
murse.exe upgrade "%STEAM_REG_PATH%\open_fortress" -1
if %ERRORLEVEL% EQU 1 (
echo Something went wrong...
echo Something went wrong...
echo %ESC%[101mError Code 4XX means you are temporarily ^(or permanently^) restricted from accessing the server. Try again in 20 minutes.%ESC%[0m
echo %ESC%[101mError Code 5XX means the server is having issues. Try again after bryson has been informed.%ESC%[0m
goto exitmain
)
echo Validating just in case...
echo This will take a while...
:: Since people are getting confused with the messages output by the verify command, here's a warning.
SETLOCAL EnableExtensions DisableDelayedExpansion
for /F %%a in ('echo prompt $E ^| cmd') do (
set "ESC=%%a"
)
SETLOCAL EnableDelayedExpansion

echo %ESC%[44mIGNORE ANY ERRORS/MESSAGES ABOUT GAMEUI.DLL!! %ESC%[0m
echo.
murse.exe verify "%STEAM_REG_PATH%\open_fortress" -1 -r
:: > nul 2>&1
if %ERRORLEVEL% EQU 1 (
echo Something went wrong...
echo Something went wrong...
echo %ESC%[101mError Code 4XX means you are temporarily ^(or permanently^) restricted from accessing the server. Try again in 20 minutes.%ESC%[0m
echo %ESC%[101mError Code 5XX means the server is having issues. Try again after bryson has been informed.%ESC%[0m
goto exitmain
)
echo.
Expand Down

0 comments on commit be1f78b

Please sign in to comment.