This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExileServerStart.bat
73 lines (56 loc) · 2.4 KB
/
ExileServerStart.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
::
:: ExileServerStart.bat
:: By: Jstrow and Danny Dorito for CSG Exile
::
@echo off
title CSG Exile Chernarus Isles #1
SET crashes=0
:start
C:\Windows\System32\tasklist /FI "C:\arma eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo Pre startup initailzed
echo.
::Delete vars.Arma3Profile for performance gains
echo Deleting CSG.vars.Arma3Profile
del /Q /F "C:\arma\CSG\Users\CSG\CSG.vars.Arma3Profile"
echo Delete complete
::Database backup script
echo Starting Database Backup
start C:\Heidi\MySQLBackups\mysqlbackup.bat
echo Database Backup Complete
::Mikero's PBO Packer
::echo Starting PBO Packer
::Place commands here
::echo PBOs packed
::Arma 3 Launcher Mission Prefetch
::echo Starting Mission Prefetch Server
::start C:\arma\MissionPrefetchServer.exe 2302 C:\arma\mpmissions\Exile.Chernarus_Isles.pbo 144.217.255.231 2309 90
::echo Mission Prefetch Server Started
::Steam automatic update for the server files
::echo Steam Automatic Update Starting
::start C:\Steam\steamcmd.exe +login "iibetrayforlan" "StickBug!" +force_install_dir c:\arma\ +app_update 233780 validate +quit
::TIMEOUT /T 40
::echo Steam Automatic Update Completed
echo.
echo Pre startup complete
echo.
echo Starting server at: %date%,%time%
echo Restarts/Crashes: %crashes%
::Start the Arma Server
cd "C:\arma"
start "CSG" /min /wait /affinity 0xAA arma3server.exe "-mod=@Exile;@Exile Expansion;@Extended_Items_Exile;@CBA_A3;@Chernarus Isles;@CUP Terrains - Core;@CUP Terrains - Maps;@Extended_Base_Mod;@Enhanced Movement;@RHSAFRF;@RHSSAF;@RHSUSAF;@RHSGREF;@Specialist Military Arms (SMA) Version 2.7.1;@TRYK [TRYK's Multi-play Uniforms];@NIArsenal;@Caucasus Insurgency;@Temp fix for exile miniguns;@Open Chernarus Project;" "-servermod=@exileserver;@Advanced Urban Rappelling;@AdvancedTowing" "-config=C:\arma\config.cfg" -port=2302 "-profiles=CSG" "-cfg=C:\arma\basic.cfg" "-bepath=C:\arma\battleye" -name=CSG -autoinit -enableHT -loadMissionToMemory -high -filePatching -hugepages
goto started
:loop
::Monitoring Loop
cls
echo Server is already running, running monitoring loop
:started
::Restart/Crash Hander
set /A crashes=crashes+1
C:\Windows\System32\timeout /t 5
C:\Windows\System32\tasklist /FI "C:\arma eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
taskkill /F /IM MissionPrefetchServer.exe
if "%ERRORLEVEL%"=="0" goto loop
cls
goto start
pause