Jump to content
  • 0
Sign in to follow this  
EditedSnowHD

BEC Server restarts 1.0.6 [answered]

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

Share this post


Link to post
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 "[email protected]_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 "[email protected]_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

Share this post


Link to post
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. :)

Share this post


Link to post
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!

Share this post


Link to post
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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
  • 0

Start your BEC normally through your batch file, right click on the window header -> properties, uncheck quickEdit mode and Instert mode

Note, the settings should save per .bat/.cmd file, if you have another console app hanging, you may need to repeat these steps.

3iDIBfg.png

niZxh0o.png

Share this post


Link to post
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!

Share this post


Link to post
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,

 

Share this post


Link to post
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

 

Share this post


Link to post
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!

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, oldmatechoc said:

good to hear mate! @EditedSnowHD

I really appreciate all the help i get from this forum. 

Its super aweseom you can ask all your stupid questions, and no one will bash you. And realy help you out!

 

I really appreciate all the help!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By lordacus
      so i have been making a server between trying to get my provider to update their mods section. after getting this don i found the server with epoch and infistar were conflicting each other such as: when joining i can use infistar but when i press f9 or i to enter my inventory or f10 for the mobile pad it then conflicts (i think) infistar and i can no longer use it. any ideas on how to stop this
       
    • By vbawol
      Open world survival mod set just two years after the mass extinction of billions of people. Those that remain are left with remnants of a once technological society. Try to survive, build, or explore your way through the harsh dynamic environment.
      Features
      Powerful persistence framework for Arma 3 with native Windows and Linux dedicated server support. Fully configurable script based security checks. Base Building re-envisioned for Arma 3 PhysX. Persistent secure and insecure storage devices. Upgradeable locking doors. Barter based economy and trading systems backed a single currency ¤ called "Krypto". Hostile Environment with several different types of antagonists, Air and Water temperature extremes, and Earthquakes. Hunting, Fishing, Tame Dogs, Explore & Loot: Wrecked ships, Abandoned vehicles and buildings, Perform task based missions and more! Open source APL-SA Epoch Survival MP gamemode. Open source APL-SA Modders resource configs and Class List. Assets can be used as a mod dependency on Steam workshop.
    • By Achef
      Greetings!
      So I recently started up in a new host and haven't gotten to make the server run, found that a ca/modules bis_fnc issue is recurring but doesn't affect players when running coop missions like the default arma 2 oa ones, but when trying with Epoch hive won't connect/start despite being configured.
      Hive error
      Meanwhile at line 23...
       
      I'm still bad with Pastebin, sorry.
       
      This error has been chasing me for 2 days now
    • By WeepiestLem0n
      So I've been wanting to create a private ArmA 2 DayZ Epoch server for a bunch of my mates to play on, however I dont have a dedicated machine and want to run it on my PC. So I looked at the server download files on the GitHub page and followed the ReadMe, however I absolutely cannot figure out how to get the MySQL server and DB set up. I have downloaded MySQL Server on my PC and created the admin role, root passwords and ran it as a windows service. I now have no clue how to create the database and am wondering if anyone can help me set this up or let me know if I've done anything wrong. 

      I can add on Steam or Discord if need be for convenience.
    • By WinterLuka
      Winter Gaming is a gaming community, that was created in early 2018. We're currently running DayZ Epoch 1.0.6.2 server.
      Winter Gaming is a project created with passion – for players from players.
      On our server, the rules are equal for all players – no Pay2Win, no benefits for donating.
       
      Server IP: 164.132.203.240:2302
      Discord: https://discordapp.com/invite/ECBVKGA
      Website: http://www.wintergaming.eu
      Forum: http://www.wintergaming.eu/forums
       
      Server Configuration:
      Building Maintain - 10 Days Abandoned Vehicle Unlock - 7 Days Abandoned Safes/Lockboxes Unlock - 10 Days Building Limit – 250 Objects Max Base Height - 30m  
      Features:
      High FPS XP System (with awesome Perks and Trader) JSRS Compatible Wear Zombie Skin Plot Management Door Management Snap and Vector Building 20k Starting Money Coin System Running Zombies Ai Missions Ai Convoys Custom Loot Custom Locations Custom Traders Hidden Trader Selling Rare Items Toggle Grass/Environmental Sounds Deploy Bike/Motorcycle/Mozzie Walk Amongst The Dead Harvestable Hemp Tow/Lift Repair/Rearm – Service Points Bury Bodies Take Clothes Locate Vehicle Paychecks every 30 minutes Spawn Selection Abandoned Safe Mission Indestructible Metal/Cinder Bases Blow up door and more!  
      I hope to see You on the server!
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...