Jump to content
mrwolv

Install Battleye + Server Start.bat +Server Restarts +Server Crash Restarter

Recommended Posts

It says "Failed to login. Trying to reconnect." I don't know what I missed, i checked with the guide twice...

Edited by EinfachRobin_
  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, EinfachRobin_ said:

It says "Failed to login. Trying to reconnect." I don't know what I missed, i checked with the guide twice...

check your ports ip passwords and folder paths make sure your ports are all fowarded to router and pc

Share this post


Link to post
Share on other sites
1 hour ago, mrwolv said:

check your ports ip passwords and folder paths make sure your ports are all fowarded to router and pc

I'm running the DayZ Server on a Windows Server. I disabled the firewall for test purposes but it's still now working. Checked all IP's and ports again like the installation guide says.

Share this post


Link to post
Share on other sites
On 24/9/2018 at 2:21 AM, mrwolv said:

Ok.... as alot of people are having alot off issues getting battleye to work i have compiled a zip file of 5 functions

  • Starts Dayz Server
  • Restart Your Server Automaticaly If It Crashes
  • Run Battleye On Your Server
  • Runs a 3 Hour Restart Timer For Your Server
  • Runs Server Messages Of Your Choice
  • Include Guide To Install Its Very Simple To Do

Also Includes Whitelist, BadWords, BadNames, Ban Files (Admin.Xml Not usefull Yet)

 

Just download, Extract Follow Guide & Walla Your In... Any Problems Just Let Me Know...

https://www.dropbox.com/s/mx6bnlg30eeeo9x/Battleye %26 Bat File %2B Guide To Install.rar?dl=0

 

Screenshot_3.png
As you can see from the photo the DayzSa Server Status cmd box will keep a check on your server if it

crashes it will auto restart!! This will also reboot your server on the timed restarts & as you can see BEC

is also running on the back cmd box. All you need to do is Run 1 .bat File

 

(Also If You Find Your Server wont Show In The Server List Just Open Ports 2302-2307, 27016  TCP/UDP On Your Router & Firewall Of Your Pc/Server. If You Have Problems With The Right I.P For Your Server Just Open CMD Type ipconfig & Look For Your IPv4 Address. . . . . . . . . . . : Thats The I.P You Need To Set In The Files)

Im getting an error "Failed to login..."

at the BE console window..

Share this post


Link to post
Share on other sites

EkEVI77.png

I got that and still cannot make the whitelist work. Could you please help me, what am I doing wrong?
I deleted # from the config, put my friend GUID in whitelist.txt but still everybody can join the server.

Edited by nastakcz

Share this post


Link to post
Share on other sites
On 28/9/2018 at 6:07 PM, SmashT said:

So I was getting the following error: Failed to login.

z1wgL3n.png

I solved this by changing my -BEpath on line 52 of Start Server Battleye.bat from


-BEpath =C:\Program Files (x86)\Steam\steamapps\common\DayZServer\battleye 

to


"-BEpath=C:\Program Files (x86)\Steam\steamapps\common\DayZServer\battleye"

So it now looks like this for me:


start DayZServer_x64.exe -config=serverDZ.cfg ip=127.0.0.1 -port=2302 -dologs -adminlog -netlog -freezecheck -noFilePatching "-BEpath=C:\Program Files (x86)\Steam\steamapps\common\DayZServer\battleye" -profiles=C:\Program Files (x86)\Steam\steamapps\common\DayZServer\PlayerLogs

I also added --dsc to line 71 but I don't think this was actually needed for me.


start Bec.exe -f Config.cfg --dsc

 

It didn't worked for me... I am getting the same message "incorrect login"

Share this post


Link to post
Share on other sites
On 9/24/2018 at 6:08 PM, therealunhinged said:

I think I am being completely stupid here but..... I don't think BEC is starting for me!

My Start BAT File


@echo off
TITLE DayZ SA Server - Status
COLOR 0A
:: Variables::
::DayZServer_64.exe path
set DAYZ-SA_SERVER_LOCATION="C:\Users\marti\Desktop\DAYZSERVER"
::Bec.exe path
set BEC_LOCATION="C:\Users\marti\Desktop\DAYZSERVER\battleye\Bec"
::::::::::::::

echo Agusanz
goto checksv
pause

:checksv
tasklist /FI "IMAGENAME eq DayZServer_x64.exe" 2>NUL | find /I /N "DayZServer_x64.exe">NUL
if "%ERRORLEVEL%"=="0" goto checkbec
cls
echo Server is not running, taking care of it..
goto killsv

:checkbec
tasklist /FI "IMAGENAME eq Bec.exe" 2>NUL | find /I /N "Bec.exe">NUL
if "%ERRORLEVEL%"=="0" goto loopsv
cls
echo Bec is not running, taking care of it..
goto startbec

:loopsv
FOR /L %%s IN (30,-1,0) DO (
	cls
	echo Server is running. Checking again in %%s seconds.. 
	timeout 1 >nul
)
goto checksv

:killsv
taskkill /f /im Bec.exe
taskkill /f /im DayZServer_x64.exe
goto startsv

:startsv
cls
echo Starting DayZ SA Server.
timeout 1 >nul
cls
echo Starting DayZ SA Server..
timeout 1 >nul
cls
echo Starting DayZ SA Server...
cd "%DAYZ-SA_SERVER_LOCATION%"
start DayZServer_x64.exe -config=serverDZ.cfg -port=2302 -dologs -adminlog -netlog -freezecheck -noFilePatching -BEpath=C:\Users\marti\Desktop\DAYZSERVER\Battleye -profiles=C:\Users\marti\Desktop\DAYZSERVER\PlayerLogs -cpucount=8
FOR /L %%s IN (45,-1,0) DO (
	cls
	echo Initializing server, wait %%s seconds to initialize Bec.. 
	timeout 1 >nul
)
goto startbec

:startbec
cls
echo Starting Bec.
timeout 1 >nul
cls
echo Starting Bec..
timeout 1 >nul
cls
echo Starting Bec...
timeout 1 >nul
cd "%BEC_LOCATION%"
start Bec.exe -f Config.cfg --dsc
goto checksv

My ConFig in BEC Folder


[Bec]
Ip = MYIP  #ADD YOUR IP.
Port = 2302
BePath = C:\Users\marti\Desktop\DAYZSERVER\battleye
Admins = admins.xml
Commands = commands.xml
LogDir = Config

[Misc]

# Only allow english chars.
AsciiNickOnly = True

# Kick players who has listed chars in their name
DisallowPlayerNameChars	= ё,я,ш,е,р,т,ы,у,и,о,п,ю,щ,э,а,с,д,ф,г,ч,й,к,л,ь,ж,з,х,ц,в,б,н,м,ъ,Ё,Я,Ш,Е,Р,Т,Ы,У,И,О,П,Ю,Щ,Э,А,С,Д,Ф,Г,Ч,Й,К,Л,Ь,Ж,З,Х,Ц,В,Б,Н,М,Ъ

ServerExeName = DayZServer_x64.exe
Color = 0f
ConsoleHeight = 65
ConsoleWidth = 100
Timeout = 60
Scheduler = Scheduler.xml
AsciiChatOnly = False
WordFilterFile = BadWords.txt
#WhiteListFile = WhiteList.txt
#WhileListKickMsg = You are not in the whitelist. 
NickFilterFile = BadNames.txt
ChatChannelFiles = false
MinPlayerNameLength	= 3
MaxPlayerNameLength	= 20
SlotLimit = 120
SlotLimitKickMsg = The Server has reached its player limit.
Ban = 3

BEServer_x64


RConPassword MYPASSWORD
RestrictRCon 0
RConPort 2302
RConIP MYIP

 

My Server starts fine from the BAT but it seems that BEC keeps trying to restart as it hasn't loaded in? Would anyone mind looking over the above and see if I have messed up somewhere.

Thanks

 

Ip = MYIP #ADD YOUR IP. add your ip , and RRcon add password here to from server.cfg.

Share this post


Link to post
Share on other sites
1 hour ago, LastS said:

It didn't worked for me... I am getting the same message "incorrect login"

ip=127.0.0.1 remove this from start.bat or do it right way like this -ip=127.0.0.1

Edited by eggy785

Share this post


Link to post
Share on other sites
On 11/10/2018 at 4:06 PM, EinfachRobin_ said:

I'm running the DayZ Server on a Windows Server. I disabled the firewall for test purposes but it's still now working. Checked all IP's and ports again like the installation guide says.

show me your bec setup  like start.bat and config

Share this post


Link to post
Share on other sites
1 hour ago, LastS said:

It didn't worked for me... I am getting the same message "incorrect login"

@echo off
TITLE DayZ SA Server - Status
COLOR 0A
:: Variables::
::DayZServer_64.exe path
set DAYZ-SA_SERVER_LOCATION="C:\Dayzserver"
::Bec.exe path
set BEC_LOCATION="C:\Dayzserver\Battleye\Bec"
::::::::::::::

echo Agusanz
goto checksv
pause

:checksv
tasklist /FI "IMAGENAME eq DayZServer_x64.exe" 2>NUL | find /I /N "DayZServer_x64.exe">NUL
if "%ERRORLEVEL%"=="0" goto checkbec
cls
echo Server is not running, taking care of it..
goto killsv

:checkbec
tasklist /FI "IMAGENAME eq Bec.exe" 2>NUL | find /I /N "Bec.exe">NUL
if "%ERRORLEVEL%"=="0" goto loopsv
cls
echo Bec is not running, taking care of it..
goto startbec

:loopsv
FOR /L %%s IN (30,-1,0) DO (
    cls
    echo Server is running. Checking again in %%s seconds.. 
    timeout 1 >nul
)
goto checksv

:killsv
taskkill /f /im Bec.exe
taskkill /f /im DayZServer_x64.exe
goto startsv

:startsv
cls
echo Starting DayZ SA Server.
timeout 1 >nul
cls
echo Starting DayZ SA Server..
timeout 1 >nul
cls
echo Starting DayZ SA Server...
cd "%DAYZ-SA_SERVER_LOCATION%"
start DayZServer_x64.exe -config=serverDZ.cfg -port=2302 -dologs -adminlog -netlog -freezecheck -noFilePatching -BEpath=C:\DayZServer\Battleye -profiles=C:\Dayzserver\PlayerLogs
FOR /L %%s IN (45,-1,0) DO (
    cls
    echo Initializing server, wait %%s seconds to initialize Bec.. 
    timeout 1 >nul
)
goto startbec

:startbec
cls
echo Starting Bec.
timeout 1 >nul
cls
echo Starting Bec..
timeout 1 >nul
cls
echo Starting Bec...
timeout 1 >nul
cd "%BEC_LOCATION%"
start Bec.exe -f Config.cfg
goto checksv

 

 

 

 

try this one

Share this post


Link to post
Share on other sites

Scheduler.xml is not working correctly!

Messages written like this:

<job id="0">
<time>000900</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 ADD MESSAGE HERE</cmd>
<cmdtype>0</cmdtype>
</job>

work.

But the restart Message:

<job id="5">
<time>05:55:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 This server will restart in 5 minutes</cmd>
<cmdtype>0</cmdtype>
</job> 

and also the shutdown job

<job id="10">
<time>09:00:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>
</job>

wont work!

 

Is this only happening to me???

I think its about the time format in HH:MM:SS is not supportet with this BEC version!

Share this post


Link to post
Share on other sites

Im having an issue with the crash restarter, Server gets error "Program Stopped Working" box and the restarter doesnt restart it, is there a better way to fix this so it restarts when program is running and gets this "Program Stopped Working" error? im using this type of bat file btw...

Quote

@echo off
TITLE DayZ SA Server - Status
COLOR 0A
:: Variables::
::DayZServer_64.exe path
set DAYZ-SA_SERVER_LOCATION="C:\Dayzserver"
::Bec.exe path
set BEC_LOCATION="C:\Dayzserver\Battleye\Bec"
::::::::::::::

echo Agusanz
goto checksv
pause

:checksv
tasklist /FI "IMAGENAME eq DayZServer_x64.exe" 2>NUL | find /I /N "DayZServer_x64.exe">NUL
if "%ERRORLEVEL%"=="0" goto checkbec
cls
echo Server is not running, taking care of it..
goto killsv

:checkbec
tasklist /FI "IMAGENAME eq Bec.exe" 2>NUL | find /I /N "Bec.exe">NUL
if "%ERRORLEVEL%"=="0" goto loopsv
cls
echo Bec is not running, taking care of it..
goto startbec

:loopsv
FOR /L %%s IN (30,-1,0) DO (
    cls
    echo Server is running. Checking again in %%s seconds.. 
    timeout 1 >nul
)
goto checksv

:killsv
taskkill /f /im Bec.exe
taskkill /f /im DayZServer_x64.exe
goto startsv

:startsv
cls
echo Starting DayZ SA Server.
timeout 1 >nul
cls
echo Starting DayZ SA Server..
timeout 1 >nul
cls
echo Starting DayZ SA Server...
cd "%DAYZ-SA_SERVER_LOCATION%"
start DayZServer_x64.exe -config=serverDZ.cfg -port=2302 -dologs -adminlog -netlog -freezecheck -noFilePatching -BEpath=C:\DayZServer\Battleye -profiles=C:\Dayzserver\PlayerLogs
FOR /L %%s IN (45,-1,0) DO (
    cls
    echo Initializing server, wait %%s seconds to initialize Bec.. 
    timeout 1 >nul
)
goto startbec

:startbec
cls
echo Starting Bec.
timeout 1 >nul
cls
echo Starting Bec..
timeout 1 >nul
cls
echo Starting Bec...
timeout 1 >nul
cd "%BEC_LOCATION%"
start Bec.exe -f Config.cfg
goto checksv

 

 

Help would be appreciated.

Share this post


Link to post
Share on other sites

bump

Nobody has a better solution to auto restart the crashed 'DayZ Stopped Working" i mean the batch code just needs to recognize that the program has stopped working or errorlevel unknown and kill restart it.

Ideas on what coding to use please.

Share this post


Link to post
Share on other sites
32 minutes ago, ICEMAN-FMCS said:

bump

Nobody has a better solution to auto restart the crashed 'DayZ Stopped Working" i mean the batch code just needs to recognize that the program has stopped working or errorlevel unknown and kill restart it.

Ideas on what coding to use please.

https://www.reddit.com/r/CFTools/comments/9tuel0/cfomegasc_setup/

 

Share this post


Link to post
Share on other sites

A little update for those who have the server crash and the restarter not restarting it because its still seen as running in task manager.

A simple solution,...

Add this to you starter/crash restarter script

taskkill /fi "IMAGENAME eq DayZServer_x64.exe" /fi "memusage lt 1000"

This will look to see if the server is using a small amount of memory indicating a crash, ie I notice when my server has the crash and has box popped up saying "DayZ has Stopped Working" it shows as using little to no memory at that time so I figured it would be a good trigger for the restarter.

 

Devs need to apply better monitoring code in the server exe so it knows its crashed and states it in the task manager.

Edited by ICEMAN-FMCS

Share this post


Link to post
Share on other sites

Runs on Single Server work fine but i can't create multiple Server 2 and 3 
anyone know how to create multiple server with bec?

Share this post


Link to post
Share on other sites

*solved*

Same issues here.

Whitelist and bad words still won't work for me...

*solved*

Edited by Lucas Films

Share this post


Link to post
Share on other sites

@mrwolv First of all, thank you for this! I hated to setup BEC but now its easy. So far it seems that everything is working fine, only the Message Sheduler seems to have a Problem. It repeats the previous Messages. 

First Message shows up: "Welcome to my Server"

Second Message shows up: "Welcome to my Server" "Please be Friendly"

Third Message shows up: "Welcome to my Server" "Please be Friendly" "This Server restarts every 3 Hours"

 

And so on. I dont think this is intended to work like this.

Share this post


Link to post
Share on other sites

Its works for me,  but my server do not load the mods. any solution ?

 

Edited by Valish33

Share this post


Link to post
Share on other sites
23 minutes ago, Valish33 said:

Its works for me,  but my server do not load the mods. any solution ?

 

Did you add the Mods in Line 52 off the "Start Server Battleye.bat" ?

 

Share this post


Link to post
Share on other sites
22 minutes ago, Valish33 said:

@tylandrio do i need intall bec before install this tutorial? or this packet include all?

 

PD: Sorry for my english, im from Argentina!

The Package includes all Just download the Zip and Follow The Step in the First Post

Edited by tylandrio

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×