Jump to content
  • 0

BEC Server restarts 1.0.6 [answered]


EditedSnowHD

Question

Hey,

 

Im looking for a way to automaticly restart my Dayz Epoch server after a few hours.

I already looked at some tutorials/scripts and stuff.

But there all talking about this scheduler.xml file, but i dont have that.

Do i need to create it myself? or can some one link me to an updated BEC restarts tutorial?

 

Thank you for your time

Greets

-EditedSnowHD

Link to comment
Share on other sites

23 answers to this question

Recommended Posts

  • 1

@EditedSnowHD here is all files for restart. http://www.mediafire.com/file/6afp6inam56tfq2/autorestart.rar

the 3 .bats goes in your server root.

in monitor.bat you need change the paths:

Spoiler

@echo off
cls
echo Watching arma2oaserver For Crashes/Restarts...
echo If you want to close arma2oaserver and this script, close the arma2oaserver window and type Y depending on your language followed by Enter.
title Raklatif's Arma2OA Monitor
set becpath="D:\testserver\instance_11_Chernarus\BattlEye\Bec"
cd /d %becpath%
:arma2oaserver
start "BattleEye Extended Control" "BEC Control Epoch.bat"
echo (%time%) arma2oaserver started.
start /wait "arma2" /min /high "D:\testserver\arma2oaserver.exe" -cpuCount=2 -maxmem=2047 -exThreads=1 -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;"
echo (%time%) WARNING: arma2oaserver closed or crashed, restarting.
// TIMEOUT /T 180 /NOBREAK
goto arma2oaserver

 

in premod_restart.bat

Spoiler

@echo off
echo Stopping server
cd D:\testserver
start /wait  Premod_stop.bat
echo Backing up database
start /wait  Premod_backup.bat
echo Starting BEC
cd D:\testserver\instance_11_Chernarus\BattlEye\Bec
start Bec.exe -f Config.cfg
echo Starting server
cd D:\testserver
start "arma2" /min "D:\testserver\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;"
ping 127.0.0.1 -n 5 >NUL

now in : BEserver.cfg you need change the pass for a new.. this is used to logged trough BEC to your server.

Spoiler

RConPassword password123
MaxPing 450

 

Now open: BEC Control Epoch,bat

Spoiler

:: KILL BATTLEYE
taskkill /im Bec.exe
timeout 1

TIMEOUT /T 60 /NOBREAK
cd\
cd "D:\epochserver\instance_11_Chernarus\BattlEye\Bec"
Bec.exe -f Config.cfg --dsc

 

Now in config.cfg

Spoiler

Ip = 127.0.0.1
Port = 2302
BePath = D:\epochserver\instance_11_Chernarus\BattlEye

 

Now in scheduler.xml (Do it in each Job id who call the premod_restart.bat.

Spoiler

<job id="4">
    <time>00:00:10</time>
    <delay>000000</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>0</loop>
    <cmd>D:\epochserver\Premod_restart.bat</cmd>
    <cmdtype>1</cmdtype>
</job>

 

 

 

Once you did all of this... just need launch your server with monitor.bat.

The restart is each 3hs.. and works with the local machine hour... so  if in the machine who are running the server is the 00:00 hs  then you gonna have a restart.

the restart time is:  00:00hs, 03am ,06am, 09am ,12pm ,15pm, 18pm, 21pm ,00:00hs

Link to comment
Share on other sites

  • 0

Everything you need to know about that is on the official BattlEye Extended Controls (BEC) Website. There you can also download all BEC files and the scheduler.xml is also provided in that download.

Check this site: http://ibattle.org/dashboard/

If you have any problems with setting this up, let us know. Sometimes this is a bit difficult especially when you do it the first time. :)

Link to comment
Share on other sites

  • 0
On 2017-5-17 at 0:08 PM, DAmNRelentless said:

Everything you need to know about that is on the official BattlEye Extended Controls (BEC) Website. There you can also download all BEC files and the scheduler.xml is also provided in that download.

Check this site: http://ibattle.org/dashboard/

If you have any problems with setting this up, let us know. Sometimes this is a bit difficult especially when you do it the first time. :)

Thank you very much, im going to look at it right now!

Link to comment
Share on other sites

  • 0
On 2017-5-18 at 4:30 PM, juandayz said:

@EditedSnowHD

you gonna find the scheduler in the download folder...

Thank you, i was looking for something like this!

I found the other link a bit hard to understand (still a bit noobish at this)

I just did everything you did, and changed all the path's. Are there still somethings i need to change? (also filled in mysql database name and everything in the monitor.bat)

 

But thank you for your time!

Link to comment
Share on other sites

  • 0
2 hours ago, EditedSnowHD said:

Thank you, i was looking for something like this!

I found the other link a bit hard to understand (still a bit noobish at this)

I just did everything you did, and changed all the path's. Are there still somethings i need to change? (also filled in mysql database name and everything in the monitor.bat)

 

But thank you for your time!

RemEmber change the paths in epoch control monitor.bat and config,cfg the one in the same folder with scheduler. Then for now on start your server with monitor.bat

Link to comment
Share on other sites

  • 0

Thank you guys for all the help!

But i have some questions though, do i need to change the IP/port in the config.cfg?

And when i open up the BEC program, it closes automaticly.. And the BattleEye Extended Contol gives an error: Login failed : Wrong! Password

 

Thank you for your time!

Link to comment
Share on other sites

  • 0

 

1-

Quote

And when i open up the BEC program, it closes automaticly.. And the BattleEye Extended Contol gives an error: Login failed : Wrong! Password

BEServer.cfg

RConPassword password123
MaxPing 450

 

2-

Quote

But i have some questions though, do i need to change the IP/port in the config.cfg?

 

...\BattlEye\Bec\Config\config.cfg

Ip = 127.0.0.1 // if ure running your server in a local machine.. 127.0.0.1 is equal to LocalHost
//But if ure running the server on vps , then yes change by your server ip.
Port = 2302//Change by your port,

 

Link to comment
Share on other sites

  • 0

Well i got some bad news, after all that you guys said. 

The server still isn't restarting out of it self.

And when opening the BEC.exe it says: Error: Missing the -f switch. Need a config file to startup!

 

Maybe that is the problem.

Im still looking into it, and still havent given up hope.

 

Thank you for your time!

@juandayz

 

Link to comment
Share on other sites

  • 0
19 hours ago, oldmatechoc said:

@EditedSnowHD


start  "UEP BattlEye Extended Control" /min "BEC.exe" -f "Config.cfg" --dsc

This is what I used.

Sorry, maybe a weird question.

But where do i put this line? 

(Still a big noob, and a lot to learn) 

*Edit: Do i need to replace thise line: (from the BEC Control Epoch.bat)

Bec.exe -f Config.cfg --dsc

with the one you gave me? 

 

Thank you for your time!

Link to comment
Share on other sites

  • 0
6 hours ago, oldmatechoc said:

looks like your already running the parameters.

Have you done your hosts file? @EditedSnowHD

My first comment was linking to a topic about it :)

I didn't but have now.

But will this fix the restarting problem? (I can't see how, but i still have a lot to learn)

 

Thank you for your time again!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...