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 [email protected]
      Im setting up a new epoch 1.0.6 server with very little addons/mods installed, and when i was testing i realized safes/plotpoles/walls etc werent saving to the server database. Anyone got any ideas what might be wrong?
    • By EditedSnowHD
      Hallo all,
      First I want to say i'm not the owner of this server. I just really like the server! Why?
      Well it reminds me of the good old days, and it has an 'OG Epoch feeling'. This is because the map isn't edited and the loot is really balanced. 
      You can't just join, get 25000 coins and start shooting with a tank. It's not like those servers. Ow and another thing, if you open up a map, you won't see like 300 activities all going on at once, not turbid at all. 
      The server also uses the original silver/gold system and everything you find/build/shoot feels really rewarding. 
      The addons added to the server really add something special to the experience on the server, and not distract you from the original feeling.
      I have just played for a few days on the server, and there a few standard players (and the owner is really kind!). But we're still looking to share this amazing experience with other people who might be searching for the 'OG Epoch feeling'.
      Already sold? Here is the Server IP: 78.143.13.42 port: 2302 , Server name: [EU][PvP] GGWEZ DayZ Epoch Chernarus - FreshDB | HC | Gemcrafting
      Link to loading screen and rules: https://imgur.com/a/kIsfXaX

      Features:
      Deploy Bike (old bike).
      Gem Crafting (static Weapons, decorations and more).
      AI Base.
      Custom Vehicles.
      Missions.
      Indestructible bases.
      Take Clothes.
      Spawn Selection.
      Custom Economy and Loot (Really well balanced IMO).
      Lift object with heli.
      Custom Trader City (Really cozy).
      Refuel at gasstation.
      Dogs.
      Street, -Buildinglights (for at night).
      and much more!
      Mods:
      @Epoch
      There also is a Discord channel where you can meet up and share info (like about the AI base or player builds).
      Discord: discord.gg/M6w2fun
      Staff: Drashyy & Mfkrp9 & EditedSnow
      If you have any more questions, feel free to contact me! Hope to see you in Chernarus.
      Edit 10-05-2020: I'm now part of the staff! Im a moderator on their discord.

       
       
    • By THAC0_Gewch
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter/tree/Epoch_1.0.5.1
       
      Updated for 1.0.6.x
    • By MysteryGamersElite
      [EU/UK] SDF Epoch|Wiped April 1st|FPS++|WAI & DZMS|SSD|Coins|Hourly Paycheck|Custom Loot| AND MORE....
      BRAND NEW DATABASE + SERVER 1st APRIL 2020!
      Server IP: 164.132.67.27:2302
      Discord: https://discord.gg/BWJCjTe
      We offer 24 hour support via discord for any questions or issues with your game!
      Top Server Feature List:
      - Modded DZMS and WAI Mission System
      - Custom High Loot Tables and Improved Dynamic Vehicle Spawns
      - Paycheck Every Hour
      - Coin Based Currency with Storage Banking only
      - Deploy Bike & Mozzie
      - Locate Vehicle
      - Snap Build Pro
      - Group Management
      - Repair, Refuel and Rearm at Service Stations
      - Vehicle Key Changer
      - infiSTAR AntiHack
      - Virtual Garage
      - Change View Distance with Binoculars
      - 3 Hour Restarts starting from Midnight GMT
      - Garage Door Opener
      - Take Clothes
      - Indestructible Bases except doors
    • By Vitor99
      Hi everyone, i would like to know if there is any torrent links for Epoch and Overpoch, if you know some send me the link here
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...