@echo off
cls
rem This is your launcher for the multiplayer client.
rem Do not modify it! Modifications may cause you to
rem go out of sync with the server, and become unable
rem to connect.
rem It must be saved in the game's base directory.
echo off
cls
echo This is your launcher for the multiplayer client.
echo Do not modify it! Modifications may cause you to
echo go out of sync with the server, and become unable
echo to connect.
echo It must be saved in the game's base directory.
cd updater
call update.bat
cd ..
cd .wcvs
rd /s /q save > null
rd /s /q serialized_xml
> null
rd /s /q sounds > null
rd /s /q textures > null
rd /s /q generatedbsp > null
rd /s /q sectors > nul
cd ..
cd modules
del *.pyc > null
cd ..
cls
echo This is your launcher for the multiplayer client.
echo Do not modify it! Modifications may cause you to
echo go out of sync with the server, and become unable
echo to connect.
rem Deals with Opera bug re: saving vegastrike.config properly
if exist vegastrike.xml del vegastrike.config
ren vegastrike.xml vegastrike.config
echo It must be saved in the game's base directory.
cd bin
echo.
if "%2" == "" goto nouser
goto user
:user
echo Starting the client with username %1 and associated password.
vegastrikeR.exe --net -u%1 -p%2
goto cont
:nouser
if "%1" == "" goto nouserP
echo You must pass in username AND password. Please select an account.
goto nouserP
:nouserP
echo No username passed as argument, please select an account.
setup.exe
vegastrikeR.exe --net
goto cont
:cont
cd ..
cd .wcvs
rd /s /q save > nul
rd /s /q serialized_xml
> nul
rd /s /q sounds > nul
rd /s /q textures > nul
rd /s /q generatedbsp > nul
rd /s /q sectors > nul
cd ..
cd modules
del *.pyc > nul
cd ..