Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
alduric

Server .bat file - Auto restart / Crash auto restart

Recommended Posts

Hello guys. Im runing own DayZ server. I made bat file to make it easy auto restart. But i have problem with server crash'es. My bat file doing nothing at the moment. I tried to figure it out but without any succes. I know its possible, but ppl wont share >.>  Im asking for help with modify my bat file to add anti crash restart. Here is my bat file, it start server, count restarts, and restart game server every 4 hours.

@echo off
color 0a
title DayZ SA Server
C:\Windows\System32\mode con cols=50 lines=3 >nul
set /a var=0
:loop 
echo Serwer dziala                            
start "DayZServer_x64" "C:\Program Files (x86)\Steam\steamapps\common\DayZServer\DayZserver_X64.exe" -config=serverDZ.cfg -freezecheck -port=27015 "-profiles=C:\Users\Administrator.WIN-9DFIPBII98O\Documents\DayZ" -noFilePatching "-BEpath=C:\Program Files (x86)\Steam\steamapps\common\DayZServer\battleye" -cpuCount=4
timeout /t 14400 >null              
taskkill /f /im "DayZserver_X64.exe" >null  
timeout /t 7 >null  
set /a var+=1    
echo Liczba restartow serwera %var% 
goto loop

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×