Jump to content
  • 0

Help installing bec and auto restarts


robbiedarza

Question

Hello there, I need to get BEC and auto restarts working on my overpoch server.

 

I have tried following many tutorials but I just cant get my head round it! I also tried the auto installer but couldnt figure it out

 

Does anyone know where I can find a fool proof, step by step guide please!!!

 

 

 

many thanks

 

 

Robbie

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

Installing BEC isn't too hard, just follow these instructions: http://ibattle.org/install-and-configure/

Then for the restarts you'll need to make a .bat file containing

cd "C:\Users\root\Desktop\Epoch Server"
@start "arma2" /min "arma2oaserver.exe" -port=2302 "-config=Epoch\config.cfg" "-cfg=Epoch\basic.cfg" "-profiles=Epoch" -name=Epoch -world=Chernarus -cpuCount=12 -exThreads=1 -maxmem=2047 "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
echo.
ping 127.0.0.1 -n 15 >NUL
echo START BEC
echo.
:: start bec
cd "C:\Users\root\Desktop\Epoch Server\BECC"
start "" "bec.exe" -f Myconfig.cfg 
-cpuCount=12 -exThreads=1 -maxmem=2047 are optional, you will also need to correct all of the paths and set the correct mods in it too.

Name it

WHATEVERYOUWANT_Restart.bat
Now to make the server shut down, start up, display messages and display warning messages you need to make a scheduler.xml file and put this in it as an example and you can edit off of it. This scheduler.xml is set to restart every 3 hours, has 3 messages pop up every 15 minutes 5 seconds apart, 1 hour restart warning, 30 minute restart warning, 15 minute restart warning, 10 minute restart warning, 5 minute restart warning, 3 minute restart warning, and finally a 1 minute restart warning.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<Scheduler>

<job id="0">
<time>023000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 30 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="1">
<time>024500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 15 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="2">
<time>025000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 10 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="3">
<time>025500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 5 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="4">
<time>025700</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 3 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="5">
<time>025900</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 1 Minute!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="6">
<time>001500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 MESSAGETHATWILLAPEAREVERY15MINUTES</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="8">
<time>001500</time>
<delay>000005</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTESAND5SECONDS</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="9">
<time>001500</time>
<delay>000010</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTESAND10SECONDS</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="10">
<time>020000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart In 1 Hour!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="11">
<time>030000</time>
<delay>000005</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>    
<cmdtype>0</cmdtype>            
</job>   
	
<job id="12">
<time>030000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>CHANGETHISPATH\restart.bat</cmd>
<cmdtype>1</cmdtype>
</job>
</Scheduler>
Link to comment
Share on other sites

  • 0

Hiya, thanks for the help on this, i tried that auto installer ritchie but I couldn't do it!!!

 

I'm nearly there after following the  instructions above which were awesome by the way :D :D

 

Im getting this error now though   'start tag missing where id = 0'

 

 

Here is the scheduler.xml  I left it basically the same as you posted I just changed the restart path

[spoiler]

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<Scheduler>

<job id="0">
<time>023000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 30 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="1">
<time>024500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 15 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="2">
<time>025000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 10 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="3">
<time>025500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 5 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="4">
<time>025700</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 3 Minutes!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="5">
<time>025900</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart in 1 Minute!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="6">
<time>001500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 MESSAGETHATWILLAPEAREVERY15MINUTES</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="8">
<time>001500</time>
<delay>000005</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTESAND5SECONDS</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="9">
<time>001500</time>
<delay>000010</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTESAND10SECONDS</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="10">
<time>020000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server Restart In 1 Hour!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="11">
<time>030000</time>
<delay>000005</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop> 
<cmd>#shutdown</cmd>    
<cmdtype>0</cmdtype>            
</job>   
	
<job id="12">
<time>030000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>C:\Users\Administrator\Documents\new epoch for changing\overpoch_Restart.bat</cmd>
<cmdtype>1</cmdtype>
</job>
</Scheduler>

[/spoiler]

Any ideas on this please

 

 

Cheers

 

Robbie

Link to comment
Share on other sites

  • 0

Hiya, thanks for the help on this, i tried that auto installer ritchie but I couldn't do it!!!

 

I'm nearly there after following the  instructions above which were awesome by the way :D :D

 

Im getting this error now though   'start tag missing where id = 0'

 

 

Here is the scheduler.xml  I left it basically the same as you posted I just changed the restart path

Any ideas on this please

 

 

Cheers

 

Robbie

Looks like they changed BEC up a bit since I've last used it, I just grabbed that example I gave to you from one of my old backups. Try this

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<Scheduler>

	<job id='0'>
		<day>1,2,3,4,5,6,7</day>
		<start>023000</start>
		<runtime>023000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server Restart in 30 Minutes!</cmd>
	</job>

	<job id='1'>
		<day>1,2,3,4,5,6,7</day>
		<start>024500</start>
		<runtime>024500</runtime>
		<loop>0</loop>
		<cmd>say -1 Server Restart in 15 Minutes!</cmd>
	</job>
	
	<job id='2'>
		<day>1,2,3,4,5,6,7</day>
		<start>025000</start>
		<runtime>025000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server Restart in 10 Minutes!</cmd>
	</job>

	<job id='3'>
		<day>1,2,3,4,5,6,7</day>
		<start>025500</start>
		<runtime>025500</runtime>
		<loop>0</loop>
		<cmd>say -1 Server Restart in 5 Minutes!</cmd>
	</job>

	<job id='4'>
		<day>1,2,3,4,5,6,7</day>
		<start>025900</start>
		<runtime>025900</runtime>
		<loop>0</loop>
		<cmd>say -1 Server Restart in 1 Minute!</cmd>
	</job>

	<job id='5'>
		<day>1,2,3,4,5,6,7</day>
		<start>020000</start>
		<runtime>020000</runtime>
		<loop>0</loop>
		<cmd>say -1 Server Restart In 1 Hour!</cmd>
	</job>
	
	<job id='6'>
		<day>1,2,3,4,5,6,7</day>
		<start>030005</start>
		<runtime>030005</runtime>
		<loop>0</loop>
		<cmd>#shutdown</cmd>
	</job>
	
	<job id='7'>
		<day>1,2,3,4,5,6,7</day>
		<start>030000</start>
		<runtime>030000</runtime>
		<loop>0</loop>
		<cmd>C:\Users\Administrator\Documents\new epoch for changing\overpoch_Restart.bat</cmd>
	</job>
	
	<job id='8'>
		<day>1,2,3,4,5,6,7</day>
		<start>001500</start>
		<runtime>001500</runtime>
		<loop>-1</loop>
		<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTES</cmd>
	</job>
	
	<job id='9'>
		<day>1,2,3,4,5,6,7</day>
		<start>001505</start>
		<runtime>001505</runtime>
		<loop>-1</loop>
		<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTESAND5SECONDS</cmd>
	</job>
	
	<job id='10'>
		<day>1,2,3,4,5,6,7</day>
		<start>001510</start>
		<runtime>001510</runtime>
		<loop>-1</loop>
		<cmd>say -1 MESSAGETHATWILLAPPEAREVERY15MINUTESAND10SECONDS</cmd>
	</job>
	
</Scheduler>
Link to comment
Share on other sites

  • 0

Woot, no errors.

 

Many thanks

 

So once this is done I just leave the bec window open and it will do everything  itself?

 

Also does the path in the restart.bat need to be exactly the same as the one that usually starts the server or is the old one useless now?

 

 

 

Many thanks for this

 

 

Robbie 

Link to comment
Share on other sites

  • 0

Woot, no errors.

 

Many thanks

 

So once this is done I just leave the bec window open and it will do everything  itself?

 

Also does the path in the restart.bat need to be exactly the same as the one that usually starts the server or is the old one useless now?

 

 

 

Many thanks for this

 

 

Robbie

Yes this should work by itself. Can you post your old way of launching your server for me? That .bat file example I gave you was also old.

Link to comment
Share on other sites

  • 0

Hi, yeah here it is..I got an error when it restarted 'couldnt find arma2server..blah blah make sure you typed the path correctly

 

Here is the bat file I used before this

@echo off
start "arma2" /min /REALTIME "arma2oaserver.exe" -port=2314 "-config=instance_1_Overpoch\config.cfg" "-cfg=instance_1_Overpoch\basic.cfg" "-profiles=instance_1_Overpoch" -name=instance_1_Overpoch -cpuCount=4 -exThreads=1 -maxmem=2047 -noCB "-mod=@DayZOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;"

The re starter  at the moment says

cd "C:\Users\root\Desktop\Epoch Server"
@start "arma2" /min "arma2oaserver.exe" -port=2314 "-config=instance_1_Overpoch\config.cfg" "-cfg=instance_1_Overpoch\basic.cfg" "-profiles=instance_1_Overpoch" -name=instance_1_Overpoch -world=Chernarus -cpuCount=12 -exThreads=1 -maxmem=2047 "-mod=@DayZOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;"
echo.
ping 127.0.0.1 -n 15 >NUL
echo START BEC
echo.
:: start bec
cd "C:\Users\Administrator\Documents\new epoch for changing\Bec"
start "" "bec.exe" -f Myconfig.cfg 

The messages and warnings and everything else worked though...it just didnt start back up again, nearly there!!

 

 

Many thanks

 

 

 

Robbie

Link to comment
Share on other sites

  • 0

Hi, yeah here it is..I got an error when it restarted 'couldnt find arma2server..blah blah make sure you typed the path correctly

 

Here is the bat file I used before this

@echo off
start "arma2" /min /REALTIME "arma2oaserver.exe" -port=2314 "-config=instance_1_Overpoch\config.cfg" "-cfg=instance_1_Overpoch\basic.cfg" "-profiles=instance_1_Overpoch" -name=instance_1_Overpoch -cpuCount=4 -exThreads=1 -maxmem=2047 -noCB "-mod=@DayZOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;"

The re starter  at the moment says

cd "C:\Users\root\Desktop\Epoch Server"
@start "arma2" /min "arma2oaserver.exe" -port=2314 "-config=instance_1_Overpoch\config.cfg" "-cfg=instance_1_Overpoch\basic.cfg" "-profiles=instance_1_Overpoch" -name=instance_1_Overpoch -world=Chernarus -cpuCount=12 -exThreads=1 -maxmem=2047 "-mod=@DayZOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;"
echo.
ping 127.0.0.1 -n 15 >NUL
echo START BEC
echo.
:: start bec
cd "C:\Users\Administrator\Documents\new epoch for changing\Bec"
start "" "bec.exe" -f Myconfig.cfg 
The messages and warnings and everything else worked though...it just didnt start back up again, nearly there!!

 

 

Many thanks

 

 

 

Robbie

At the top of the restart.bat you need to change the path too,

cd "C:\Users\root\Desktop\Epoch Server"
Link to comment
Share on other sites

  • 0

Hi again, It worked, it restarted, bec closed and opened again....but it said in red cant find the Myconfig.cfg and disappeared   I'm guessing it means the config.cfg file located in C:\Users\Administrator\Documents\new epoch for changing\Bec\Config

 

So if I change the last line in the re starter.bat      from       start "" "bec.exe" -f Myconfig.cfg      to       start "" "bec.exe" -f config.cfg

 

So i just removed the MY, it should work?  Or would I also need to move the config.cfg out of the config folder and into the bec folder?

 

 

Cheers

 

Robbie

Link to comment
Share on other sites

  • 0

Hi again, It worked, it restarted, bec closed and opened again....but it said in red cant find the Myconfig.cfg and disappeared   I'm guessing it means the config.cfg file located in C:\Users\Administrator\Documents\new epoch for changing\Bec\Config

 

So if I change the last line in the re starter.bat      from       start "" "bec.exe" -f Myconfig.cfg      to       start "" "bec.exe" -f config.cfg

 

So i just removed the MY, it should work?

 

 

Cheers

 

Robbie

Yes just change the Myconfig.cfg to whatever config is in the BEC folder

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...