Arma3_Exile_Mission/restartserver.bat

49 lines
1.8 KiB
Batchfile
Raw Permalink Normal View History

@echo off
F:
SET ARMA=f:\Arma3\Arma3_Server
::MAKE SURE ALL TASKS ARE REALLY STOPPED
echo Making sure all instances of this server have stopped
taskkill /f /fi "Windowtitle eq Administrator: ServerMonitor"
taskkill /f /fi "status eq not responding" /im bec.exe /t
taskkill /f /im bec.exe /t
taskkill /f /fi "status eq not responding" /im arma3server_SC.exe /t
taskkill /f /fi "status eq not responding" /im arma3server_HC.exe /t
taskkill /f /im arma3server_SC.exe /t
taskkill /f /im arma3server_HC.exe /t
timeout 5
echo.
2018-03-09 05:49:24 +00:00
::Backing up Exile Database
echo Backing up Exile Database...
start /min "" .\backupDB.bat
echo.
::Updating Mods and Server
echo Updating Arma and Mods
Start /wait /min "" ..\Arma3_Update.bat
echo.
::RESTARTING THE ARMA 3 SERVER
echo Starting ARMA 3 Server...
2018-03-10 05:29:28 +00:00
start /min /affinity 0x3 /abovenormal "Arma3" arma3server_SC.exe "-mod=@exile;Kart;Mark;Heli;@ArmA3 Adjustable Full Screen Night Vision;@CBA_A3;@Enhanced Movement;@Advanced Rappelling;@Advanced Urban Rappelling;@Arma 3 Flashlight Mod (Exile Fix);@Mozzie Mod;" "-servermod=@exileserver;@asm;@A3XAI;@VCOM_AI;@Enigma;" -config=%ARMA%\@ExileServer\config.cfg -port=2302 -profiles=SC -cfg=%ARMA%\@ExileServer\basic.cfg -name=SC -autoinit -Loadmissiontomemory -hugepages
start /min /affinity 0xC /abovenormal "Arma3_HC" arma3server_HC.exe -client -connect=127.0.0.1 -password=joejer "-mod=@exile;Kart;Mark;Heli;@A3XAI_HC;@asm;@ASR_AI3;@CBA_A3;@Arma 3 Flashlight Mod (Exile Fix);" -profiles=HC -name=HC
echo ARMA 3 Server is started
timeout 25
echo.
:: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET
echo Starting Server Monitor Loop
cd /d %ARMA%
start /min "ServerMonitor" "servermonitor.bat"
echo Server Monitor has started. Have Fun
timeout 10
::FINISHED
timeout 2
@exit