Jump to content
Lith

BattlEye Extended Controls - Scheduler Question

Recommended Posts

Could you maybe show me how you made the batch file?

Do you just start BEC and the server as service?

Edited by DomiStyle

Share this post


Link to post
Share on other sites

Could you maybe show me how you made the batch file?

Do you just start BEC and the server as service?

Yes I run both as a service. Keep in mind that BEC will automatically close when the server process is killed so you'll need to start it back up. I just made a batch file that did this:


echo off
taskkill /im arma*
DayZ.bat
exit

DayZ.bat was another bat I was using to start the server back up. You could add a line under that to start BEC but make sure you have the -config line there. Get firedaemon to create services easily if you can afford to spend some money. Makes it much easier then managing a bunch of crappy batch files and scheduled tasks.

Edited by Lith

Share this post


Link to post
Share on other sites

Could you maybe show me how you made the batch file?

Do you just start BEC and the server as service?

I use #shutdown in the scheduler, and then when the server watcher script sees that the process has died, it restarts.

Here is the script I use.

http://r4z0r49sisle.com/Server.html

I have slightly modified mine to also launch bec.

  • Like 1

Share this post


Link to post
Share on other sites

Doesn't killing the task prevent the server from properly closing (causing problems like vehicle reset)?

Share this post


Link to post
Share on other sites

Doesn't killing the task prevent the server from properly closing (causing problems like vehicle reset)?

I've never had issues with vehicles spawning or tents by killing the process. I think it's those who restart the mission only that have those issues.

Share this post


Link to post
Share on other sites

I use #shutdown in the scheduler, and then when the server watcher script sees that the process has died, it restarts.

Here is the script I use.

http://r4z0r49sisle.com/Server.html

I have slightly modified mine to also launch bec.

What else does this script do?

It seems like it downloads something too?

Is the scheduler correct like this?


<?xml version="1.0"?>
<Scheduler>
<job id="0">
<time>5:30</time>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server will restart in 30 minutes!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="1">
<time>5:45</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 15 minutes!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="2">
<time>5:55</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 5 minutes!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="3">
<time>055900</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 1 minute!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="4">
<time>055954</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 5 seconds!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="5">
<time>055955</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 4 seconds!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="6">
<time>055956</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 3 seconds!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="7">
<time>055957</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 2 seconds!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="8">
<time>055958</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server will restart in 1 second!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="9">
<time>055959</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Server is restarting!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="10">
<time>060000</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>
</job>
</Scheduler>

Share this post


Link to post
Share on other sites

It just sends in-game messages to the players before shutting down. It doesn't download anything that I can see.

Share this post


Link to post
Share on other sites

It just sends in-game messages to the players before shutting down. It doesn't download anything that I can see.

I mean the batch file that SubEclipse linked.

edit: Well, batch file seems to be pretty neat.

Where do I need to add BEC? Can't find anything that starts the server.

Edited by DomiStyle

Share this post


Link to post
Share on other sites

It's probably the one that automatically downloads the latest scripts detection file for you and also rotates your logs out to keep them from getting too large.

Share this post


Link to post
Share on other sites

It's probably the one that automatically downloads the latest scripts detection file for you and also rotates your logs out to keep them from getting too large.

Yes, exactly... I find it works very well and the author, R4Z0R49, has been very helpful via PM.

Edited by SubEclipse

Share this post


Link to post
Share on other sites

Yes, exactly... I find it works very well and the author, R4Z0R49, has been very helpful via PM.

I included it now, thanks for the script.

The scripts.txt path is wrong but I changed it.

Also starting bec.exe.

Share this post


Link to post
Share on other sites

I included it now, thanks for the script.

The scripts.txt path is wrong but I changed it.

Also starting bec.exe.

I noticed the same issue with the scripts.txt path... I took a rather manual approach to fixing it by downloading the correct scripts.txt file, placing it on a server of mine and pointing it to that location. Is there another location where someone is posting up to date scripts.txt files (other than the one that is part of the cfgdayzDEFAULT.zip file)?

Share this post


Link to post
Share on other sites

I mean the batch file that SubEclipse linked.

edit: Well, batch file seems to be pretty neat.

Where do I need to add BEC? Can't find anything that starts the server.

I missed your edit... Here's how I do it.

In the bat file, in armastart, I replaced goto armaloop with goto startbec. I then added


:startbec
CD %BECdir%
start Bec.exe -f Myconfig.cfg
CD %Homedir%
goto armaloop

In the launchconfig file, I added:

BECdir=D:\dayz\arma 2 operation arrowhead\BEC

(The path to my BEC Install)

Maybe not the best way of going about it, but it works for me.

Edited by SubEclipse
  • Like 1

Share this post


Link to post
Share on other sites

I noticed the same issue with the scripts.txt path... I took a rather manual approach to fixing it by downloading the correct scripts.txt file, placing it on a server of mine and pointing it to that location. Is there another location where someone is posting up to date scripts.txt files (other than the one that is part of the cfgdayzDEFAULT.zip file)?

Yes, there is the official battleye config.

Use this paths:


http://cdn.armafiles.info/.dayzhosters/battleyeconfig/ban.txt
http://cdn.armafiles.info/.dayzhosters/battleyeconfig/bans.txt
http://cdn.armafiles.info/.dayzhosters/battleyeconfig/scripts.txt

The username and password is in the mail you got from the devs.

You need to modify the wget in the batch file in order to set the username and password.

Just do a replace in editor:

Search for: wget.exe

Replace by: wget.exe --user=USERNAME --password=PASSWORD

Works fine here.

Also I just edited this in order to start BEC, but I think it should work:


echo (%date%) (%time%) Waiting for Dayz to start.
TIMEOUT /T 60
echo (%date%) (%time%) Starting BEC.
cmd /k "bec.lnk"

Didn't test this yet though.

Edited by DomiStyle
  • Like 1

Share this post


Link to post
Share on other sites

Oh, excellent... Thank you for the links, I mistakenly thought the only place to acquire these was withing the zip package.

Much appreciated.

Share this post


Link to post
Share on other sites

So I have my scheduler working for my specific timed events but have been trying to get it to run MOTDs on a loop. The code below shows the last timed event in my scheduler which works at the top, however I'm not getting any of the loop messages after that.


<job id="15">
<time>20: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="16">
<time>000500</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 This server restarts every 6 hours at 12 and 6 CST.</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="17">
<time>001000</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Join our TS3 Server: ts3.team-brh.com | pw=bringbeer</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="18">
<time>001500</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Visit Team-BRH.com for our forums, donations, complaints, etc!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="19">
<time>002000</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Welcome to DayZ @ The Bar Room. Est 2007!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="20">
<time>002500</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Cheaters will be banned without warning!</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="21">
<time>003000</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 Aborters and ALT+F4 abusers will be warned then banned if continued!</cmd>
<cmdtype>0</cmdtype>
</job>

Edited by Lith

Share this post


Link to post
Share on other sites

Never mind, updated from 1.44 to 1.46 fixed it.

Share this post


Link to post
Share on other sites

Ok new question. How do you do looping MOTDs without them overlapping? Is the only way to specifically set the true time to them (ie: 12:00pm)?

Share this post


Link to post
Share on other sites

For things like server restarts, I use actual times of the day rather than HHMMSS, eg:

<!-- 5 Minute Warning for 4:00AM Restart -->
<job id="3">
<time>03:55</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 The server will restart in 5 minutes (4:00AM GMT -7)</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- 4 Minute Warning for 4:00AM Restart -->
<job id="4">
<time>03:56</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 The server will restart in 4 minutes (4:00AM GMT -7)</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- 3 Minute Warning for 4:00AM Restart -->
<job id="5">
<time>03:57</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 The server will restart in 3 minutes (4:00AM GMT -7)</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- 2 Minute Warning for 4:00AM Restart -->
<job id="6">
<time>03:58</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 The server will restart in 2 minutes (4:00AM GMT -7)</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- 1 Minute Warning for 4:00AM Restart -->
<job id="7">
<time>03:59</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 The server will restart in 1 minute (4:00AM GMT -7). DISCONNECT NOW TO PREVENT DATA LOSS!</cmd>
<cmdtype>0</cmdtype>
</job>

<!-- Restart the server 4:00 AM -->
<job id="8">
<time>04:00</time>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>
</job>

That way you won't get any overlap.

Share this post


Link to post
Share on other sites

Yeah my restarts are specified but I wanted scrolling messages during play and the only way I can think of without any overlap is to specify set times for all messages which would be a bitch considering 24hrs in a day.

Share this post


Link to post
Share on other sites

Guys I cant get my auto messages to work, would someone please, kindly have a look to see if they can see anything wrong?? Thanks :)

<?xml version="1.0"?>

<Scheduler>

<!--

*** INTERNAL COMMANDS ***

-->

<!-- Show text ingame after 150 min with loop enabled -->

<job id="0">

<time>023000</time>

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

<loop>1</loop>

<cmd>say -1 Server will restart in 30 minutes. Server will restart in 30 minutes. </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 165 min with loop enabled -->

<job id="1">

<time>024500</time>

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

<loop>1</loop>

<cmd>say -1 Server will restart in 15 minutes. Server will restart in 15 minutes. </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 175 min with loop enabled -->

<job id="2">

<time>025500</time>

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

<loop>1</loop>

<cmd>say -1 Server will restart in 5 minutes. Server will restart in 5 minutes. PREPARE TO LAND CHOPPERS! </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 178 min with loop enabled -->

<job id="3">

<time>025800</time>

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

<loop>1</loop>

<cmd>say -1 Server will restart in 1 minute. Server will restart in 1 minute. LAND ALL CHOPPERS! </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 20 min with loop enabled -->

<job id="4">

<time>002000</time>

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

<loop>1</loop>

<cmd>say -1 *** UK#10 is protected by Gotcha Anti-Hack *** </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 21 min with loop enabled -->

<job id="5">

<time>002100</time>

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

<loop>1</loop>

<cmd>say -1 *** UK#10 is protected by DayZ Anti-Hax *** </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 30 min with loop enabled -->

<job id="6">

<time>003000</time>

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

<loop>1</loop>

<cmd>say -1 * Visit our UK#10 Zombie World discussion thread in the Private Hive area of DayZMod.com * </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 15 min with loop enabled -->

<job id="7">

<time>001500</time>

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

<loop>1</loop>

<cmd>say -1 Server Restarts at: 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00, GMT. </cmd>

<cmdtype>0</cmdtype>

</job>

<!-- Show text ingame after 1 min with loop enabled -->

<job id="8">

<time>000100</time>

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

<loop>1</loop>

<cmd>say -1 BEC TEST MESSAGE </cmd>

<cmdtype>0</cmdtype>

</job>

</Scheduler>

Edited by -Panda

Share this post


Link to post
Share on other sites

And from my bec_config.cfg. (I blanked out the sensitive info).

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# Example Config file for Bec.

# Everything is disabled by default

# Enable/disable a parameter by Comment/Uncomment it with a #

# You can also delete all parameters that are not in use.

# If you are unsure how to configure this file read the online docs.

# http://ibattle.org/install-and-configure/

#####################################################

[bec]

Ip = 94.242.227.218

Port = 2362

bepath = E:\TCAFiles\Users\blankedout\VilayerChernarus\BattlEye\

Password = blankedout

LogDir = VilayerChernarus

Admins = Admins.xml

Commands = Commands.xml

#####################################################

## Optional settings for misc functions

[Misc]

#AsciiNickOnly = True

#AsciiChatOnly = True

#IgnoreChatChars = £æøå

#ServerExeName = arma2oaserver.exe

#NickFilterFile = BadNames.txt

#WordFilterFile = BadWords.txt

#Warnings = 3

#Color = 0c

#Timeout = 40

#KickLobbyIdlers = 300

Scheduler = Scheduler.xml

#MaxPlayerNameLength = 18

#DisallowPlayerNameChars = (){}<>/\^¨§!"'#¤%&@£$€

#ChatChannelFiles = true

###################

#FloodControl1 = 5

# Or

#FloodControl2 = 5

#FloodSampleTime = 5

#FloodLockTime = 10

###################

#####################################################

## Optional settings related to Chat restriction

#[ChatRestriction]

#Global = 3

#Side = -1

#Group = -1

#Vehicle = -1

#Command = -1

#Commander = -1

#Direct = -1

#####################################################

## Optional settings related to Reporting function

#[Reporter]

#User = Donald Duck

#Password = 313

#####################################################

# Optional settings related to Heartbeat

#[Heartbeat]

#BanFile0 = C:\SERVER2\BattlEye\bans.txt

#BanFile1 = C:\SERVER3\BattlEye\bans.txt

Share this post


Link to post
Share on other sites

Are you making sure that BEC is making the actual connection with the server? I don't see any errors with the above.

Share this post


Link to post
Share on other sites

Are you making sure that BEC is making the actual connection with the server? I don't see any errors with the above.

BEC is running server side and is part of the install package provided by my host.

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

×