Jump to content

BEC server messages not working


GiantUnicorn

Recommended Posts

Hi, somehow my bec server messages have stopped working.. They worked for about 2 days.

Restart works! (job id 6)

Put it does not post those warnings/msgs to the server.

 

here is my Scheduler.xml

 

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<Scheduler>
<!-- Load Bans -->
        <job id="1">
                <time>000100</time>
                <delay>000000</delay>
                <day>1,2,3,4,5,6,7</day>
                <loop>1</loop>
                <cmd>loadbans</cmd>
                <cmdtype>0</cmdtype>
        </job>
 
        <job id="2">
                <time>003000</time>
                <delay>000000</delay>
                <day>1,2,3,4,5,6,7</day>
                <loop>1</loop>
                <cmd>say -1 This is a test msg!</cmd>
                <cmdtype>0</cmdtype>
        </job>
 
        <job id="3">
                <time>035000</time>
                <delay>000000</delay>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 --Server will AUTO RESTART in 10 min--</cmd>
                <cmdtype>0</cmdtype>
        </job>
 
        <job id="4">
                <time>035500</time>
                <delay>000000</delay>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 --Server will AUTO RESTART in 5 min--</cmd>
                <cmdtype>0</cmdtype>
        </job>
 
        <job id="5">
                <time>035900</time>
                <delay>000000</delay>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>say -1 --AUTO RESTART in 1 min--</cmd>
                <cmdtype>0</cmdtype>
        </job>
 
        <job id="6">
                <time>040000</time>
                <delay>000000</delay>
                <day>1,2,3,4,5,6,7</day>
                <loop>0</loop>
                <cmd>Z:\server\dayzserver\epoch\BEC\start_script.bat</cmd>
                <cmdtype>1</cmdtype>
        </job>
</Scheduler>
Link to comment
Share on other sites

Here's a guide for BEC, it's my own so its not like i ripped it from dayzc or something. Also its not hard to work it with Epoch , if you need help , Ask me. (Also if the mods want i can make a separate topic for it w/e.

 

 

First step is to download the latest BEC.
Go to http://ibattle.org/downloads/ and download the latest BEC.  Or click here if you're lazy.
 
Next go to your Arma 2 Folder / @dayzcc_config  / 1 / make a new folder called BEC.
 
Extract the contents of BEC.zip into your BEC folder.  You can delete LICENSE.txt , Changelog.txt , README.txt from folder.
 
Create a shortcut of BEC.exe (same folder) and add on target -f Config.cfg (Rename the shortcut to bec_1 )
 
2zf1phy.png
2akfuy8.png
 
Go to your Config folder.
 
Rename Admins_Example.xml to Admins.xml 
Rename Commands_Example.xml to Commands.xml (You can check what commands you can use ingame in this file)
Rename Config_Example.cfg to Config.cfg
 
Delete: BadNames_Example.txt , BadWords_Example.txt ,  Ts3_Example.xml , WhiteList_Example.txt (As i didn't test or see if it works or how this is just for auto-restarts now , if you want to tinker more you can lookup here: http://www.ibattle.org/install-and-configure/ )
 
Open up Admins.xml with Notepad++ and add yourself as Super Admin on these lines.
 
<admin id="0">
<name>Your ingame name</name>
<guid>Your Guid</guid>
<group>0</group>
<groupname>Super Admin</groupname>
</admin>
 
You can either delete the "Noob admin" or you can add a noob admin with few commands or add another full access admin just change the group from 3 to 0.
 
 
Open up Config.cfg
 
Erase everything and paste this basic config in your config.cfg file.
[Bec]
Ip = 127.0.0.1
Port = 2302
BePath = ..\BattlEye
LogDir = DayZ Controlcenter #1
Admins = Admins.xml
Commands = Commands.xml 
 
[Misc]
ServerExeName = arma2oaserver_1.exe
Color = 0f
Timeout = 60
KickLobbyIdlers = 500
Scheduler = Scheduler.xml
 
Now for the  Scheduler.xml , if you have your own you can erase everything and paste yours there.
If you don't and want to use the one i provide (Restarts server every 7 hours.)
Feel free to download it.
 
NOTE: Don't forget to edit your restart_1.bat path ! in line 77
Meaning 
        <cmd>F:\Games\ArmA 2\restart_1.bat</cmd>    
 
As for a server restarter you have restart_1.txt download it and place it to your Arma 2 Folder and rename it to restart_1.bat
 
Also in restart_1.bat edit the following:
 
set ARMApath=F:\Games\ArmA 2 <- your Arma 2 Path.
 
And
 
set BECpath=\@dayzcc_config\1\BattlEye Extended Controls
 
Replace with 
 
set BECpath=\@dayzcc_config\1\BEC
 
 
Thanks to Crosfire for the files & the rest.
 
I hope this helps a bit feel free to ask questions. And i sincerly hope everyone will understand :P
 
If you did everything as i explained when you start it you should see.
5lb776.png
When you join the server:
2lwnio1.png
Link to comment
Share on other sites

I fought the BEC scheduler for weeks where sometimes it would work and others not. We rewrote the code a bunch of times, changed the display window sizes, etc. Finally, we achieved BEC bliss and 100% reliability when we looked at the "Timeout" line in the Config.cfg file. It was set at 60 as recommended. Then it hit us, "Have you ever noticed that the server sometimes takes a long time to start up, what if it is Timing Out?" We upped it to 120, and viola! Success!  

 

I noticed you have another posting advertising your server that boasts, "1000+ Vehicles! Custom Bases! Etc!" All those exciting things take time to run, could it be that it is exceeding the "Timeout"?  Try upping it like we did.

Link to comment
Share on other sites

  • 2 weeks later...

I see it posting in console & rCon but not ingame..checking configs & logs

 

It works sometimes.

 

I had no "Timeout" in my Config.cfg .. i added it after [MISC]

 

I'm seeing the same thing with Dart!. I also have a different message scheduler script as provided by Vilayer, and at times, I will see the message in console but the players in game do not see them. It's the same when sending global messages via Dart! At times, they are delayed by minutes in showing up in the server. When this happens, it's like the messages spam the server and show up in rapid order, but all delayed. There's also been a lot of people having trouble seeing and comments made in direct chat in game, on the console.

Link to comment
Share on other sites

I see it posting in console & rCon but not ingame..checking configs & logs

 

It works sometimes.

 

I had no "Timeout" in my Config.cfg .. i added it after [MISC]

Anyone?

I even reverted back to vanilla to try this out..its completely random

 

This is my startup script

 

 

@echo off

echo Stopping game server...
taskkill /F /IM arma2oaserver.exe
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
echo Stopping BEC...
taskkill /F /IM Bec.exe
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
echo Cleanup And Respawn
cd /D "Z:\home\dayz\dayzserver\" 
start cleanup.bat
ping 127.0.0.1 -n 10 >NUL
start respawn.bat
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
echo Creating a backup of your database...
start backup.bat
echo.
echo.
echo Starting BEC...
cd /D "Z:\home\dayz\dayzserver\BEC\"
start Bec.exe -f Config.cfg
ping 127.0.0.1 -n 5 >NUL
echo.
echo Starting server...
cd /D "Z:\home\dayz\dayzserver\" 
start server.bat
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
echo Leaving the launcher...
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
exit
 
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 3 weeks later...

Double check your config file to make sure the '#' is removed from the line where your scheduler is enabled.  I had the same problem initially and it ended up being just that simple.   :)

 

OK I feel stupid. I've battling the thing for two days. /facepalm

Link to comment
Share on other sites

1) Here my BEC adjusted already, restarts in 4 hours are adjusted.
 to place:  D:\games\Steam\SteamApps\common\arma 2 operation arrowhead\instance_11_Chernarus

 

yadi.sk/d/LgFLwg2NDyTou

2) Server Start and Restart batch for DayZ Server  written by ozersk
to placeD:\games\Steam\SteamApps\common\arma 2 operation arrowhead
 

  yadi.sk/d/aM0sutUYGTCLX

Link to comment
Share on other sites

  • 6 months later...

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