Hi this is my first tutorial I have done about this so please don’t hate me if I have got this wrong but this is what works for me after a lot of testing on my VPS server box I think it might help others.
Things you will need to make this work
Notepad++
BEC (Battleye Extended Controls)
you can Google this for links they are not hard to fine.
So why do we need thes files well BEC help with running server commands on the host box and putting up messages in-game like telling a client when the server will restart.
Notepad is so you can make a “.BAT†file that will run/restart the server
Lets start
Step One
Install BEC in to your DayZ server folder and set it up to run with the server
(im not going to go in to how to set it up and stuff please see there website for the info on installing BEC)
to run BEC by it self you will need to make a ".BAT" file
to do this you need to open up notepad++ and put this command in
"Bec.exe -f Config.cfg" with out the " " and make sure you put in the same folder where you have the BEC.EXE in to it can start it up (make sure you Config the Config.cfg file befor you start it up)
So this will get BEC working on ur server and stuff but it will not do the restart system yet.
This is more a test to make sure BEC is working.
Step Two
Set up your Scheduler.XML file located in in the Config file folder. Open it up in notepad++ and edit the info for the restart part the command for #restart only restarts the mission not the server its self and it is better to have the hole server restart not just the mission file. (again im not going in to detail here you will see what im talking about when you look at the file)
Here is the restart info you will need
As you can see i have the cmd pointing to a Server_Restart.bat file in this file i have a few commands that will help with the server restarting (see step three) this is an impotent file to have or the server will NOT restart at all. Also make sure you have the cmdtype set to 1 or the command wont work. And make sure to have loop set 0 as we don't want to loop it to loop at all.
Step three
this is where we have some fun stuff to do. We need to make two different ".BAT" files to make sure the server restart right. You could do this in one file but i think this is just a better way of doing it.
First file we need to make is Server_Restart.bet all this info in here will help to close the server down (Shut the server down) and at the same time start up a new ".BAT" file that will Start the server back up again.
SO here is the info you need in the Server_Restart.bat
Things you will need to make this work
Notepad++
BEC (Battleye Extended Controls)
you can Google this for links they are not hard to fine.
So why do we need thes files well BEC help with running server commands on the host box and putting up messages in-game like telling a client when the server will restart.
Notepad is so you can make a “.BAT†file that will run/restart the server
Lets start
Step One
Install BEC in to your DayZ server folder and set it up to run with the server
(im not going to go in to how to set it up and stuff please see there website for the info on installing BEC)
to run BEC by it self you will need to make a ".BAT" file
to do this you need to open up notepad++ and put this command in
"Bec.exe -f Config.cfg" with out the " " and make sure you put in the same folder where you have the BEC.EXE in to it can start it up (make sure you Config the Config.cfg file befor you start it up)
So this will get BEC working on ur server and stuff but it will not do the restart system yet.
This is more a test to make sure BEC is working.
Step Two
Set up your Scheduler.XML file located in in the Config file folder. Open it up in notepad++ and edit the info for the restart part the command for #restart only restarts the mission not the server its self and it is better to have the hole server restart not just the mission file. (again im not going in to detail here you will see what im talking about when you look at the file)
Here is the restart info you will need
Code:
<!-- *** RESTARTS *** -->
<!-- 5 min to the 06:00 restart -->
<job id="2">
<time>05:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 This server will restart in 5 min.</cmd>
<cmdtype>0</cmdtype>
</job>
<!-- 06:00 restart -->
<job id="3">
<time>06:00:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>C:\Users\Administrator\Desktop\Dayz Server Files\Server_Restart.bat</cmd>
<cmdtype>1</cmdtype>
</job>
As you can see i have the cmd pointing to a Server_Restart.bat file in this file i have a few commands that will help with the server restarting (see step three) this is an impotent file to have or the server will NOT restart at all. Also make sure you have the cmdtype set to 1 or the command wont work. And make sure to have loop set 0 as we don't want to loop it to loop at all.
Step three
this is where we have some fun stuff to do. We need to make two different ".BAT" files to make sure the server restart right. You could do this in one file but i think this is just a better way of doing it.
First file we need to make is Server_Restart.bet all this info in here will help to close the server down (Shut the server down) and at the same time start up a new ".BAT" file that will Start the server back up again.
SO here is the info you need in the Server_Restart.bat
Last edited: