HELP!! Server messages

General Gizmo

New Member
Hey everyone

I got a problem with BEC from BattleEye. And i have a Question.
Let me start on the actual problem

I want to have Custom Server Messages that will be pushed on Global chat every so many min.

Usualy i would set it up with BEC but after BEC terminated their services last year ago it aint working anymore.

Funny thing is i do constantly see forms popping up with ppl reporting the same problem [ year later ] and no one points out to the fact BEC terminated their services.

So what made me wonder if it would still work with an workaround. ??

-----------------------------------------------------------------------------------------------------------------------------

This is what i have done so far.

* i have installed BEC into the server "BEC Folder"
* I have Made the BEServer.cfg file in the Main BattleEye Folder.
* I have Configured the BEC Config.cfg
* I have Disabled everything in the Config.cfg that i do not need like Whitelist and Badnames and such

Also it was adviced I put what stands below into the C:\Windows\System23\Drivers\Ect\Hosts file

# Dayz Server BEC
127.0.0.1 ibattle.org
127.0.0.1 www.ibattle.org

Note: when i start BEC i do NOT get any errors. The BEServer.cfg DID change to Active !!!

----------------------------------------------------------------------------------------------------------------------------

This is my Problem

As i said above when i start bec i do not get errors and the File in BattleEye folder does turn into Active.
But the BEC Promp it self keeps saying "Waiting for Server Startup" Wile my server clearly is online.

Does anyone know now iBattle terminated their services if there is a work around ?

----------------------------------------------------------------------------------------------------------------------------

And this is my other question.

I have a got a copy of a fully scripted overpoch server some time ago. And he had an program scripted what he called "Overpoch Messages System".

I have tried to copy this to the Epoch server, but of cause it can not connect.

Does anyone know what for Mod/Program this will be ?
And do you have a link for me to the Mod/Program so i can take a look at it ;) ?

This is how it looks when its installed into the server. It also uses Ibattle servers but this one actualy still works !!

4i2atk.png


[ Many Thanks and credits to of his awesome kindness and a copy of his server]
http://www.over30gaming.com/

----------------------------------------------------------------------------------------------------------------------------

Many thanks everyone for you time.

Been searching for a long time and cant seem to find any answers on both issues.


General Gizmo
 
Server Start Bat file

Code:
Timeout 5

echo.
echo Starting Dayz Server
:: start the server..
set dayzpath="D:\--Dayz Servers--\Epoch Chernarus"
cd /d %dayzpath%
start /min StartServer2.exe -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@DayZ_Epoch1051;@DayZ_Epoch_Server;" "-bepath=D:\--Dayz Servers--\Epoch Chernarus\Battleye" -noSound -world=empty -cpuCount=4 -exThreads=0 -maxmem=2047 -noPause -noCB


echo.
echo Starting Bec
timeout 10
:: start bec
set becpath="D:\--Dayz Servers--\Epoch Chernarus\BEC"
cd /d %becpath%
start /min bec.exe -f Config.cfg
echo.
echo Server Started 100%

cls
@exit


BEServer.cfg

Code:
RConPassword 0219
MaxPing 350


BEC Config.cfg

Code:
# This config file is only provided as an example file.
# Edit it to sute your needs.
# For more info on how to edit this file. use the Readme.txt file or visit http://www.ibattle.org/install-and-configure


#--------------------------------------------------------------------------------------------------------
[Bec]
#--------------------------------------------------------------------------------------------------------

# Set the ip to your server. normally 127.0.0.1 will be fine.
Ip = 127.0.0.1

# Set the port to the server. default port is 2302
Port = 2302


# Set the path to the BattlEye directory that is currently in use by the server.
BePath = D:\--Dayz Servers--\Epoch Chernarus\Battleye


# Set the path to your Admins.xml file containing your admins.
Admins = Admins.xml


# Set the path to your Commands.xml file.
Commands = Commands.xml


#--------------------------------------------------------------------------------------------------------
[Misc]
#--------------------------------------------------------------------------------------------------------

# Auto run loadbans when ban file(s) changes.
# 1 or True will turn it on.
# 0 or False will turn it off.
# If this parameter is not defined it will use False as default.

AutoLoadBans = True

# Set which type of hacks that will be added to your banlist.
# 0 = none. 1 = GameHack. 2 = Battleye Hack. 3 = both GameHack & Battleye Hack.
# value 3 is set as default if this parameter is not defined.
Ban = 3


# Set the names of your custom ban files, Separate each file with "," (comma): file1.txt, banfile2.txt, newfile.txt
# If you do not use any custom ban files. delete this option or leave this option commented.
# This option will check ban files for changes and automatic do a loadbans file when a file gets changed
# Do not specify the default bans.txt file here.
BeCustomBanFiles = Bans.txt


# Set the height & width of Becs console window
ConsoleHeight    = 45
ConsoleWidth    = 60


# Only allow english chars.
AsciiNickOnly = False


# Only allow english chars to be typed on the chat. Note, Warnings must be enabled. 0 or more.
AsciiChatOnly = True


# If AsciiChatOnly is set True. you can define none english chars that will be accepted.
# You separate each char with a , "note you need to define lower and upper case of the chars."
IgnoreChatChars    = €,£,æ,Æ,ø,Ø,å,Å,ö,ä,ü,ß


# Set the amount of warnings a player will get before kicked. -1 is disabled. 0 instant kick
# 1 == one warning on a bad word. next bad word results in kick
Warnings = 3


# Kick players who has listed chars in their name when they connect
DisallowPlayerNameChars    =


# Min length, kicks players who has to short name when they connect.
MinPlayerNameLength    = 1


# Max length, kicks players who has to long name when they connect.
MaxPlayerNameLength    = 30


# Set the name of your Arma3server.exe if it has been renamed from arma3server.exe to something else!
# if the exe has its original name. comment it out.
# DO NOT SET FULL PATH TO THE EXE FILE
# ServerExeName = NewArmaExeName.exe


# Set path to the file containing a list of bad words. Note, Warnings must be enabled. 0 or more.
#WordFilterFile = BadWords.txt


# Set the path to the file containing whitelisted guids.
#WhiteListFile = WhiteList.txt


# Set custom whitelist kick message. Text must be in ascii letters.  MAX 58 CHARS. BE only does ascii on messages
# WhiteListKickMsg = You are not whitelisted on this server.


# Kick people with offensive names
# NickFilterFile = BadNames.txt


# Set the path to the Scheduler.xml file.
# Scheduler = Scheduler.xml


# Kick people who are idleing in the lobby, kick will happen after given time, Min time is 90 sec. use 0 to disable this function.
KickLobbyIdlers    = 0


# If enabled. Bec will create separate chat files for each channel along with the main file.
ChatChannelFiles = true

# Set the amount of Normal players who can connect. Set it to -1 to disable it.
# If set to 0 it means only players who are listed in the Admins.xml, (or whatever you call it) will be able to connect to the server.
# Quick Example 1: server can holed 50 players. and you want to reserve 5 slots for admins. then set SlotLimit to 45.
# Quick Example 2: server can holed 50 players. and you want to reserve 5 slots for admins and 5 slots for friends. then set SlotLimit to 40,
# AND edit your admins.xml. ADD in all your frineds guid and remaining data, put them in group example 100. or whatever you feel likt.
# by using this method you can give some of your friends some access to some commands if you like or none.
# in general this is works like .Whitelisting X player slots for admins and friends, while leaving the remaining Y slots for public.
SlotLimit = -1

# Set the message people will get when they try to connect and is not whitelisted. Text must be in ascii letters.
SlotLimitKickMsg = The Server has reached its player limit.


# The amount of time Bec will wait for the server to start up.
Timeout = 200


#--------------------------------------------------------------------------------------------------------
[Reporter]
#--------------------------------------------------------------------------------------------------------
# Reporter account. Fill in the username and password for your reporter account.
# GameHacks, BattlEye Hacks will be reported to a database. all players who connect will also be checked against this database.

# Set the Username for your account
#User = alfred


# Set the Password for your account
#Password = 123456


#--------------------------------------------------------------------------------------------------------
[ChatRestriction]
#--------------------------------------------------------------------------------------------------------
# Set max amount of chat lines a player is allowed to send for each channel.
# Going passed the number will result in kick. -1 is disabled, 0 instant kick.
# If the number is higher than 0 players will be sent warnings.

Lobby = -1
Global = -1
Side = -1
Group = -1
Vehicle    = -1
Command    = 0
Commander = 0
Direct = -1


#--------------------------------------------------------------------------------------------------------
[ChatSpam]
#--------------------------------------------------------------------------------------------------------

# Set max amount of chat lines per channel allowed within given time frame.
# Set the values to 0 to disable this function(s)

# Quick Example:
# Lobby = 5
# Lobby_Time_Lower = 10
# Lobby_Time_Upper = 15

# If the time between each new chatlines from a player is less than CHANNEL_Time_Lower the spam counter increases by + 1.
# Consider the CHANNEL (Lobby) as the spam counter.
# When a player has (CHANNEL - 1) in spam counting. a warning will be sent to whom it may concern.
# If the time between each new chatline from the player is Greater than CHANNEL_Time_Lower and Less than CHANNEL_Time_Upper the spam counter stay as it is.
# If the time since the last chatline is greater then CHANNEL_Time_Upper the spam counter is reset to 1.
# To get optimal result play around a bit with the values on your server.

Lobby = 10
Lobby_Time_Lower = 10
Lobby_Time_Upper = 15

Global = 10
Global_Time_Lower = 10
Global_Time_Upper = 15

Side = 10
Side_Time_Lower    = 10
Side_Time_Upper    = 15

Group = 0
Group_Time_Lower = 0
Group_Time_Upper = 0

Vehicle    = 0
Vehicle_Time_Lower = 0
Vehicle_Time_Upper = 0

Command = 0
Command_Time_Lower = 0
Command_Time_Upper = 0

Commander = 0
Commander_Time_Lower = 0
Commander_Time_Upper = 0

Direct = 0
Direct_Time_Lower = 0
Direct_Time_Upper = 0
 
If I am not mistaken. In your BEC config file, the Path to the current Battleye is pointing to the installation files location. I think battleye is installed into the user profile folder something like this ...
E:\Arma\Server\config\dayz\BattlEye
so yours would be something like
D:\--Dayz Servers--\Epoch Chernarus\ instance_11_Chernarus\BattlEye

Fool with the paths ..
 
If I am not mistaken. In your BEC config file, the Path to the current Battleye is pointing to the installation files location. I think battleye is installed into the user profile folder something like this ...
E:\Arma\Server\config\dayz\BattlEye
so yours would be something like
D:\--Dayz Servers--\Epoch Chernarus\ instance_11_Chernarus\BattlEye

Fool with the paths ..

Ty for the tip.

Badly that does not work. I have always installed BEServer.Cfg into the \serverpath\BattleEye folder.
and it always worked.

i have placed and tried it in the \serverpath\Instant_11_chernarus\BattleEye maby it changed. But then i get the error " Couldnt find BEServer.cfg" what i was affraid off.

the installation should be right. But with iBattle services terminated i am wondering if there is another way that would work.

cause the old one is broken ty


EDIT: i also changed the path to the BEServer.cfg ofcause inse the config for the \Instant_11....\BattleEye path. but then again waiting for server set up. just dont get passed through that
 
Last edited:
well bec still works, thw app you are running has nothing to do with thw termination ... as i said that, i do recall,one thing you need to do.

Will have to edit your server's hosts file and add these:
127.0.0.1 ibattle.org
127.0.0.1 www.ibattle.org
BEC can now start up, and will look at your server for updates, and just fail, but at least continue working. Reporting service also won't work anymore :-/
 
If you have problems with starting up Bec and only get Waiting for server.
Then make sure if you have renamed the armaserver.exe to something else than its original name that you have specified this in the config file.
If this doesn't work. you can startup Bec with the --dsc option. Bec.exe -f myconfig.cfg --dsc
Code:
echo.
echo Starting Bec
timeout 10
:: start bec
set becpath="D:\--Dayz Servers--\Epoch Chernarus\BEC"
cd /d %becpath%
start /min bec.exe -f Config.cfg --dsc
echo.
echo Server Started 100%

cls
@exit
 
forgot about the --dsc to prevent the timeout .. Here is an image showing my BEC working.
My startup is simply bec -f config.cfg --dsc just as andy has.
jzT5qfu.png


Here is my example config.cfg file
Code:
# This config file is only provided as an example file.
# Edit it to sute your needs.
# For more info on how to edit this file. use the Readme.txt file or visit http://www.ibattle.org/install-and-configure


#--------------------------------------------------------------------------------------------------------
[Bec]
#--------------------------------------------------------------------------------------------------------

# Set the ip to your server. normally 127.0.0.1 will be fine.
Ip = 127.0.0.1


# Set the port to the server. default port is 2302
Port = 2302


# Set the path to the BattlEye directory that is currently in use by the server.
BePath = E:\Arma\Server\config\overpoch\BattlEye


# Set the path to your Admins.xml file containing your admins.
Admins = Admins.xml


# Set the path to your Commands.xml file.
Commands = Commands.xml


#--------------------------------------------------------------------------------------------------------
[Misc]
#--------------------------------------------------------------------------------------------------------

# Set which type of hacks that will be added to your banlist.
# 0 = none. 1 = GameHack. 2 = Battleye Hack. 3 = both GameHack & Battleye Hack.
# value 3 is set as default if this parameter is not defined.
Ban = 3


# Set the names of your custom ban files, Separate each file with "," (comma): file1.txt, banfile2.txt, newfile.txt
# If you do not use any custom ban files. delete this option or leave this option commented.
# This option will check ban files for changes and automatic do a loadbans file when a file gets changed
# Do not specify the default bans.txt file here.
# BeCustomBanFiles = Bans1.txt, file2.txt, file3.txt


# Set the height & width of Becs console window
ConsoleHeight    = 45
ConsoleWidth    = 165


# Only allow english chars.
AsciiNickOnly = False


# Only allow english chars to be typed on the chat. Note, Warnings must be enabled. 0 or more.
AsciiChatOnly = True


# If AsciiChatOnly is set True. you can define none english chars that will be accepted.
# You separate each char with a , "note you need to define lower and upper case of the chars."
IgnoreChatChars    = €,£,æ,Æ,ø,Ø,å,Å,ö,ä,ü,ß


# Set the amount of warnings a player will get before kicked. -1 is disabled. 0 instant kick
# 1 == one warning on a bad word. next bad word results in kick
Warnings = 3


# Kick players who has listed chars in their name
DisallowPlayerNameChars    = []{}()0123456789


# Min length, kicks players who has to short name.
MinPlayerNameLength    = 3


# Max length, kicks players who has to long name.
MaxPlayerNameLength    = 16


# Set the name of your Arma3server.exe if it has been renamed from arma3server.exe to something else!
# if the exe has its original name. comment it out.
# DO NOT SET FULL PATH TO THE EXE FILE
# ServerExeName = NewArmaExeName.exe


# Set path to the file containing a list of bad words. Note, Warnings must be enabled. 0 or more.
# WordFilterFile = BadWords.txt


# Set the path to the file containing whitelisted guids.
# WhiteListFile = WhiteList.txt


# Set custom whitelist kick message. Text must be in ascii letters.  MAX 58 CHARS. BE only does ascii on messages
WhiteListKickMsg = You are not whitelisted on this server.


# Kick people with offensive names
# NickFilterFile = BadNames.txt


# Set the path to the Scheduler.xml file.
#Scheduler = Scheduler.xml


# Kick people who are idleing in the lobby, kick will happen after given time, Min time is 90 sec. use 0 to disable this function.
KickLobbyIdlers    = 0


# If enabled. Bec will create separate chat files for each channel along with the main file.
#ChatChannelFiles = false

# Set the amount of Normal players who can connect. Set it to -1 to disable it.
# If set to 0 it means only players who are listed in the Admins.xml, (or whatever you call it) will be able to connect to the server.
# Quick Example 1: server can holed 50 players. and you want to reserve 5 slots for admins. then set SlotLimit to 45.
# Quick Example 2: server can holed 50 players. and you want to reserve 5 slots for admins and 5 slots for friends. then set SlotLimit to 40,
# AND edit your admins.xml. ADD in all your frineds guid and remaining data, put them in group example 100. or whatever you feel likt.
# by using this method you can give some of your friends some access to some commands if you like or none.
# in general this is works like .Whitelisting X player slots for admins and friends, while leaving the remaining Y slots for public.
SlotLimit = -1

# Set the message people will get when they try to connect and is not whitelisted. Text must be in ascii letters.
SlotLimitKickMsg = The Server has reached its player limit.


# The amount of time Bec will wait for the server to start up.
Timeout = 30


#--------------------------------------------------------------------------------------------------------
[Reporter]
#--------------------------------------------------------------------------------------------------------
# Reporter account. Fill in the username and password for your reporter account.
# GameHacks, BattlEye Hacks will be reported to a database. all players who connect will also be checked against this database.

# Set the Username for your account
#User = alfred


# Set the Password for your account
#Password = 123456


#--------------------------------------------------------------------------------------------------------
[ChatRestriction]
#--------------------------------------------------------------------------------------------------------
# Set max amount of chat lines a player is allowed to send for each channel.
# Going passed the number will result in kick. -1 is disabled, 0 instant kick.
# If the number is higher than 0 players will be sent warnings.

Lobby = 30
Global = 5
Side = 7
Group = 9
Vehicle    = 11
Command    = 13
Commander = 15
Direct = 17


#--------------------------------------------------------------------------------------------------------
[ChatSpam]
#--------------------------------------------------------------------------------------------------------

# Set max amount of chat lines per channel allowed within given time frame.
# Set the values to 0 to disable this function(s)

# Quick Example:
# Lobby = 5
# Lobby_Time_Lower = 10
# Lobby_Time_Upper = 15

# If the time between each new chatlines from a player is less than CHANNEL_Time_Lower the spam counter increases by + 1.
# Consider the CHANNEL (Lobby) as the spam counter.
# When a player has (CHANNEL - 1) in spam counting. a warning will be sent to whom it may concern.
# If the time between each new chatline from the player is Greater than CHANNEL_Time_Lower and Less than CHANNEL_Time_Upper the spam counter stay as it is.
# If the time since the last chatline is greater then CHANNEL_Time_Upper the spam counter is reset to 1.
# To get optimal result play around a bit with the values on your server.

Lobby = 0
Lobby_Time_Lower = 0
Lobby_Time_Upper = 0

Global = 0
Global_Time_Lower = 0
Global_Time_Upper = 0

Side = 0
Side_Time_Lower    = 0
Side_Time_Upper    = 0

Group = 2
Group_Time_Lower = 1
Group_Time_Upper = 3

Vehicle    = 0
Vehicle_Time_Lower = 0
Vehicle_Time_Upper = 0

Command = 0
Command_Time_Lower = 0
Command_Time_Upper = 0

Commander = 0
Commander_Time_Lower = 0
Commander_Time_Upper = 0

Direct = 0
Direct_Time_Lower = 0
Direct_Time_Upper = 0

Here is an image showing my Battleye path.
Gb2294B.png


And here is my Arma2 startup line. You can see the -profiles at the end ... that is the folder that will be used for the server specific files such as the active Battleye folder.
Code:
start .\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@dayz_overwatch;@dayz_epoch;@taviana;@dayz_epoch_server -name=infected -config=config\overpoch\overpoch.cfg -cfg=config\overpoch\basic.cfg -profiles=config\overpoch


-----------------------------------------------------------------------------------------------------
Now if you simply want messages printed to your server, this little bit of code will do that.
Save this code as admin_msg.sqf
It will start after 3 minutes and display a random message from your list every 5 minutes.

Code:
/* ***************************************************************
Include this file in your mission folder and in your init.sqf add this line
if (!isserver) then {[]execvm "admin_msg.sqf";};
****************************************************************** */

_delay = 300;//5 minutes
sleep 180; // 3 minutes delay until first message
_messageArray = [
    ["The fasted way to contact an admin is to join our teamspeak and ask for help.],
    ["Join up on our website and take part in the discussions],
    ["Dont be a victim, Shoot First and SURVIVE!"],
    ["The server restarts every 6 hours"]
];

while {true} do
{
    sleep _delay;
    _msg = _messageArray select (random (count _messageArray - 1));
    titleText [_msg, "PLAIN DOWN", 3];
};
 
And you can remove BEC usage to restart your server using a windows batch file.
Here is something I put together as a non-working example using this post
http://opendayz.net/threads/server-launch-bat-file-and-restart-system-tutorial.11006/
http://www.makeuseof.com/tag/write-simple-batch-bat-file/
http://ss64.com/nt/

You can edit this file to create function calls which would allow you to use the single script to stop, start, restart your server. As it is here, it stops the server, then starts the server, then waits 6 hours (21600 seconds) to stop and start it again. That part loops forever. So using the admin_msg.sqf script and a batch file to control your server, it covers the BEC functionality.

Code:
echo KILL arma2oaserver.exe
set serverkill="C:\Users\Administrator\Desktop\Dayz Server Files\Expansion\beta"
cd /d %serverkill%
taskkill /im arma2oaserver.exe

timeout 10

echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Users\Administrator\Desktop\Dayz Server Files\"
cd /d %dayzpath%
start "" "Server_Start_New.bat"

:loop
sleep 21600 

echo KILL arma2oaserver.exe
set serverkill="C:\Users\Administrator\Desktop\Dayz Server Files\Expansion\beta"
cd /d %serverkill%
taskkill /im arma2oaserver.exe

timeout 10

echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Users\Administrator\Desktop\Dayz Server Files\"
cd /d %dayzpath%
start "" "Server_Start_New.bat"


goto loop


@echo off
echo.
echo KILL arma2oaserver.exe
set serverkill="C:\Users\Administrator\Desktop\Dayz Server Files\Expansion\beta"
cd /d %serverkill%
taskkill /im arma2oaserver.exe
echo.
echo Kill Bec.exe
set beckill="C:\Users\Administrator\Desktop\Dayz Server Files\dayz_1.sara\BEC"
cd /d %beckill%
taskkill /im bec.exe

timeout 10

echo.
echo Starting Dayz Server
:: start the server..
set dayzpath="C:\Users\Administrator\Desktop\Dayz Server Files\"
cd /d %dayzpath%
start "" "Server_Start_New.bat"
echo.
echo Starting Bec
timeout 10
:: start bec
set becpath="C:\Users\Administrator\Desktop\Dayz Server Files\dayz_1.sara\BEC"
cd /d %becpath%
start "" "bec.exe" -f Config.cfg
echo.
echo Server Started 100%

cls
@exit
 
Back
Top