-
-
Save cp6/04ae70c87c44496d4288482958e7b2db to your computer and use it in GitHub Desktop.
| @echo off | |
| :start | |
| ::Server name | |
| set serverName=Server1 | |
| ::Server files location | |
| set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" | |
| ::Server Profile folder | |
| set profile=Server1 | |
| ::BEC location | |
| set BECLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer\BEC" | |
| ::Server Port | |
| set serverPort=2302 | |
| ::Server config | |
| set serverConfig=serverDZ.cfg | |
| ::Logical CPU cores to use (Equal or less than available) | |
| set serverCPU=2 | |
| ::Mods | |
| set mods="@mod1;@mod2;@mod3;@etc" | |
| ::Sets title for terminal (DONT edit) | |
| title %serverName% batch | |
| ::DayZServer location (DONT edit) | |
| cd "%serverLocation%" | |
| echo (%time%) %serverName% started. | |
| ::Launch parameters | |
| start "DayZ Server" /min "DayZServer_x64.exe" -profiles=%profile% -config=%serverConfig% -port=%serverPort% -mod=%mods% -cpuCount=%serverCPU% -dologs -adminlog -netlog -freezecheck | |
| ::Time in seconds before starting BEC | |
| timeout 25 | |
| cd /d "%BECLocation%" | |
| start "" "bec.exe" | |
| ::Time in seconds before kill server and BEC process (14400 = 4 hours) | |
| timeout 14390 | |
| taskkill /im DayZServer_x64.exe /F | |
| taskkill /im bec.exe /F | |
| ::Time in seconds to wait before.. | |
| timeout 10 | |
| ::Go back to the top and repeat the whole cycle again | |
| goto start |
| @echo off | |
| set serverName=Jims DayZ server | |
| set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" | |
| set BECLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer\BEC" | |
| set serverPort=2302 | |
| set serverConfig=serverDZ.cfg | |
| set serverCPU=2 | |
| title %serverName% batch | |
| cd "%serverLocation%" | |
| echo (%time%) %serverName% started. | |
| start "DayZ Server" /min "DayZServer_x64.exe" -config=%serverConfig% -port=%serverPort% -cpuCount=%serverCPU% -dologs -adminlog -netlog -freezecheck | |
| timeout 25 | |
| cd /d "%BECLocation%" | |
| start "" "bec.exe" | |
| timeout 14390 | |
| taskkill /im DayZServer_x64.exe /F | |
| taskkill /im bec.exe /F | |
| goto start |
| @echo off | |
| :start | |
| ::Name for CMD window | |
| set serverName=Jims DayZ server | |
| ::Server files location | |
| set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" | |
| ::Server Port | |
| set serverPort=2302 | |
| ::Server config | |
| set serverConfig=serverDZ.cfg | |
| ::Server profile folder | |
| set serverProfile=profileName | |
| ::Logical CPU cores to use (Equal or less than available) | |
| set serverCPU=4 | |
| ::mods (@modName;@anotherModname;@mod) | |
| set mods="" | |
| ::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% -mod=%mods% -port=%serverPort% -profiles=%serverProfile% -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 |
| @echo off | |
| :start | |
| ::Server name | |
| set serverName=Jims DayZ server | |
| ::Server files location | |
| set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" | |
| ::Server Port | |
| set serverPort=2302 | |
| ::Server config | |
| set serverConfig=serverDZ.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% -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 |
-mission="./mpmissions/hardcore.namalsk" \
Adding the ./mpmissions/ seemed to solve the "Mission script has no main function, player connect will stay disabled!"
I'm a linux noob using CachyOS KDE Plasma on ASUS Zephyrus G14
Hi ,i try to help you out but im also a linuxnoob, just had a year with a bit of experience with homeassistant and proxmox lately.Beginnign is hard and btw this hole script is and was written for windows.
set serverLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer" ::Server Profile folder set profile=Server1 ::BEC location set BECLocation="C:\Program Files (x86)\Steam\steamapps\common\DayZServer\BEC" ::Server Port set serverPort=2302 ::Server config set serverConfig=serverDZ.cfg ::Logical CPU cores to use (Equal or less than available) set serverCPU=2 ::Mods set mods="@mod1;@mod2;@mod3;@etc" ::Sets title for terminal (DONT edit) title %serverName% batch ::DayZServer location (DONT edit) cd "%serverLocation%" echo (%time%) %serverName% started. ::Launch parameters start "DayZ Server" /min "DayZServer_x64.exe"
What you search for is https://github.com/neorule/StandAlone_DayZ_Linux_Server_Script
or try pterodactyl or https://linuxgsm.com/
I have this same problem using CachyOS!