[COI]Naaaath

BEC Schedule

21 posts in this topic

Hello,

I am just wondering if anyone has a schedule already pre-configured for a 3 hour restart, I don't mind making my own but it will save me a little time because i'm not that familiar with BEC yet. If anyone has one I will be forever greatful! :)

Share this post


Link to post
Share on other sites
Advertisement

Ok I've put one together but it doesn't seem to be posting the messages in game?

Show us your Scheduler.xml file in a spoiler please.

Share this post


Link to post
Share on other sites

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

    <!-- this job will start after 2 minutes and run forever with a 15 minutes interval between the jobs -->
    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>001000</start>
        <runtime>003000</runtime>
        <loop>10</loop>
        <cmd>say -1 This server auto restarts every 3 hours - http://coi-gaming.co.uk</cmd>
    </job>
    <job id="1">
        <day>1,2,3,4,5,6,7</day>
        <start>001100</start>
        <runtime>001100</runtime>
        <loop>1</loop>
        <cmd>loadbans</cmd>
    </job>
    <job id="2">
        <day>1,2,3,4,5,6,7</day>
        <start>002000</start>
        <runtime>001000</runtime>
        <loop>10</loop>
        <cmd>say -1 Need more information, open your map and click on the Menu Items</cmd>
    </job>
    <job id="3">
        <day>1,2,3,4,5,6,7</day>
        <start>001100</start>
        <runtime>001100</runtime>
        <loop>100</loop>
        <cmd>uptime</cmd>
    </job>
    <job id="4">
        <day>1,2,3,4,5,6,7</day>
        <start>001200</start>
        <runtime>001200</runtime>
        <loop>10</loop>
        <cmd>say -1 Need Assistance join our Teamspeak 31.3.245.186</cmd>
        </job>
        <job id="5">
        <day>1,2,3,4,5,6,7</day>
        <start>001300</start>
        <runtime>001300</runtime>
        <loop>10</loop>
        <cmd>say -1 No Base Building within 500 meters of Military Bases</cmd>
    </job>
    <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>001000</start>
        <runtime>003000</runtime>
        <loop>10</loop>
        <cmd>say -Vehicles Left in Safe Zones will be deleted if left unattended for long period of times.</cmd>
    </job>
    <!-- 12:00 restart -->
    <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:30:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server will auto restart in 30 minutes.</cmd>
    </job>
    <job id='8'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:45:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server will auto restart in 15 minutes.</cmd>
    </job>
    <job id='9'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:50:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server will auto restart in 10 minutes.</cmd>
    </job>
    <job id='10'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:55:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server will auto restart in 5 minutes. It's a good idea to logout now to prevent any items being lost on restart.</cmd>
    </job>
    <job id='11'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:58:00</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server will auto restart in 2 minutes. You should be logged out by now!</cmd>
    </job>
    <job id='12'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:59:59</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server will auto restart in 60 Seconds.</cmd>
    </job>
    <job id='13'>
        <day>1,2,3,4,5,6,7</day>
        <start>11:59:59</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 The server is now restarting!</cmd>

Also what do I put in my .bat startup so when my server closes it reopens BEC because that seems to be closing once the server turns off.

Edited by [COI]Naaaath

Share this post


Link to post
Share on other sites

Hidden Content

Also what do I put in my .bat startup so when my server closes it reopens BEC because that seems to be closing once the server turns off.

Well your file is very incorrect, do not use " but ', there is a few mistakes here and there. 

As for the .bat file, you can find plenty of examples on the forum :)

Share this post


Link to post
Share on other sites

Well your file is very incorrect, do not use " but ', there is a few mistakes here and there. 

As for the .bat file, you can find plenty of examples on the forum :)

Okidokie, I literally just copied and pasted this schedule from someone ;) they made the mistakes haha, thanks for pointing it out.

Share this post


Link to post
Share on other sites

<?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>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 30 minutes</cmd>
    </job>

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

    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>025400</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd> 
    </job>

    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>025500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 5 minutes | LOG OUT NOW TO AVOID GEAR LOSS</cmd>
    </job>    
    
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>025900</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 1 minute</cmd>
    </job>
</Scheduler>

Share this post


Link to post
Share on other sites

Well your file is very incorrect, do not use " but ', there is a few mistakes here and there. 

As for the .bat file, you can find plenty of examples on the forum :)

it didn't work overnight, I've always had problems at night. I also added another job to #shutdown at 25999, is that correct?

 

Edit: I've gone with Windows Task Scheduler, every 3 hours it will kill the server and then restart the server.

Edited by [COI]Naaaath

Share this post


Link to post
Share on other sites
 

 

Hidden Content

 

I understand it but for some reason it doesn't seem to be working, I might need to restart my box so the hosts file updates and BEC ignores the updates.

 

BEC connects and logs in but it doesn't send any messages

 

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

<Scheduler>


    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>001000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 This server restarts every 3 hours - http://coi-gaming.co.uk</cmd>
    </job>

    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>023000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 30 minutes</cmd>
    </job>

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

    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>025400</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#lock</cmd>
    </job>

    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>025500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 5 minutes | LOG OUT NOW TO AVOID GEAR LOSS</cmd>
    </job>    
    
    <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>025900</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Server will restart in 1 minute</cmd>
    </job>
    
    <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>025999</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>#shutdown</cmd>
    </job>
    
    
    
    
</Scheduler>

I've tried a combination of using "0" and '0' , still nothing.

 

I've fixed the .bat issue and I used Windows Task Scheduler and it seems to be working fine, every 3 hours it will kill the process and then restart it, thanks for the help mate :)

Edited by [COI]Naaaath

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.