Installing Bec - Won't connect to server

$toney

Well-Known Member
Hi I've installed Bec and it doesn't connect to my server.

It starts up and just sais it's waiting for the server to start.

I've set the IP to 127.0.0.1 as Bec is on the dedi box that my server is running on. Also I set the port to 2302 which is the default. What could be the problem?
 
is your path to the battleye folder correct?
do you have the password file setup in your config\battleye folder?
look in your bec\logs folder and what does the error log say?
 
is your path to the battleye folder correct?
do you have the password file setup in your config\battleye folder?
look in your bec\logs folder and what does the error log say?

I have my BE folder set correctly. Not sure what you mean by password file? I'll check the logs and see what it sais.
 
Ah I see. I was hoping you were going to show me a different file.

I have specified the rcon password in that file and the max ping. That was done when I first put the server online.

Here is my password file it's called "BEServer_active_3b10"

Code:
MaxPing 500
RConPassword ********

Here is my config file for Bec it's called "config"

Code:
[Bec]
Ip = 127.0.0.1
Port = 2302
BePath = D:\DayZ\DayZ_Server\cfgdayz\BattlEye
Admins = Admins.xml
Commands = Commands.xml

[Misc]
ServerExeName = arma2oaserver.exe
 
Check your bec folder for an error log.
Bec is fickle and shouldn't be as difficult as it is.

Delete the misc section to remove that possible problem.
 
But are there log files at all? Bec/logs folder. If the bec is actually running it creates those log files. If they are there then bec is definately running without error. I would try the actual ip, check the server port, the server is running before bec is started, .. I dont know what else. I set up twi this week fir people and had no issues but I HAVE just had it refuse in the past... but that was qhen I knew less
 
Yeah the log files have been created inside Log/config/BeLog - Log/config/Chat - Log/config/Error but there is nothing inside them.
 
Well that's weird I just put --dsc in the start up bat file and it didn't check if the server was online and just connected to it with no problems lol...
 
Ok Bec is running now. Could you please tell me exactly what I need to setup auto restarts on my server? I see the scheduler stuff in Bec and I get how to do that I think. But I'd like a full guide or something on setting it up so it just runs without my attention required. Like 2 hour restarts. But I know I need something to re-launch Bec and the server when it restarts. I guess a .bat script to check when it closes?
 
uncomment the scheduler = scheduler.xml
it should run. Here is a working scheduler file that restarts every 6 1/2 hours and has messages. If its working you will have the messages display after just a few minutes saying the server has just restarted.
If you are on a server host (dayz.st hfb etc) then use the #shutdown command and the server host will automatically start the server again. If you are on a VPS, Dedicated or local then you need to have a batch file, I will post that too.

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>

<Scheduler>

   
    <!-- *** RESTARTS *** -->
    <!-- 15 min warning restart -->
    <job id="0">
        <time>061500</time>
        <delay>000000</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>062000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 *** RESTARTING IN 10 MINUTES ***</cmd>
        <cmdtype>0</cmdtype>           
    </job>
        <job id="2">
        <time>062500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 *** RESTARTING IN 5 MINUTES ***</cmd>
        <cmdtype>0</cmdtype>           
    </job>
        <job id="3">
        <time>062900</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 *** RESTARTING IN 1 MINUTE ... Server will be back up in just 2-3 minutes after that ***</cmd>
        <cmdtype>0</cmdtype>           
    </job>
   
   
        <job id="4">
        <time>063000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#shutdown</cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
   
    <!-- Schedular to be shown all days in the week. -->
   
    <job id="5">
        <time>006000</time>
        <delay>001000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Videos, NOOBIE Howto's, Player Statistics @ WWW.PIZZAMILITIA.COM **</cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
   
    <job id="6">
        <time>006000</time>
        <delay>002000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Be alert, recon every area before entering, shoot first and SURVIVE  **</cmd>   
        <cmdtype>0</cmdtype>
    </job>
    <job id="7">
        <time>006000</time>
        <delay>003000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Priests don't use cars, they keep bikes at most of the churches  **</cmd>   
        <cmdtype>0</cmdtype>
    </job>   
    <job id="8">
        <time>006000</time>
        <delay>004000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** NPC's are people too !!! **</cmd>   
        <cmdtype>0</cmdtype>
    </job>
   
    <job id="9">
        <time>006000</time>
        <delay>005000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Private Radio Comms are available using TEAMSPEAK - join ts3.pizzamilitia.com - more info on our website**</cmd>   
        <cmdtype>0</cmdtype>
    </job>
    <job id="10">
        <time>006000</time>
        <delay>006000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** DayZ is NOT about killing other players. Its about the challenge of SURVIVAL ( ** the killing is just the FUN part ** )</cmd>   
        <cmdtype>0</cmdtype>
    </job>
    <job id="11">
        <time>041500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** Night is short (about an hour) ***DONT PANIC***. you have FLARES and a flashlight !!! **</cmd>   
        <cmdtype>0</cmdtype>
    </job>
    <job id="12">
        <time>000500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** WELCOME BACK! The server has just restarted. Its now 6 hours until Night **</cmd>   
        <cmdtype>0</cmdtype>
    </job>

    <job id="13">
        <time>002000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** visit our website @ WWW.PIZZAMILITIA.COM  **</cmd>   
        <cmdtype>0</cmdtype>
    </job>   
   
    <job id="14">
        <time>004500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** All credit for custom buildings and camps goes to Nerp. ** THANKS NERP **</cmd>   
        <cmdtype>0</cmdtype>
    </job>

    <job id="15">
        <time>006000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** Vehicles refuel at the full Stations. ** </cmd>   
        <cmdtype>0</cmdtype>
    </job>   
   </Scheduler>

Restart file for dedicated or vps dayz servers.
Code:
@echo off
taskkill /im bec2.exe /f
taskkill /im arma2oaservernapf.exe /f

cd C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead

start /MIN arma2oaservernapf.exe -port=1234 -config=instance_24_Napf\config.cfg -cfg=instance_24_Napf\basic.cfg -profiles=instance_24_Napf -name=instance_24_Napf -mod=expansion\beta;expansion\beta\expansion;ca;@DayZ_Epoch;@DayZ_Epoch_Server;

timeout /t 20

cd c:\servertools2

start /MIN bec2.exe -f config.cfg
 
uncomment the scheduler = scheduler.xml
it should run. Here is a working scheduler file that restarts every 6 1/2 hours and has messages. If its working you will have the messages display after just a few minutes saying the server has just restarted.
If you are on a server host (dayz.st hfb etc) then use the #shutdown command and the server host will automatically start the server again. If you are on a VPS, Dedicated or local then you need to have a batch file, I will post that too.

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>

<Scheduler>

  
    <!-- *** RESTARTS *** -->
    <!-- 15 min warning restart -->
    <job id="0">
        <time>061500</time>
        <delay>000000</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>062000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 *** RESTARTING IN 10 MINUTES ***</cmd>
        <cmdtype>0</cmdtype>          
    </job>
        <job id="2">
        <time>062500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 *** RESTARTING IN 5 MINUTES ***</cmd>
        <cmdtype>0</cmdtype>          
    </job>
        <job id="3">
        <time>062900</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 *** RESTARTING IN 1 MINUTE ... Server will be back up in just 2-3 minutes after that ***</cmd>
        <cmdtype>0</cmdtype>          
    </job>
  
  
        <job id="4">
        <time>063000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>#shutdown</cmd>  
        <cmdtype>0</cmdtype>
    </job>
  
  
    <!-- Schedular to be shown all days in the week. -->
  
    <job id="5">
        <time>006000</time>
        <delay>001000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Videos, NOOBIE Howto's, Player Statistics @ WWW.PIZZAMILITIA.COM **</cmd>  
        <cmdtype>0</cmdtype>
    </job>
  
  
    <job id="6">
        <time>006000</time>
        <delay>002000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Be alert, recon every area before entering, shoot first and SURVIVE  **</cmd>  
        <cmdtype>0</cmdtype>
    </job>
    <job id="7">
        <time>006000</time>
        <delay>003000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Priests don't use cars, they keep bikes at most of the churches  **</cmd>  
        <cmdtype>0</cmdtype>
    </job>  
    <job id="8">
        <time>006000</time>
        <delay>004000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** NPC's are people too !!! **</cmd>  
        <cmdtype>0</cmdtype>
    </job>
  
    <job id="9">
        <time>006000</time>
        <delay>005000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** Private Radio Comms are available using TEAMSPEAK - join ts3.pizzamilitia.com - more info on our website**</cmd>  
        <cmdtype>0</cmdtype>
    </job>
    <job id="10">
        <time>006000</time>
        <delay>006000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 ** DayZ is NOT about killing other players. Its about the challenge of SURVIVAL ( ** the killing is just the FUN part ** )</cmd>  
        <cmdtype>0</cmdtype>
    </job>
    <job id="11">
        <time>041500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** Night is short (about an hour) ***DONT PANIC***. you have FLARES and a flashlight !!! **</cmd>  
        <cmdtype>0</cmdtype>
    </job>
    <job id="12">
        <time>000500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** WELCOME BACK! The server has just restarted. Its now 6 hours until Night **</cmd>  
        <cmdtype>0</cmdtype>
    </job>

    <job id="13">
        <time>002000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** visit our website @ WWW.PIZZAMILITIA.COM  **</cmd>  
        <cmdtype>0</cmdtype>
    </job>  
  
    <job id="14">
        <time>004500</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** All credit for custom buildings and camps goes to Nerp. ** THANKS NERP **</cmd>  
        <cmdtype>0</cmdtype>
    </job>

    <job id="15">
        <time>006000</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>0</loop>
        <cmd>say -1 ** Vehicles refuel at the full Stations. ** </cmd>  
        <cmdtype>0</cmdtype>
    </job>  
   </Scheduler>

Restart file for dedicated or vps dayz servers.
Code:
@echo off
taskkill /im bec2.exe /f
taskkill /im arma2oaservernapf.exe /f

cd C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead

start /MIN arma2oaservernapf.exe -port=1234 -config=instance_24_Napf\config.cfg -cfg=instance_24_Napf\basic.cfg -profiles=instance_24_Napf -name=instance_24_Napf -mod=expansion\beta;expansion\beta\expansion;ca;@DayZ_Epoch;@DayZ_Epoch_Server;

timeout /t 20

cd c:\servertools2

start /MIN bec2.exe -f config.cfg

Thankyou very much! :)
 
My restart bat script doesn't seem to be working?

Code:
@echo off
taskkill /im bec2.exe /f
taskkill /im arma2oaserver.exe /f

cd D:\DayZ\DayZ_Server\Expansion\beta

start /MIN arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz

timeout /t 20

cd D:\DayZ\Bec

start /MIN bec.exe -f config.cfg --dsc
 
I don't start servers by going to expansion/beta. Not sure why some people do, but then it requires a different -mod= line.
This bat file is meant to be run from the base folder. It looks to me like if you just change your
cd D:\DayZ\DayZ_Server\Expansion\beta
to
cd D:\DayZ\DayZ_Server

it will start with the correct (for my method) arma20aserver.exe and then it loads the expansion/beta files in the -mod= line.

BTW: the timeout /t 20 is in there just to make sure the server is running before BEC starts and tries to connect to it. If it takes longer for your server to start than 20-30 seconds then BEC will shutdown when it cant connect to the server. Not sure how the --dsc would react there, so if you have trouble fool with the timeout.
 
Don't worry bro I sorted it. I think we're using different private hive files from each other. Thank you for your help it has been muchly appreciated and helpful.
 
All the files are the same. They all use arma2 and the common folders. doesn't matter the mod or database, I just drop missions and server pbo's into my server and they work.
Show me how you start the server. A call to arma2 in there to load arma2 and OA ...?
someone else will have this problem and will be wondering how you fixed it ..
 
All the files are the same. They all use arma2 and the common folders. doesn't matter the mod or database, I just drop missions and server pbo's into my server and they work.
Show me how you start the server. A call to arma2 in there to load arma2 and OA ...?
someone else will have this problem and will be wondering how you fixed it ..

It was simple how I fixed it I just added --dsc when starting bec that's all.
 
Back
Top