Asmodeus_Dev

Batch file dayz

Sep 29th, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. @echo off
  2. :start
  3. ::Server name
  4. set serverName=Influx PVE VANILLA
  5. ::Server files location
  6. set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer"
  7. ::Server Port
  8. set serverPort=2302
  9. ::Server config
  10. set serverConfig=serverDZ.cfg
  11. ::Logical CPU cores to use (Equal or less than available)
  12. set serverCPU=4
  13. ::Sets title for terminal (DONT edit)
  14. title %serverName% batch
  15. ::DayZServer location (DONT edit)
  16. cd "%serverLocation%"
  17. echo (%time%) %serverName% started.
  18. ::Launch parameters (edit end: -config=|-port=|-profiles=|-doLogs|-adminLog|-netLog|-freezeCheck|-filePatching|-BEpath=|-cpuCount=)
  19. start "DayZ Server" /min "DayZServer_x64.exe" -config=%serverConfig% -port=%serverPort% "-profiles=config" "-mod=@[A+] Global Chat;@BuildEverywhere;@CF;@Code Lock;@Forever_Lights_and_Campfires;@loadscreen;@PVEZ;@PVEZMarkersOnVPPMap;@Trader;@TraderFixesAndFeatures;@VanillaPlusPlusMap;@ZenSleep;@VPPAdminTools" -cpuCount=%serverCPU% -dologs -adminlog -netlog -freezecheck
  20. ::Time in seconds before kill server process (14400 = 4 hours)
  21. timeout 14390
  22. taskkill /im DayZServer_x64.exe /F
  23. ::Time in seconds to wait before..
  24. timeout 10
  25. ::Go back to the top and repeat the whole cycle again
  26. goto start
Advertisement
Add Comment
Please, Sign In to add comment