Jump to content

Simple BEC question


gh0stpirate

Recommended Posts

Hey guys, trying hard to find out the problem, checked, triple checked directories etc. ran my "restart.bat" by itself, doesnt throw any errors and functions.

Everything functions perfectly except for starting back up. it shuts down on schedule but doesn't start back up :(

 

Here are the included configs, used UEP BEC installer. Happy with default schedule.

 

scheduler.xml= http://pastebin.com/W4kW2cr6

 

contents of my start.bat= http://pastebin.com/i2sNySne

 

contents of my restart.bat= http://pastebin.com/GL3mWyga

 

Everything regarding BEC, battleye etc are completely default to my knowledge, i dont like bec, so i havent messed with it. i just want my 3 hr restarts :)

Link to comment
Share on other sites

On my phone now so reading the xml and cmds is a bitch. You sure you didn't forgot to edit one of the restarts? Anyways it is also a good idea to kill your server process with taskkill in the restart script after a while just in case.

How long is the delay in your cmd and the xml? If the restart script kills BEC before #shutdown is ran you'll get problems.

Link to comment
Share on other sites

i double checked the schedule.xml, all are edited. I'd love to use uptime, really don't care when it restarts, so long as it does. Im liking the 3 hour mark. could you post your xml perhaps? thank you so much for the help thus far man, appreciate it.

 

i cant stand this stuff :/ once this is working, ill never open it again lmao

 

EDIT: my delay is 15 secs in startup, and 10 seconds in restart. timed it a few times, leaves lots of headroom.

Link to comment
Share on other sites

Here you go:

 

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

<Scheduler>
    <job id="0">
        <time>024500</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 15 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="1">
        <time>025000</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 10 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="2">
        <time>025500</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 5 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="3">
        <time>025800</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 2 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    

    <job id="4">
        <time>025900</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 1 minute. Disconnect ASAP to not lose inventory!"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="5">
        <time>025930</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 30 seconds. Disconnect now to not lose inventory!"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="6">
        <time>030000</time>
        <delay>000020</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>c:\BEC\config\restart.cmd</cmd>    
        <cmdtype>1</cmdtype>
    </job>    
    
    <job id="7">
        <time>030015</time>
       <delay>000020</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#shutdown</cmd>    
        <cmdtype>0</cmdtype>
    </job>        
    
    <job id="8">
        <time>003000</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 "Blahblahblah generic server info every half hour"</cmd>    
        <cmdtype>0</cmdtype>
    </job>        

</Scheduler>

Link to comment
Share on other sites

Here you go:

 

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

<Scheduler>
    <job id="0">
        <time>024500</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 15 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="1">
        <time>025000</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 10 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="2">
        <time>025500</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 5 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="3">
        <time>025800</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 2 minutes"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    

    <job id="4">
        <time>025900</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 1 minute. Disconnect ASAP to not lose inventory!"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="5">
        <time>025930</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 "Server will restart in 30 seconds. Disconnect now to not lose inventory!"</cmd>    
        <cmdtype>0</cmdtype>
    </job>    
    
    <job id="6">
        <time>030000</time>
        <delay>000020</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>c:\BEC\config\restart.cmd</cmd>    
        <cmdtype>1</cmdtype>
    </job>    
    
    <job id="7">
        <time>030015</time>
       <delay>000020</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#shutdown</cmd>    
        <cmdtype>0</cmdtype>
    </job>        
    
    <job id="8">
        <time>003000</time>
        <delay>000010</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 "Blahblahblah generic server info every half hour"</cmd>    
        <cmdtype>0</cmdtype>
    </job>        

</Scheduler>

start tag migging where id=0   copied and pasted, (changed the directory to the restart however)

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