Jump to content

Lith

BattlEye Extended Controls - Scheduler Question

Recommended Posts

Other than making sure your RCon settings are set correctly, I would ask the host to make sure that it's actually running and connecting correctly. I'm not too sure how Vilayer (I assume from the directories) does it.

  • Like 1

Share this post


Link to post
Share on other sites

Ok I went throught this whole post and tried everything here and cant get it to work and no  error about scheduler or BEC in any log files please take a few moments to review my cfg and .bat.

Config.cfg

[Bec]
Ip = 127.0.0.1
Port = 2302
BePath = C:\DayZServer\battleye
Admins = Admins.xml
Commands = Commands.xml
LogDir = Config
#Scheduler = C:\DayZServer\battleye\Bec\Config\Scheduler.xml <------ tested this to see it would work and did not

[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

 

.bat

@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 -mod=@RPCFramework;ZomBerry;@KillFeed;@AirdropRedux;@NotificationFramework;@BuilderItems;@Trader
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

BEServer_x64.cfg

RConPassword #MY PASSWORD WAS HERE #
RestrictRCon 0 #1 or 0 <------ ? 1 or 0? I tried both
RConPort 2302
RConIP 0.0.0.0 <---- MY IP like from WHATSMYIP.com or my local ip of the machine? 127.0.0.1? or 192.#.#.# ?

Scheduler.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<Scheduler>
<!-- Repeating messages every 15 minutes -->
<!-- <job id="0">
<time>000500</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> -->

<!-- this job will start at 08:00:00 (8 am) and will repeat itself every 15 min forever for defined days -->
 <job id='0'>
     <day>1,2,3,4,5,6,7</day>
     <start>00:00:20</start>
     <runtime>000200</runtime>
     <loop>-1</loop>
     <cmd>say -1 job:5 forever</cmd>
 </job>

<job id="1">
<time>00:00:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 TESTING</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="2">
<time>00:01:00</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 TESTING</cmd>
<cmdtype>0</cmdtype>
</job>

<job id="3">
<time>003600</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>

<job id="4">
<time>004500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>-1</loop>
<cmd>say -1 This server restarts every 3 hours</cmd>
<cmdtype>0</cmdtype>
</job>
<!-- End repeat messages -->

<!-- 06:00 restart -->
<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>
<job id="6">
<time>05:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="7">
<time>06: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>
<!-- End 06:00 restart -->

<!-- 09:00 restart -->
<job id="8">
<time>08: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>
<job id="9">
<time>08:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</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>
<!-- End 09:00 restart -->

<!-- 12:00 restart -->
<job id="11">
<time>11: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>
<job id="12">
<time>11:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="13">
<time>12: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>
<!-- End 12:00 restart -->

<!-- 15:00 restart -->
<job id="14">
<time>14: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>
<job id="15">
<time>14:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="16">
<time>15: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>
<!-- End 15:00 restart -->

<!-- 18:00 restart -->
<job id="17">
<time>17: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>
<job id="18">
<time>17:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="19">
<time>18: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>
<!-- End 18:00 restart -->

<!-- 21:00 restart -->
<job id="20">
<time>20: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>
<job id="21">
<time>20:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="22">
<time>21: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>
<!-- End 21:00 restart -->

<!-- 00:00 restart -->
<job id="23">
<time>23: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>
<job id="24">
<time>23:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="25">
<time>00: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>
<!-- End 00:00 restart -->


<!-- 03:00 restart -->
<job id="26">
<time>02: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>
<job id="27">
<time>02:59: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 1 minute</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="28">
<time>03: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>
<!-- End 03:00 restart -->
</Scheduler>

 

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

×