Advertisement
secondcoming

Untitled

Jun 1st, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.97 KB | None | 0 0
  1. @echo off
  2.  
  3. ::=====================================================================================================================================
  4. :: close the running apps
  5. ::=====================================================================================================================================
  6.  
  7. taskkill /IM arma3server.exe /f /t
  8. taskkill /IM ArmaServerMonitor.exe /f /t
  9. taskkill /IM Bec.exe /f /t
  10.  
  11. ::=====================================================================================================================================
  12. :: Database Housekeeping backup & clean
  13. ::=====================================================================================================================================
  14. C:\xampp\php\php.exe C:\xampp\htdocs\scheduled\exile_cleanup.php
  15.  
  16. timeout 2
  17.  
  18. :: Move old log files
  19. move F:\a3server\SC\*.log F:\a3server\SC\old
  20. move F:\a3server\SC\*.rpt F:\a3server\SC\old
  21. move F:\a3server\SC\*.bidmp F:\a3server\SC\old
  22. move F:\a3server\SC\*.mdmp F:\a3server\SC\old
  23.  
  24. :: Delete the .Arma3Profile file
  25. del "F:\A3server\SC\Users\SC\SC.vars.Arma3Profile" /F /Q
  26.  
  27. ::=====================================================================================================================================
  28. :: Update the Binaries and DLLs
  29. ::=====================================================================================================================================
  30. xcopy "F:\updates\BinaryUpdate\arma3server.exe" "F:\A3server\arma3server.exe" /Y
  31. xcopy "F:\updates\BinaryUpdate\*.dll" "F:\A3server\" /Y
  32. xcopy "F:\updates\extDB2.dll" "F:\A3server\@ExileServer\extDB2.dll" /Y
  33.  
  34. timeout 2
  35.  
  36. ::=====================================================================================================================================
  37. ::Copy updates to live folders before restarting server
  38. ::=====================================================================================================================================
  39.  
  40. xcopy "F:\updates\exile.ini" "F:\A3server\@ExileServer\extDB\sql_custom_v2\exile.ini" /Y
  41. xcopy "F:\updates\exile.bikey" "F:\A3server\keys\exile.bikey" /Y
  42. xcopy "F:\updates\exile_server.pbo" "F:\A3server\@ExileServer\addons\exile_server.pbo" /Y
  43. xcopy "F:\updates\exile_server_config_chernarus.pbo" "F:\A3server\@ExileServer\addons\exile_server_config.pbo" /Y
  44.  
  45. ::=====================================================================================================================================
  46. ::Map Specific
  47. ::=====================================================================================================================================
  48.  
  49. xcopy "F:\updates\Exile.Chernarus.pbo" "F:\A3server\MPMissions\Exile.Chernarus.pbo" /Y
  50. xcopy "F:\updates\Exile.Chernarus.pbo" "C:\Users\Richard\AppData\Local\Arma 3\MPMissionsCache\Exile.Chernarus.pbo" /Y
  51.  
  52.  
  53. ::=====================================================================================================================================
  54. :: InfiStar
  55. ::=====================================================================================================================================
  56.  
  57. xcopy "F:\updates\infiSTAR\a3_infiSTAR_Exile.pbo" "F:\A3server\@infiSTAR_servermod\addons\a3_infiSTAR_Exile.pbo" /Y
  58. xcopy "F:\updates\infiSTAR\*.dll" "F:\A3server\" /Y
  59.  
  60. ::=====================================================================================================================================
  61. :: Battleye Filters
  62. ::=====================================================================================================================================
  63.  
  64. xcopy "F:\updates\battleye\*.txt" "F:\A3server\SC\BattlEye\" /Y
  65.  
  66. ::=====================================================================================================================================
  67.  
  68. xcopy "F:\updates\config.cfg" "F:\A3server\SC\config.cfg" /Y
  69. xcopy "F:\updates\basic.cfg" "F:\A3server\SC\basic.cfg" /Y
  70.  
  71. xcopy "F:\updates\SC.Arma3Profile" "F:\A3server\SC\Users\SC\SC.Arma3Profile" /Y
  72. xcopy "F:\updates\Scheduler.xml" "F:\A3server\BEC\Config\Scheduler.xml" /Y
  73.  
  74. ::=====================================================================================================================================
  75. :: Missions and random spawns
  76. ::=====================================================================================================================================
  77.  
  78. xcopy "F:\updates\SA_AdvancedTowing.pbo" "F:\A3server\@ExileServer\addons\SA_AdvancedTowing.pbo" /Y
  79. ::del "F:\A3server\@ExileServer\addons\SA_AdvancedTowing.pbo" /F /Q
  80.  
  81. xcopy "F:\updates\enigma_exile_updaterp.pbo" "F:\A3server\@ExileServer\addons\enigma_exile_updaterp.pbo" /Y
  82. ::del "F:\A3server\@ExileServer\addons\enigma_exile_updaterp.pbo" /F /Q
  83.  
  84. xcopy "F:\updates\enigma_exile_revive.pbo" "F:\A3server\@ExileServer\addons\enigma_exile_revive.pbo" /Y
  85. ::del "F:\A3server\@ExileServer\addons\enigma_exile_revive.pbo" /F /Q
  86.  
  87. xcopy "F:\updates\a3_exile_yorkshire.pbo" "F:\A3server\@ExileServer\addons\a3_exile_yorkshire.pbo" /Y
  88. ::del "F:\A3server\@ExileServer\addons\a3_exile_yorkshire.pbo" /F /Q
  89.  
  90. xcopy "F:\updates\a3_exile_occupation.pbo" "F:\A3server\@ExileServer\addons\a3_exile_occupation.pbo" /Y
  91. ::del "F:\A3server\@ExileServer\addons\a3_exile_occupation" /F /Q
  92.  
  93. xcopy "F:\updates\a3_zcp_exile.pbo" "F:\A3server\@ExileServer\addons\a3_zcp_exile.pbo" /Y
  94. ::del "F:\A3server\@ExileServer\addons\a3_zcp_exile.pbo" /F /Q
  95.  
  96. xcopy "F:\updates\a3_dms.pbo" "F:\A3server\@ExileServer\addons\a3_dms.pbo" /Y
  97. ::del "F:\A3server\@ExileServer\addons\a3_dms.pbo" /F /Q
  98.  
  99. xcopy "F:\updates\asm.pbo" "F:\A3server\@ExileServer\addons\asm.pbo" /Y
  100. ::del "F:\A3server\@ExileServer\addons\asm.pbo" /F /Q
  101.  
  102. ::=====================================================================================================================================
  103. ::Start ASM
  104. ::=====================================================================================================================================
  105.  
  106. start F:\A3server\Tools\ArmaServerMonitor.exe
  107.  
  108. ::=====================================================================================================================================
  109. :: Launch the Server
  110. ::=====================================================================================================================================
  111.  
  112. cd "F:\A3server
  113. :: Chernarus
  114. start /min "arma3server" /realtime "arma3server.exe" "-mod=@CUP Terrains - Core;@CUP Terrains - Maps;@RHSAFRF;@RHSUSAF;@RHSGREF;@Exile;@TRYK;@extendedbase;" -serverMod=@ExileServer;@infiSTAR_servermod; -bandwidthAlg=2 -bepath=F:\A3server\SC\BattlEye\ -port=2302 -maxMem=3072 -enableHT -loadmissiontomemory -profiles=SC -name=SC "-config=SC\config.cfg" "-cfg=SC\basic.cfg" -autoinit
  115.  
  116. timeout 20
  117.  
  118. ::=====================================================================================================================================
  119. :: start BEC
  120. ::=====================================================================================================================================
  121.  
  122. cd "F:\A3server\BEC\"
  123. start /min Bec.exe -f Config.cfg
  124.  
  125. @exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement