Jump to content
Lith

BattlEye Extended Controls - Scheduler Question

Recommended Posts

I'm trying to configure messages to scroll right before my server restarts. I'm connecting just fine with the program but no matter what options I choose for the scheduler to send a message, I'm not seeing it in the Console view. I've tried specifying the full path to the .XML file and just using the recommended line for it. Even a line as simple as this isn't showing:

1

1,2,3,4,5,6,7

1

say -1 Test

0

Any help from anyone that has this working would be appreciated.

Share this post


Link to post
Share on other sites

If it seems like the scheduler just is not working at all make sure you added it to the BEC config file

Scheduler = scheduler.xml

scheduler.xml goes in the same place as the rest of the config .xml files.

Share this post


Link to post
Share on other sites

Yeah I did. Could it be something to do with me using the public IP to connect to it instead of the internal IP even though it's really residing on the server?

Share this post


Link to post
Share on other sites

I'll try and post what I got here in a bit sorry been trying to keep up with server hanging.

Share this post


Link to post
Share on other sites

Bumping this. Still cannot get scheduler to work for myself.

Share this post


Link to post
Share on other sites

Scheduler.xml Contains:


?xml version="1.0"?>
<Scheduler>

<job id="0">
<time>1</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Test</cmd>
<cmdtype>0</cmdtype>
</job>

</Scheduler>

Config.cfg Contains:



[Bec]
Ip = 69.162.82.210
Port = 2302
BePath = C:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\cfgdayz\BattlEye
LogDir = BECDayZ
Admins = Admins.xml
Commands = Commands.xml
Scheduler = C:\BEC\Config\Scheduler.xml

Edited by Lith

Share this post


Link to post
Share on other sites

Well, I think your time command is off.

If you want ot to repeat every one minute, try this:

<time>000100</time>

It is formulated as HRMISS (2 digits hour, 2 digits minute, 2 digits second).

Share this post


Link to post
Share on other sites

It's your time It has to be 6 digits long (HHMMSS) if your doing it by the minute instead of exact time. SO one minute would be 000100

Edited by ebianbluefox

Share this post


Link to post
Share on other sites

Okay so that was what I was trying to test with. Here's my original scheduler:




<?xml version="1.0"?>
<Scheduler>

<!-- INTERNAL COMMANDS -->
<job id="0">
<time>02:45</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will be restarting in 15 minutes. Please prepare accordingly.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="1">
<time>02:55</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will be restarting in 5 minutes. Please prepare accordingly.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="2">
<time>02:59</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will be restarting in 1 minute. Please prepare accordingly.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="3">
<time>14:45</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will be restarting in 15 minutes. Please prepare accordingly.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="4">
<time>14:55</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will be restarting in 5 minutes. Please prepare accordingly.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="5">
<time>14:59</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will be restarting in 1 minute. Please prepare accordingly.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="6">
<time>4:25</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 TESTING SCHEDULER!</cmd>
<cmdtype>0</cmdtype>
</job>
</Scheduler>

Share this post


Link to post
Share on other sites

Just out of curiousity, why do you not initiate the #shutdown command in your scheduler script?

Share this post


Link to post
Share on other sites

Because I'm already running scripts I don't feel like changing for that.

Share this post


Link to post
Share on other sites

Did you ever figure this out? I got BEC running today and am having the same problem... scheduler doesn't seem to want to run anything I throw at it.

For instance, this does not run:


<?xml version="1.0"?>
<Scheduler>

<job id="0">
<time>0000020</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Testing scheduler</cmd>
<cmdtype>0</cmdtype>

</Scheduler>

Edited by SubEclipse

Share this post


Link to post
Share on other sites

Here is my scheduler.xml. I had an extensive talk with the creator of bec. He helped me out with everything I needed.

<?xml version="1.0"?>
<Scheduler>

<!--
*** INTERNAL COMMANDS ***
-->

<!--Heart Beat Check-->
<job id="0">
<time>000300</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Heartbeat Check = Showing? = Yes|Running</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- Show text ingame after 10 min with loop enabled -->
<job id="1">
<time>000600</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server restarts every day at 1AM PST</cmd>
<cmdtype>0</cmdtype>
</job>

<!--Show Text Every 30 Minutes-->
<job id="2">
<time>003000</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Please Report All Issues/Hackers To Ryahn On The DayZ Forums</cmd>
<cmdtype>0</cmdtype>
</job>

<!--Load Bans Every 30 Minutes-->
<job id="3">
<time>003000</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>loadbans</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- Restart the server 01:00 Am. -->
<job id="4">
<time>01:00</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>#restart</cmd>
<cmdtype>0</cmdtype>
</job>

</Scheduler>

Share this post


Link to post
Share on other sites

Did you ever figure this out? I got BEC running today and am having the same problem... scheduler doesn't seem to want to run anything I throw at it.

For instance, this does not run:


<?xml version="1.0"?>
<Scheduler>

<job id="0">
<time>0000020</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Testing scheduler</cmd>
<cmdtype>0</cmdtype>

</Scheduler>

If that is how it looks, you forgot to add </job> at the end of it

<?xml version="1.0"?>

<Scheduler>

<job id="0">

<time>0000020</time>

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

<loop>1</loop>

<cmd>say -1 Testing scheduler</cmd>

<cmdtype>0</cmdtype>

</job>

</Scheduler>

Share this post


Link to post
Share on other sites

Did you ever figure this out? I got BEC running today and am having the same problem... scheduler doesn't seem to want to run anything I throw at it.

For instance, this does not run:


<?xml version="1.0"?>
<Scheduler>

<job id="0">
<time>0000020</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Testing scheduler</cmd>
<cmdtype>0</cmdtype>

</Scheduler>

Nope. Never figured it out. Can't get it to work on a timed schedule at all.

Share this post


Link to post
Share on other sites

If you would like I could teamviewer you to help you out.

Share this post


Link to post
Share on other sites

If that is how it looks, you forgot to add </job> at the end of it

<?xml version="1.0"?>

<Scheduler>

<job id="0">

<time>0000020</time>

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

<loop>1</loop>

<cmd>say -1 Testing scheduler</cmd>

<cmdtype>0</cmdtype>

</job>

</Scheduler>

Thanks... unfortunately it was just a bad cut/paste and edit job on my part here... I had the close job tag on my server.

I actually tried using your scheduler code as well with no luck.

I'll give it another go this afternoon, and maybe I'll take you up on your offer to look over teamviewer if I strike out.

I'll pm you my ID/Pass and Ventrilo info if all else fails.

Thanks.

Share this post


Link to post
Share on other sites

Nope. Never figured it out. Can't get it to work on a timed schedule at all.

It's weird... I tried everything that you tried as well, using full paths to the file from Myconfig.cfg, etc. Relative paths must be working, since my Admins.xml file is working.

Share this post


Link to post
Share on other sites

Thanks... unfortunately it was just a bad cut/paste and edit job on my part here... I had the close job tag on my server.

I actually tried using your scheduler code as well with no luck.

I'll give it another go this afternoon, and maybe I'll take you up on your offer to look over teamviewer if I strike out.

I'll pm you my ID/Pass and Ventrilo info if all else fails.

Thanks.

You have 7 digits in your time value, like someone said earlier in this thread it's supposed to be hhmmss.

Share this post


Link to post
Share on other sites

You have 7 digits in your time value, like someone said earlier in this thread it's supposed to be hhmmss.

Good catch, I think I had it correctly set with 6 digits in testing, but I'm trying again now.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×