Advertisement
iKurdo

Inicio Rapido Servidor DAYZ

May 13th, 2020 (edited)
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.18 KB | None | 0 0
  1. @echo off
  2. TITLE DayZ SA Server - Status
  3. COLOR 0A
  4.     :: DEFINE the following variables where applicable to your install
  5.     SET SteamLogin=anonymous
  6.     SET DayZBranch=223350
  7.     SET DayZServerPath="C:\DZServer"
  8.     SET SteamCMDPath="C:\steamcmd"
  9.     SET BECPath="C:\BEC"
  10.     :: DayZ Mod Parameters
  11.     set DayZModList=(C:\DZServer\Modlist.txt)
  12.     set SteamCMDWorkshopPath="C:\steamcmd\steamapps\workshop\content\221100"
  13.     set SteamCMDDelay=5
  14.     setlocal EnableDelayedExpansion
  15.     :: _______________________________________________________________
  16.  
  17. goto checkServer
  18. pause
  19.  
  20. :checkServer
  21. tasklist /fi "imagename eq DayZServer_x64.exe" 2>NUL | find /i /n "DayZServer_x64.exe">NUL
  22. if "%ERRORLEVEL%"=="0" goto checkBEC
  23. cls
  24. echo El servidor no se está ejecutando, chekeando...
  25. goto killServer
  26.  
  27. :checkBEC
  28. tasklist /fi "imagename eq BEC.exe" 2>NUL | find /i /n "BEC.exe">NUL
  29. if "%ERRORLEVEL%"=="0" goto loopServer
  30. cls
  31. echo Bec no se está ejecutando, chekeando...
  32. goto startBEC
  33.  
  34. :loopServer
  35. FOR /L %%s IN (30,-1,0) DO (
  36.     cls
  37.     echo Servidor activo, chekeando en %%s segundos..
  38.     timeout 1 >nul
  39. )
  40. goto checkServer
  41.  
  42. :killServer
  43. taskkill /f /im Bec.exe
  44. taskkill /f /im DayZServer_x64.exe
  45. taskkill /f /im DZSALModServer.exe
  46. goto updateMods
  47.  
  48. :startServer
  49. cls
  50. echo Iniciando Servidor.
  51. timeout 1 >nul
  52. cls
  53. echo Iniciando Servidor..
  54. timeout 1 >nul
  55. cls
  56. echo Iniciando Servidor...
  57. cd "%DayZServerPath%"
  58. start DZSALModServer.exe -instanceId=1 -config=serverDZ.cfg -profiles=ServerProfiles -port=2302 -bepath=C:\DZServer\battleye -mod=!MODS_TO_LOAD!% -cpuCount=4 -noFilePatching -dologs -adminlog -freezecheck
  59. FOR /l %%s IN (45,-1,0) DO (
  60.     cls
  61.     echo Iniciando Apocalypse 101, espere %%s segundos para iniciar BEC..
  62.     timeout 1 >nul
  63. )
  64. goto startBEC
  65.  
  66. :startBEC
  67. cls
  68. echo Iniciando BEC.
  69. timeout 1 >nul
  70. cls
  71. echo Iniciando BEC..
  72. timeout 1 >nul
  73. cls
  74. echo Iniciando BEC...
  75. timeout 1 >nul
  76. cd "%BECPath%"
  77. start Bec.exe -f Config.cfg --dsc
  78. goto checkServer
  79.  
  80. :updateMods
  81. cls
  82. set "MODS_TO_LOAD="
  83. for /f "tokens=1,2 delims=," %%g in %DayZModList% do (
  84. set "MODS_TO_LOAD=!MODS_TO_LOAD!%%h;"
  85. )
  86. set "MODS_TO_LOAD=!MODS_TO_LOAD:~0,-1!"
  87. ECHO Cargando mods: !MODS_TO_LOAD!%
  88. @ timeout 3 >nul
  89. goto startServer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement