Jump to content
  • 0

Help with restart warnings


Skyler95

Question

Wondering if someone can help me out here, I have restarts working on my server every 4 hours but I noticed there is no warning. How would I go about adding a warning 10 mins, 5 mins, and 2 mins before the restart? Here is my current code in the scheduler.xml if you could please point me in the right direction or modify this code and repost it up here I would appreciate it.

 

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

<!-- 
-->


<Scheduler>
<!-- Server MSGs -->
<job id='0'>
<day>1,2,3,4,5,6,7</day>
<start>000100</start>
<runtime>000100</runtime>
<loop>-1</loop>
<cmd>say -1 Server has Changed IP: 198.154.118.45:2302 Server has been updated.  </cmd>
</job>
<!-- Server MSGs END -->
</Scheduler>

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Basically like giving out a normally BE message (atleast thats what i do)

 

Quote

    <job id='13'>
        <day>1,2,3,4,5,6,7</day>
        <start>01:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 15 minutes!</cmd>
    </job>
    
    <job id='14'>
        <day>1,2,3,4,5,6,7</day>
        <start>01:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 10 minutes!</cmd>
    </job>
    
    <job id='15'>
        <day>1,2,3,4,5,6,7</day>
        <start>01:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 [Server Locked] Server Restart in 5 minutes! Log out now to avoid gear loss!</cmd>
    </job>
    
    <job id='16'>
        <day>1,2,3,4,5,6,7</day>
        <start>01:59:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 1 minute! Log out now or you will have problems!</cmd>
    </job>

 

Link to comment
Share on other sites

  • 0

here is my working 4hr restart with warnings

<?xml version="1.0"?>

<Scheduler>

    <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler -->

    <!-- Restart Messages -->
    <job id="0">
        <time>033000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 30 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>    
    
    <job id="1">
        <time>034500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 15 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>    
    
    <job id="2">
        <time>035000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 10 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
    
    <job id="3">
        <time>035500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 5 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
   
    <job id="4">
        <time>035900</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 60 seconds, logout to avoid gear loss</cmd>    
        <cmdtype>0</cmdtype>            
    </job>  

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

 <!-- run every 1h with a 5min delay on startup -->
    <job id="7">
        <time>010000</time>
        <delay>000500</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ServerIP: 0.0.0.0 | Website: .net.com.whatever | Teamspeak: 0.0.0.0 </cmd>    
        <cmdtype>0</cmdtype>            
    </job>
<!-- Message Every 30min on Loop -->
    <job id="8">
        <time>001800</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Overpoch Cherno 4 Hour Restarts</cmd>    
        <cmdtype>0</cmdtype>            
    </job>    
<!-- RESTART SERVER -->
    <job id="9">
        <time>040000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#shutdown</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
</Scheduler>

i Have been told <cmdtype> is not used anymore but im to lazy to clean my Scheduler file up lol if it aint broke why try fix it lol

Link to comment
Share on other sites

  • 0
On 4/6/2016 at 7:05 PM, Tech_Support said:

here is my working 4hr restart with warnings

 

  Hide contents

 

<?xml version="1.0"?>

<Scheduler>

    <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler -->

    <!-- Restart Messages -->
    <job id="0">
        <time>033000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 30 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>    
    
    <job id="1">
        <time>034500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 15 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>    
    
    <job id="2">
        <time>035000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 10 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
    
    <job id="3">
        <time>035500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 5 minutes</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
   
    <job id="4">
        <time>035900</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 Server Restart in 60 seconds, logout to avoid gear loss</cmd>    
        <cmdtype>0</cmdtype>            
    </job>  

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

 <!-- run every 1h with a 5min delay on startup -->
    <job id="7">
        <time>010000</time>
        <delay>000500</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ServerIP: 0.0.0.0 | Website: .net.com.whatever | Teamspeak: 0.0.0.0 </cmd>    
        <cmdtype>0</cmdtype>            
    </job>
<!-- Message Every 30min on Loop -->
    <job id="8">
        <time>001800</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Overpoch Cherno 4 Hour Restarts</cmd>    
        <cmdtype>0</cmdtype>            
    </job>    
<!-- RESTART SERVER -->
    <job id="9">
        <time>040000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#shutdown</cmd>    
        <cmdtype>0</cmdtype>            
    </job>
</Scheduler>

 

i Have been told <cmdtype> is not used anymore but im to lazy to clean my Scheduler file up lol if it aint broke why try fix it lol

 

Thanks for posting that but I still can't get restarts working it's like the file isn't even being called. I have BEC setup config file all configured etc but it just isn't working.

 

Also when I set my time to static in the hiveini does that time remain the same through the course of the server or does it still actually progress in time. I know on a restart it starts back at the time value set but I'm trying to get 3 hour days 1 hour nights.

Link to comment
Share on other sites

  • 0

Check your Bec Config make sure BePath is correct

This is my Config

[Bec]
IP = your server ip
Port = your server port
BePath = D:\Servers\Arma2OverpochServer\instance_11_Chernarus\BattlEye\
Admins = Admins.xml
Commands = Commands.xml
[Misc]
Ban = 3
ConsoleHeight    = 30
ConsoleWidth    = 60
Scheduler = Scheduler.xml
KickLobbyIdlers    = 400
ChatChannelFiles = True
Timeout = 60
[Reporter]
#User = alfred
#Password = 123456

PM me if you need more help.

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
  • Discord

×
×
  • Create New...