Jump to content
  • 0

Setup BEC auto restart problems


Xenosis

Question

Hello 

 

I'm trying to setup BEC on my new Epoch server..

 

But can't figure out how to config it to epoch servers..

 

I'm following this guide:

 

http://dayzepoch.com/forum/index.php?/topic/1425-bec-server-messages-not-working/?p=10131

 

I'm not sure if I setup the config file correctly. And he writes about restart_1.bat But i dont have that file.. But found the files i think on another forum:

 

http://dayzcc.tk/index.php?page=Thread&threadID=1619

 

 

But it looks like it setup to a different dayz mod..And I don't have the skills to rewrite it..

 

 

Anyone got a solution or a working BEC setup that can be shared??

 

//Edit

 

Some information about my server:

 

Root server with Windows 8

 

Used this tutorial to setup epoch server:

http://www.youtube.com/watch?v=O3vgAWLF-8M

 

Paths:

 

My main server folder:

C:\Dayz Server

 

 

MPmission folder:

C:\Dayz Server\MPMissions\DayZ_Epoch_11.Chernarus

 

Epoch server folder:

C:\Dayz Server\@DayZ_Epoch_Server

 

Added my BEC folder here:

C:\Dayz Server\BEC

 

Need anything else?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Okay update:

 

Was playing around with the config file, and now when I run BEC i get this:

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

Bec, Arma 2/3 Server Tool V.1.58
Copyright (C) by Stian Mikalsen

Email : [email protected]
Web   : http://www.ibattle.org

Remember to donate for more great updates!

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

12:45:55 : Waiting for server startup \

My server start file looks like this:

 

@echo off
start /REALTIME "arma2" /min "Expansion\beta\arma2oaserver.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_Epoch;@DayZ_Epoch_Server;" -cpuCount=4

 

 

But when I run the server from my shortcut on the desktop and run bec1.exe i get this error:

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

Bec, Arma 2/3 Server Tool V.1.58
Copyright (C) by Stian Mikalsen

Email : [email protected]
Web   : http://www.ibattle.org

Remember to donate for more great updates!

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

12:48:40 : Starting plugin : Rss
12:48:40 : Checking for new Bec version...
12:48:43 : Bec is running latest version!
12:48:44 : Connecting to Battleye server 127.0.0.1:2302
12:48:44 : Error :: data type None can not be used as input.
12:48:44 : Unexpected error :: Something strange happend when trying to connect to BeServer
Unhandled Error
Traceback (most recent call last):
  File "Bec.py", line 4303, in Main

  File "Bec.py", line 4298, in startReactor

  File "twisted\internet\base.pyo", line 1169, in run

  File "twisted\internet\base.pyo", line 1178, in mainLoop

--- <exception caught here> ---
  File "twisted\internet\base.pyo", line 800, in runUntilCurrent

  File "Bec.py", line 4186, in startConnect

exceptions.SystemExit: 0

//Edit

Found the error above, was missing the beserver.cfg file, so I made one with my RCON password.. And now i got this in BEC:

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

Bec, Arma 2/3 Server Tool V.1.58
Copyright (C) by Stian Mikalsen

Email : [email protected]
Web   : http://www.ibattle.org

Remember to donate for more great updates!

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

13:18:40 : Starting plugin : Rss
13:18:40 : Checking for new Bec version...
13:18:43 : Bec is running latest version!
13:18:44 : Connecting to Battleye server MY-IP:2302
13:18:44 : RCon admin #0 (MY-IP:51734) logged in
13:18:55 : RCon admin #0: (Global) ArmaHolic News: PG Services - Private Military Company Patch released

I Do still need to figure out how to make Restart_1.bat as mentioned in the tutorial.. So I can setup some scheduled restarts..

 

Anyone knows how I can fix this?

Link to comment
Share on other sites

  • 0

Okay got it to work with the file below:

taskkill /im arma2oaserver.exe
taskkill /im bec.exe
taskkill /im DaRT.exe
 
timeout 60
 
 
:: start the server..
set dayzpath="C:\Dayz_Server\"
cd /d %dayzpath%
start "" "DayZ_Epoch_instance_11_Chernarus.bat"
 
timeout 10
:: start bec
set becpath="C:\Dayz_Server\BEC"
cd /d %becpath%
start "" "bec.exe" -f Config.cfg
 
 
timeout 3
:: start dart
set dartpath="C:\Users\Server\Desktop\DaRT\"
cd /d %dartpath%
start "" "DaRT.exe"
 
cls
exit

But i want some server clean up done when it's down, so i thought about making bat files that cleans the mysql like this:

:: clean the server..
set cleandir="C:\Users\Charlie\Desktop\DayZServerFiles\"
cd /d %cleandir%
 
start "" "VehicleCleanup.bat"
 
timeout 5
 
start "" "TraderRestock.bat"
 
timeout 5
 
start "" "CleanDead.bat"
 
timeout 5

But can't get the bat files to work.. I've tried the method below, but fails when running.

 

http://dayzepoch.com/forum/index.php?/topic/521-sql-clean-up/

 

I've using mysql 5.6 and Navicat Premium on windows 8.. and my mysql path is:

C:\Program Files\MySQL\MySQL Server 5.6\bin

 

I've tried setting up events in Navicat.. But it don't seem to work..

 

also how do I change the debug monitors restart time, it says 353 hours and 353 min.. how do i change it so it match my scheduled restarts?

Link to comment
Share on other sites

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