Jump to content
  • 0

I know people have already asked this... but having a problem with BEC on Dedicated Server!


Friendly

Question

Ok I am a noob to dedicated servers but we recently have our server setup and everything is working except bec. It just has problems running bec on restart and just runs the server... anyone have a better .bat than my current ones which are:

 

NapfStartServer.bat

set serverkill="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd /d %serverkill%
taskkill /im arma2oaserver.exe
echo.
echo Kill Bec.exe
set beckill="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\BEC\Napf"
cd /d %beckill%
taskkill /im bec.exe
 
timeout 10
 
echo.
echo Restarting
:: start bec
set becpath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\BEC\Napf"
cd /d %becpath%
start "Bec" "bec.exe" -f Config.cfg
echo.
echo Server Started 100%

timeout 10

:: start Server
set armapath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd /d %armapath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_24_Napf\config.cfg" "-cfg=instance_24_Napf\basic.cfg" "-profiles=instance_24_Napf" -name=instance_24_Napf "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;" "-BEpath=C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\BattlEye"
echo.
echo Server Started 100%
 
cls
@exit

Scheduler:

<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<!-- Written by www.postapocalypse.us -->
<Scheduler>

    <!-- Restart (Every 4 hours) -->
	
	<job id="1">
	<time>033000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 30 MINUTE!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="2">
	<time>035000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 10 MINUTE!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="3">
	<time>035500</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTE! UNTOW ALL VEHICLES!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="4">
	<time>035900</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE! GET TO A SAFE PLACE!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="4">
	<time>035930</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS! PLEASE LOG OFF!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="5">
        <time>040000</time>
		<delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>#shutdown</cmd>
        <cmdtype>0</cmdtype>     
    </job> 
	
   <job id="6">
        <time>040000</time>
		<delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\NapfStartServer.bat</cmd>
        <cmdtype>1</cmdtype>     
    </job>
	
   <job id="7">
       <time>001000</time>
       <delay>000010</delay>
       <day>1,2,3,4,5,6,7</day>
       <loop>1</loop> 
       <cmd>say -1 *** Welcome to Post Apocalypse Epoch Napf Server *** Vehicles left in traders will unlock on restart *** Base Maitenance is required once every 14 days *** Do not build in high populated areas like barracks/atc/hangers etc *** Press P and click your name to check your bandwith! If you Bandwith is below 100 you will be banned so log out to lobby to fix it! ***</cmd>    
       <cmdtype>0</cmdtype> 
   </job>
	
</Scheduler>
Link to comment
Share on other sites

20 answers to this question

Recommended Posts

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


<Scheduler>

	<!-- Schedular to be shown all days in the week. -->
	<!-- show text ingame every 20 sec with loop enabled -->
	
	<!-- START 6:17pm RESTART BLOCK -->
	
	<job id="0">
		<time>17:17:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Hour</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="1">
		<time>17:47:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 30 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="2">
		<time>18:07:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 10 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="3">
		<time>18:12:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 5 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="4">
		<time>18:16:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Minute</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- END 6:17pm RESTART BLOCK -->
	
	
	
	<!-- START 10:17pm RESTART BLOCK -->
	
	<job id="5">
		<time>21:17:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Hour</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="6">
		<time>21:47:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 30 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="7">
		<time>22:07:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 10 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="8">
		<time>22:12:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 5 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="9">
		<time>22:16:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Minute</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- END 10:17pm RESTART BLOCK -->
	
	<!-- START 2:17am RESTART BLOCK -->
	
	<job id="10">
		<time>01:17:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Hour</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="11">
		<time>01:47:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 30 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="12">
		<time>02:07:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 10 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="13">
		<time>02:12:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 5 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="14">
		<time>02:16:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Minute</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- END 2:17am RESTART BLOCK -->
	
	<!-- START 6:17am RESTART BLOCK -->
	
	<job id="15">
		<time>05:17:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Hour</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="16">
		<time>05:47:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 30 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="17">
		<time>06:07:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 10 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="18">
		<time>06:12:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 5 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="19">
		<time>06:16:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Minute</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- END 6:17am RESTART BLOCK -->
	
	<!-- START 10:17pm RESTART BLOCK -->
	
	<job id="20">
		<time>09:17:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Hour</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="21">
		<time>09:47:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 30 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="22">
		<time>10:07:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 10 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="23">
		<time>10:12:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 5 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="24">
		<time>10:16:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Minute</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- END 10:17pm RESTART BLOCK -->
	
	<!-- START 2:17pm RESTART BLOCK -->
	
	<job id="25">
		<time>13:17:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Hour</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="26">
		<time>13:47:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 30 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="27">
		<time>14:07:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 10 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="28">
		<time>14:12:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 5 Minutes</cmd>	
		<cmdtype>0</cmdtype>
	</job>

	<job id="29">
		<time>14:16:00</time>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This Server Will Restart in 1 Minute</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- END 2:17pm RESTART BLOCK -->
	
	
	
</Scheduler>

out of curiosity, why doesn't this one work?

Link to comment
Share on other sites

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


<Scheduler>

...  (Edited for Post Length) ....
	
	
	
</Scheduler>

out of curiosity, why doesn't this one work?

 

 

First for the obvious - it don't have a restart command, so it is only used for warnings.

 

Second is that you are using <loop>1</loop> for jobs that have a specific time set.

If you are using time as a factor from when BEC started (<time>000130</time> = after 1min 30 sec), then you can use the loop. 

You are using time as a factor from server clock (<time>00:01:30</time> = at 1 min 30 sec after midnight), then loop is irrelevant.

 

 

Also, as a suggestion, set the time for the jobs in sequence from lowest hour to highest. The job that matches the time will still be the one that is shown, but it will be easier for you to edit the specific time of the day, instead of having to remember that you wrap around the day in the middle of the script.

Link to comment
Share on other sites

  • 0

yea they're just for warnings, the server uses some other function (i honestly dont know what it's just a control panel tool) for the actual restarts. But wouldn't these messages still display?

The restarts are every 4 hours but they're set to a server time restart, so for example it restarts at 6:17 EST and again at 10:17 EST etc etc. It doesn't matter if I manually restart the server at 6:00 EST it will still do the scheduled restart at 6:17 EST

Link to comment
Share on other sites

  • 0

yea they're just for warnings, the server uses some other function (i honestly dont know what it's just a control panel tool) for the actual restarts. But wouldn't these messages still display?

The restarts are every 4 hours but they're set to a server time restart, so for example it restarts at 6:17 EST and again at 10:17 EST etc etc. It doesn't matter if I manually restart the server at 6:00 EST it will still do the scheduled restart at 6:17 EST

 

You are using Scheduled Task in your control panel - that explains it.

 

The XML gets confused that you want to loop something that is set on a static time with clearly defined days. According to the time rules, there is no way to loop it until it hits the same time again, and thus gives up on you. Change it to "0" in hte loop and it should work.

 

Note that you can use both types of times in the script, if you want looped text stating rules or the likes....

 

My example 4 hour restart script, with server shutdown commands and 4 rotating texts defined in the beginning:

 

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<!-- 
This file is only provided as an example file and is not practical to use in real life.
Make sure you take a copy of this file rename it and keep the orginale intact for orginale refrance.
And Start using your new file Now!!

Web Doc : http://www.ibattle.org/install-and-configure/setting-up-the-scheduler/

BE Commands supported by the scheduler system are:
say -1 some text
loadbans
loadscripts
loadevents
writebans
maxping 500
#shutdown
#restart
#reassign
#lock
#unlock
#mission filename (without the .pbo extension)


*****************************************************************************************************
Description:
*****************************************************************************************************

Schedules are createad by adding a job with id.
The first schedule should always start with id="0"

<Scheduler>
	<job id="0">
		<time></time>
		<delay></delay>
		<day></day>
		<loop></loop>
		<cmd></cmd>
		<cmdtype></cmdtype>
	</job>
	<job id="1">
		<time></time>
		<delay></delay>
		<day></day>
		<loop></loop>
		<cmd></cmd>
		<cmdtype></cmdtype>
	</job>
</Scheduler>	

The job tag has 6 sub tags.
starting with:


<time>......</time> 
This tag may have one of tow input format.

Format 1:
Contains 3 segments where each segment is a size of 2 in range of 00 - 99
Hour Min  Sec
[nn] [nn] [nn]
nnnnnn
Max value is 999999

<time>000090</time>
This will make the schedule execute 90 secounds after bec has started up.
Note that:

<time>000130</time>
Will also make the schedule execute 90 secounds after bec has started up.
as 90 sec is the same as 1 min and 30 sec

 
Format 2:
Contains 2 segments where each segment is a size of 2 in range of 00 - (23&59) and each segment is seperated by ':'

Hour   Min    Sec
[nn] : [nn] : [nn]

<time>23:05:30</time>
This will make the schedule execute precice at 23:05:30

To execute a schedule at midnight use:
<time>00:00:00</time>

To execute a schedule at noon use:
<time>12:00:00</time>


<delay>....../delay>
This tag uses the same format as the <time> tag format 1, it also only work when the <time> tag format is 1!
<delay>nnnnnn</delay>


<day>.../day>

The day of the week the schedule should run on.
Days are seperated by ',' 
<day>n</day> or <day>n,n+</day>

Monday starts with 1!

All days
<day>1,2,3,4,5,6,7</day>

Monday and Friday only.
<day>1,5</day>


Set if the command is to loop or not..
<loop>1</loop> 

Set the command that is to be executed.
<cmd>loadscripts</cmd>

Set 0 if its a internal command and 1 if its a external *.bat or *.cmd script.
<cmdtype>0</cmdtype>

-->


<Scheduler>

<!-- Schedular to be shown all days in the week. -->
	<!-- show text ingame every 15 min -->
	<job id="0">
		<time>001500</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This text Appears Looped Every 15 Min.</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	<!-- show text ingame every 17min 30 sec  min -->
	<job id="1">
		<time>001730</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This text Appears Looped Every 17m30s.</cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<!-- show text ingame every 20 min -->
	<job id="2">
		<time>002000</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This text Appears Looped Every 20 Min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- show text ingame every 25 min -->
	<job id="3">
		<time>002500</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 This text Appears Looped Every 15 Min .</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- *** RESTARTS *** -->
		<!-- 30 min to the 04:00 restart -->
	<job id="4">
		<time>03:30: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 30 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 15 min to the 04:00 restart -->
	<job id="5">
		<time>03:45: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 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 5 min to the 04:00 restart -->
	<job id="6">
		<time>03: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. No further warnings will be given.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	<!-- 04:00 restart -->
	<job id="7">
		<time>04:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 30 min to the 08:00 restart -->
	<job id="8">
		<time>07:30: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 30 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 15 min to the 08:00 restart -->
	<job id="9">
		<time>07:45: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 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 5 min to the 08:00 restart -->
	<job id="10">
		<time>07: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. No further warnings will be given.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	<!-- 08:00 restart -->
	<job id="11">
		<time>08:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>	
	
		<!-- 30 min to the 12:00 restart -->
	<job id="12">
		<time>11:30: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 30 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 15 min to the 12:00 restart -->
	<job id="13">
		<time>11:45: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 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 5 min to the 12:00 restart -->
	<job id="14">
		<time>11: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. No further warnings will be given.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	<!-- 12:00 restart -->
	<job id="15">
		<time>12:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>		

		<!-- 30 min to the 16:00 restart -->
	<job id="16">
		<time>15:30: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 30 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
		<!-- 15 min to the 16:00 restart -->
	<job id="17">
		<time>15:45: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 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
		<!-- 5 min to the 16:00 restart -->
	<job id="18">
		<time>15: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. No further warnings will be given.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	    <!-- 16:00 restart -->
	<job id="19">
		<time>16:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>		

		<!-- 30 min to the 20:00 restart -->
	<job id="20">
		<time>19:30: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 30 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 15 min to the 20:00 restart -->
	<job id="21">
		<time>19:45: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 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 5 min to the 20:00 restart -->
	<job id="22">
		<time>19: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. No further warnings will be given.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

	    <!-- 20:00 restart -->
	<job id="23">
		<time>20:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>		

		<!-- 30 min to the 24:00 restart -->
	<job id="24">
		<time>23:30: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 30 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>

		<!-- 15 min to the 24:00 restart -->
	<job id="25">
		<time>23:45: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 15 min.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
		<!-- 5 min to the 24:00 restart -->
	<job id="26">

		<time>23: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. No further warnings will be given.</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	    <!-- 24:00 restart -->
	<job id="27">

		<time>23:59:59</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>	
	
	
</Scheduler>

 

Link to comment
Share on other sites

  • 0

AStartServer.bat

@echo off
echo.
echo KILL servers
set serverkill="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\beta"
cd /d %serverkill%
taskkill /im arma2oaserver.exe
echo.
echo Kill Bec.exe
set beckill="C:\BEC\Napf"
cd /d %beckill%
taskkill /im bec.exe
 
timeout 10
 
echo.
echo Restarting
:: start the servers..
set armapath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\"
cd /d %armapath%
start "" "C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_24_Napf\config.cfg" "-cfg=instance_24_Napf\basic.cfg" "-profiles=instance_24_Napf" -name=instance_24_Napf "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;" -cpuCount=4 -exThreads=1 -maxmem=2047 -noCB "-BEpath=C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\BattlEye"
echo.
echo Starting Bec
timeout 10
:: start bec
set becpath="C:\BEC\Napf"
cd /d %becpath%
start "" "bec.exe" -f napfconfig.cfg
echo.
echo Server Started 100%
 
cls
@exit

Scheduler.xml

<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<!-- Written by www.postapocalypse.us -->
<Scheduler>

    <!-- Restart (Every 4 hours) -->
	
	<job id="0">
	<time>023000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 30 MINUTE!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="1">
	<time>025000</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 10 MINUTE!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="2">
	<time>025500</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTE! UNTOW ALL VEHICLES!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="3">
	<time>025900</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE! GET TO A SAFE PLACE!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="4">
	<time>025930</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>1</loop> 
	<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS! PLEASE LOG OFF!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="5">
        <time>030000</time>
		<delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>#shutdown</cmd>
        <cmdtype>0</cmdtype>     
    </job> 
	
   <job id="6">
        <time>030000</time>
		<delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\AStartServer.bat</cmd>
        <cmdtype>1</cmdtype>     
    </job>
	
   <job id="7">
       <time>001300</time>
       <delay>000010</delay>
       <day>1,2,3,4,5,6,7</day>
       <loop>1</loop> 
       <cmd>say -1 *** Welcome to Post Apocalypse Epoch Server *** Vehicles left in traders will unlock on restart *** Base Maitenance is required once every 14 days *** Do not build in high populated areas like barracks/atc/hangers etc *** Press P and click your name to check your bandwith! If you Bandwith is below 100 you will be banned so log out to lobby to fix it! ***</cmd>    
       <cmdtype>0</cmdtype> 
   </job>
	
</Scheduler>
Link to comment
Share on other sites

  • 0

my msg send and the server restarts but bec doesn't always start back up. Let me post my updated startup.bat and scheduler! Hope you guys can figure this out with me.

 

Try longer timeout after shutdown. It sometimes takes a while until it actually closes. I would use at least 20 seconds.

Link to comment
Share on other sites

  • 0

The first job in your scheduler have to always be "0".

 

Update <job id="1"> to <job id="0"> and all the following ones to be sequential to it and you should see it start sending messages.

 

this isnt exactly true as you can comment out one or more job(s) in between jobs and it will just jump to next job in sequence (ex job nr are 5,6,7 where 5 will just jump to 7 in case there is no 6) ... starting number shouldnt be an issue either as long as they are sequential ...

 

but thanks for clarifying with the loop 1 vs 0 ... i had been wondering for a while what that did, just never had time to investigate it further.

my understanding was it switched automaticly when you put the ":" in between the numbers, but this obviusly makes more sence

Link to comment
Share on other sites

  • 0

I had issues with the BEC Config.cfg not working for some strange reason. I then renamed it. This then worked :/

Scheduler on 3 hour restarts.

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

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

	<job id="1">
		<time>025500</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Restart in 5 minutes! </cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<job id="2">
		<time>025900</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Restart in 1 minute! </cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<job id="3">
		<time>025955</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>c:\Epoch\serverstart.bat</cmd>	
		<cmdtype>1</cmdtype>
	</job>
	
	<job id="4">
		<time>030000</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>	
		<cmdtype>0</cmdtype>
	</job>
</Scheduler>

Startserver.bat
 

timeout 5

@echo off

echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Epoch"
cd %dayzpath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-world=Chernarus" "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"start "DayZ" "DayZ_Epoch_instance_11_Chernarus.bat"

timeout 40

echo

echo Starting Bec
:: start bec
set becpath="C:\Epoch_Tools\Bec"
cd /d %becpath%
start "Bec" "bec.exe" -f myserver.cfg
timeout 20
echo.
echo Server Started 100%
cls
@exit

 

Link to comment
Share on other sites

  • 0

Ok - just to be sure, is this still an active issue? 

 

Is anyone needing more bec help? 

 

 

 

this isnt exactly true as you can comment out one or more job(s) in between jobs and it will just jump to next job in sequence (ex job nr are 5,6,7 where 5 will just jump to 7 in case there is no 6) ... starting number shouldnt be an issue either as long as they are sequential ...

 

but thanks for clarifying with the loop 1 vs 0 ... i had been wondering for a while what that did, just never had time to investigate it further.

my understanding was it switched automaticly when you put the ":" in between the numbers, but this obviusly makes more sence

 

Technically, what you do when you comment out a job, is simply telling the XML that the sequence is (from lowest) 5 and then 7.  The important part here is that it will not break when you go from a lower job id to a higher, thats absolutely true. 

I have never seen a scheduler.xml that worked when starting on a Job id=1. To my understanding, and from the documentation, XML expects it to be a 0, as it is the first number in it's book. Whatever you put after that might be up to you. 

I am curious though and will try that out... see if I can make it start on a non-zero. :) 

Link to comment
Share on other sites

  • 0

 

I had issues with the BEC Config.cfg not working for some strange reason. I then renamed it. This then worked :/

Scheduler on 3 hour restarts.

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

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

	<job id="1">
		<time>025500</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Restart in 5 minutes! </cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<job id="2">
		<time>025900</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 Restart in 1 minute! </cmd>	
		<cmdtype>0</cmdtype>
	</job>
	
	<job id="3">
		<time>025955</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>c:\Epoch\serverstart.bat</cmd>	
		<cmdtype>1</cmdtype>
	</job>
	
	<job id="4">
		<time>030000</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>	
		<cmdtype>0</cmdtype>
	</job>
</Scheduler>

Startserver.bat

 

timeout 5

@echo off

echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Epoch"
cd %dayzpath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-world=Chernarus" "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"start "DayZ" "DayZ_Epoch_instance_11_Chernarus.bat"

timeout 40

echo

echo Starting Bec
:: start bec
set becpath="C:\Epoch_Tools\Bec"
cd /d %becpath%
start "Bec" "bec.exe" -f myserver.cfg
timeout 20
echo.
echo Server Started 100%
cls
@exit

Still not working

Link to comment
Share on other sites

  • 0

Latest Scheduler and it starts the server but not bec.

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

<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 AUTO SERVER RESTART IN 30 MINUTE!</cmd>    
		<cmdtype>0</cmdtype>            
    </job>
	
	<job id="1">
		<time>025000</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 10 MINUTE!</cmd>    
		<cmdtype>0</cmdtype>            
    </job>
	
    <job id="2">
		<time>025500</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>1</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTE! UNTOW ALL VEHICLES!</cmd>    
		<cmdtype>0</cmdtype>            
    </job>
	
    <job id="3">
		<time>025900</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day> 
		<loop>1</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE! GET TO A SAFE PLACE!</cmd>    
		<cmdtype>0</cmdtype>            
    </job>
	
	<job id="4">
		<time>025930</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day> 
		<loop>1</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS! PLEASE LOG OFF!</cmd>    
		<cmdtype>0</cmdtype>            
    </job>
	
    <job id="5">
        <time>025955</time>
		<delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>C:\BEC\Napf\AStartServer.bat</cmd>
        <cmdtype>1</cmdtype>     
    </job>
	
	<job id="6">
        <time>030000</time>
		<delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>#shutdown</cmd>
        <cmdtype>0</cmdtype>     
    </job> 
	
    <job id="7">
        <time>001300</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop> 
        <cmd>say -1 *** Welcome to Post Apocalypse Epoch Server *** Vehicles left in traders will unlock on restart *** Base Maitenance is required once every 14 days *** Do not build in high populated areas like barracks/atc/hangers etc *** Press P and click your name to check your bandwith! If you Bandwith is below 100 you will be banned so log out to lobby to fix it! ***</cmd>    
        <cmdtype>0</cmdtype> 
    </job>
</Scheduler>

AStartServer.bat

timeout 5
 
@echo off
 
echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd %dayzpath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_24_Napf\config.cfg" "-cfg=instance_24_Napf\basic.cfg" "-profiles=instance_24_Napf" -name=instance_24_Napf "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;" -cpuCount=4 -exThreads=1 -maxmem=2047 -noCB "-BEpath=C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\BattlEye" "DayZ_Epoch_instance_24_Napf.bat"

timeout 40
 
echo
 
echo Starting Bec
:: start bec
set becpath="C:\BEC\Napf"
cd /d %becpath%
start "Bec" "bec.exe" -f napfconfig.cfg
timeout 20
echo.
echo Server Started 100%
cls
@exit
Link to comment
Share on other sites

  • 0

Remove the loop in your Scheduler
 

 <loop>1</loop>

Should be
 

 <loop>0</loop>

As you only want to do it once.


Try this (I hope your paths are correct?)
Startserver.bat

timeout 5
 
@echo off
 
echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd %dayzpath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_24_Napf\config.cfg" "-cfg=instance_24_Napf\basic.cfg" "-profiles=instance_24_Napf" -name=instance_24_Napf "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;" -cpuCount=4 -exThreads=1 -maxmem=2047 -noCB "-BEpath=C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\BattlEye"

timeout 40
 
echo
 
echo Starting Bec
:: start bec
set becpath="C:\BEC\Napf"
cd /d %becpath%
start "Bec" "bec.exe" -f napfconfig.cfg
timeout 20
echo.
echo Server Started 100%
cls
@exit
Link to comment
Share on other sites

  • 0

 

Remove the loop in your Scheduler

 

 <loop>1</loop>

Should be

 

 <loop>0</loop>

As you only want to do it once.

Try this (I hope your paths are correct?)

Startserver.bat

timeout 5
 
@echo off
 
echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd %dayzpath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_24_Napf\config.cfg" "-cfg=instance_24_Napf\basic.cfg" "-profiles=instance_24_Napf" -name=instance_24_Napf "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;" -cpuCount=4 -exThreads=1 -maxmem=2047 -noCB "-BEpath=C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\BattlEye"

timeout 40
 
echo
 
echo Starting Bec
:: start bec
set becpath="C:\BEC\Napf"
cd /d %becpath%
start "Bec" "bec.exe" -f napfconfig.cfg
timeout 20
echo.
echo Server Started 100%
cls
@exit

Still nothing, when I run the startup.bat everything works it starts bec and server runs perfect but when it trys to stop the server itself and start everything back up itself the bec doesn't start up.

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...