Created
November 11, 2022 00:53
-
-
Save jsosulska/2478ca60c3bc88d13978a20913104c4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:start | |
::Server name (This is just for the bat file) | |
set serverName="DayZ Demo Server" | |
::Server files location - May vary on where steam is installed. | |
set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" | |
::Server Port | |
set serverPort=2302 | |
::Server config | |
set serverConfig=serverDZ_local.cfg | |
::Logical CPU cores to use (Equal or less than available) | |
set serverCPU=2 | |
::Sets title for terminal (DONT edit) | |
title %serverName% batch | |
::DayZServer location (DONT edit) | |
cd "%serverLocation%" | |
echo (%time%) %serverName% started. | |
::Launch parameters (edit end: -config=|-port=|-profiles=|-doLogs|-adminLog|-netLog|-freezeCheck|-filePatching|-BEpath=|-cpuCount=) | |
start "DayZ Server" /min "DayZServer_x64.exe" -config=%serverConfig% -port=%serverPort% "-profiles=config" "-mod=@CannabisPlus;@CF;@Community-Online-Tools;@Dabs Framework;@DeerIsle;@DeerIsle Road Signs;@GasMasksOnly;@Increased Lumens;@Level 10 Deer Isle;@Mag Obfuscation;@No Force Weapon Raise;@Notes;@Raft;@TACSAT Radio;@WindstridesClothingPack;@VPPAdminTools;" -cpuCount=%serverCPU% -dologs -adminlog -netlog -freezecheck | |
::Time in seconds before kill server process (14400 = 4 hours) | |
timeout 14390 | |
taskkill /im DayZServer_x64.exe /F | |
::Time in seconds to wait before.. | |
timeout 10 | |
::Go back to the top and repeat the whole cycle again | |
goto start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment