vilayer restart warnings PLEASE HELP!!!

calamity

Well-Known Member
I have added alot of scripts on this new host(vilayer) but I cant get simple restart warnings to show up...
I have server start time set for 12:00 pm
my time zone is set for eastern standard time USA
I have enabled the scheduler

bec_config.cfg

[Misc]


# Set the color,height and with on bec's console window
ConsoleColor = 0f
ConsoleHeight = 30
ConsoleWidth = 100


#AsciiNickOnly = True
#DisallowPlayerNameChars = [](){}<>/\^|§!#%&@£¤¨
#MaxPlayerNameLength = 16
#Warnings = 4
#AsciiChatOnly = True
#IgnoreChatChars = æøå
ChatChannelFiles = true

Scheduler = Scheduler.xml


I have 3 hour restarts and start time noon so warnings should be 2:30,2:55 and 2:59I was told its in hours and not in time like 2:30 is 2.5 hours into game but this should work either way is true
this is what I have in my bec\Config\Scheduler.xml

<?xml version="1.0"?>

<Scheduler>
<!-- 30 minute restart warning. -->

<job id="0">
<time>02:30:00</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>

<!-- 5 minute restart warning. -->
<job id="1">
<time>02:53:00</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>

<!-- 1 minute retart warning. -->
<job id="2">
<time>02:57:00</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>

</Scheduler>


please anyone who knows BEC scheduler
vilayer has not responded to my ticket in 6 dayz
 
andre leave with ur noob server advertisements

@calamity i use the server restart addon right under the thing... its alot easier and less confusing try that
 
Lol okay in your vilayer control panel click on addon manager and then under BEC theres a thing called Server Messages install it and then go to config and theres a file called servermessages\messages.cfg go there... basically just follow the 24 hour clock... see my server restarts every 4 hours so my file looks like this

Code:
15:30:00~ Server Restart in 30 minutes
15:50:00~ Server Restart in 10 minutes
15:55:00~ Server Restart in 5 minutes
19:30:00~ Server Restart in 30 minutes
19:50:00~ Server Restart in 10 minutes
19:55:00~ Server Restart in 5 minutes
23:30:00~ Server Restart in 30 minutes
23:50:00~ Server Restart in 10 minutes
23:55:00~ Server Restart in 5 minutes
03:30:00~ Server Restart in 30 minutes
03:50:00~ Server Restart in 10 minutes
03:55:00~ Server Restart in 5 minutes
07:30:00~ Server Restart in 30 minutes
07:50:00~ Server Restart in 10 minutes
07:55:00~ Server Restart in 5 minutes
11:30:00~ Server Restart in 30 minutes
11:50:00~ Server Restart in 10 minutes
11:55:00~ Server Restart in 5 minutes
 
Lol okay in your vilayer control panel click on addon manager and then under BEC theres a thing called Server Messages install it and then go to config and theres a file called servermessages\messages.cfg go there... basically just follow the 24 hour clock... see my server restarts every 4 hours so my file looks like this

this is GREAT THANKZ soo much .
question my server time starts at noon and restarts at 3 (keeps it always day)
soo would I just do it like this ???? just 2:30,2:55 and 2:59
or would I need to add it at all times like you show yours ??
is this actual time or hours ??

00:30:00~
01:00:00~
01:30:00~
02:00:00~
02:30:00~ Restart in 30 minutes
02:54:00~ Restart in 5 minutes
02:57:00~ Restart in 1 minute
03:00:00~
03:30:00~
04:00:00~
04:30:00~
05:00:00~
05:30:00~
05:45:00~
05:50:00~
05:55:00~
05:59:00~
06:00:00~
06:30:00~
07:00:00~
07:30:00~
08:00:00~
08:30:00~
09:00:00~
09:30:00~
10:00:00~
10:30:00~
11:00:00~
11:30:00~
11:45:00~
11:50:00~
11:55:00~
11:59:00~
12:00:00~
12:30:00~
13:00:00~
13:30:00~
14:00:00~
14:30:00~
14:54:00~
14:55:00~
15:00:00~
15:30:00~
16:00:00~
16:30:00~
17:00:00~
17:30:00~
17:45:00~
17:50:00~
17:55:00~
17:59:00~
18:00:00~
18:30:00~
19:00:00~
19:30:00~
20:00:00~
20:30:00~
21:00:00~
21:30:00~
22:00:00~
22:30:00~
23:00:00~
23:30:00~
23:40:00~
23:45:00~
23:50:00~
23:55:00~
23:59:00~


or like this
14:30:00~ Restart in 30 minutes
14:54:00~ Restart in 5 minutes
14:58:00~ Restart in 1 minute
 
Last edited:
Yess or like that.... i like the server messages better they just seem alot more simple than BEC
 
HI guys im trying to set up the server restart with messages, i have setup the scheduled task and entered the message into the messages.cfg in server messages, I still dont get in game messages. Besides installing the server messages addon in control panel is there something else i need to configure Thanks.
 
You need to have the line in your bec config.cfg uncommented... if it has a # at the beginning of the line its commented out ..
scheduler = scheduler.xml

What I did though was just added a line in my debug monitor at the bottom that has a countdown to restart .. Its not entirely accurate as it seems to lose time with the actual server so when it gets to 15 minutes remaining I have it say "SOON".
 
You need to have the line in your bec config.cfg uncommented... if it has a # at the beginning of the line its commented out ..
scheduler = scheduler.xml

What I did though was just added a line in my debug monitor at the bottom that has a countdown to restart .. Its not entirely accurate as it seems to lose time with the actual server so when it gets to 15 minutes remaining I have it say "SOON".

Thanks for the reply i have both " misc " and " scheduler " uncommented and the server restarts ok as per the vilayer restart schedule but still no messages.
 
try this example scheduler.xml
I dont know if Vilayer is using the current version of BEC or not but a previous version had the example scheduler time incorrect. Try the current version example and see if it works.
BTW, did you check your BEC error log?

lXGLc88.png


bec website http://ibattle.org/install-and-configure/setting-up-the-scheduler/
Code:
<?xml version="1.0"?>

<Scheduler>

   <!-- this job will start after 10 minutes and run forever with a 1 hour and 30 minutes interval between the jobs -->
   <job id='0'>
     <day>1,2,3,4,5,6,7</day>
     <start>001000</start>
     <runtime>013000</runtime>
     <loop>-1</loop>
     <cmd>say -1 job:0 forever</cmd>
   </job>

   <!-- this job will start after 30 seconds and will only run once. note that the runtime tag is ignored when loop is 0 -->
   <job id='1'>
     <day>1,2,3,4,5,6,7</day>
     <start>000030</start>
     <runtime>000000</runtime>
     <loop>0</loop>
     <cmd>say -1 job:1 once</cmd>
   </job>
   
   <!-- this job will start after 15 seconds and will run every 25 sec. total times the message will be show is 6 times -->
   <job id='2'>
     <day>1,2,3,4,5,6,7</day>
     <start>000015</start>
     <runtime>000025</runtime>
     <loop>5</loop>
     <cmd>say -1 job:2 six times</cmd>
   </job>

   
   <!-- this job will start at 06:00:00 (6 am) and will only run once a day at set time -->
   <job id='3'>
     <day>1,2,3,4,5,6,7</day>
     <start>06:00:00</start>
     <runtime>000000</runtime>
     <loop>0</loop>
     <cmd>say -1 job:3 once</cmd>
   </job>

   <!-- this job will start at 07:00:00 (7 am) and will repeat itself every 20 min for 3 more time. in total 4 times. will run at set time for defined days -->
   <job id='4'>
     <day>1,2,3,4,5,6,7</day>
     <start>07:00:00</start>
     <runtime>002000</runtime>
     <loop>3</loop>
     <cmd>say -1 job:4 four times</cmd>
   </job>

   <!-- this job will start at 08:00:00 (8 am) and will repeat itself every 15 min forever for defined days -->
   <job id='5'>
     <day>1,2,3,4,5,6,7</day>
     <start>08:00:00</start>
     <runtime>001500</runtime>
     <loop>-1</loop>
     <cmd>say -1 job:5 forever</cmd>
   </job>
   
</Scheduler>
 
Feel free to pinch mine.

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

<Scheduler>

    <job id="0">
        <time>003000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Hi.</cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="1">
        <time>004132</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Want some donator perks visit armageddongaming.co and go to the forums for more details. </cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="2">
        <time>023000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server restarts in 30 minutes </cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="3">
        <time>024500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server restarts in 15 minutes </cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="4">
        <time>025000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server restarts in 10 minutes </cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="5">
        <time>025500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server restarts in 5 minutes </cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="6">
        <time>025900</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server restarts in 1 minute </cmd>   
        <cmdtype>0</cmdtype>
    </job>

</Scheduler>
 
The example i posted from the BEC website and yours have different time formats which is what I had experienced before. So it depends on which version of the BEC is being used I guess. I haven't used BEC in a year or so but should setup and test the current release.

Trail and Error is your friend
 
OK this is finally solved!
It might be handy for anybody else who needs to schedule a restart on vilayer dedicated servers. According to there support this is how a 3 hourly restart should look,

<?xml version="1.0"?>

<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 restarts in 30 minutes </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 Server restarts in 10 minutes </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 Server restarts in 5 minutes </cmd>
<cmdtype>0</cmdtype>
</job>
 
Last edited:
So they are using the old BEC version. Same as alexlawson posted. Thats the scheduler.xml that I had used also in the past.
Keep in mind then that this probably wont work on a local server, dedicated server, vps because most likely those users would have downloaded the latest version which uses a different time structure.

The best way to restart your server also .. to make sure its in sync with the real restart time ... is your Job ID 3 will be a #shutdown command. That will stop the server and then the vilayer scripts will automatically restart it (at least on all the other hosts I have used it did). The reason is that as time goes by, the 'server time' is not totally in sync with the servers real time that your control panel restart is working on. So you might get your 15 minute warning only to notice it restarting 2 minutes later or 20 minutes later instead of the actual 15.
 
Vilayer use a different method, you have to schedule a restart separate, on there YouTube channel they made a video explaining how all this is done and a few other things within there CP.
 
Back
Top