Ok I am a noob to dedicated servers but we recently have our server setup and everything is working except bec. It just has problems running bec on restart and just runs the server... anyone have a better .bat than my current ones which are:
NapfStartServer.bat
set serverkill="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd /d %serverkill%
taskkill /im arma2oaserver.exe
echo.
echo Kill Bec.exe
set beckill="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\BEC\Napf"
cd /d %beckill%
taskkill /im bec.exe
timeout 10
echo.
echo Restarting
:: start bec
set becpath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\BEC\Napf"
cd /d %becpath%
start "Bec" "bec.exe" -f Config.cfg
echo.
echo Server Started 100%
timeout 10
:: start Server
set armapath="C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
cd /d %armapath%
start "arma2" /min "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_24_Napf\config.cfg" "-cfg=instance_24_Napf\basic.cfg" "-profiles=instance_24_Napf" -name=instance_24_Napf "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;" "-BEpath=C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\Expansion\BattlEye"
echo.
echo Server Started 100%
cls
@exit
Scheduler:
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet href="acs.xsl" type="text/xsl" ?>
<!-- Written by www.postapocalypse.us -->
<Scheduler>
<!-- Restart (Every 4 hours) -->
<job id="1">
<time>033000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 AUTO SERVER RESTART IN 30 MINUTE!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="2">
<time>035000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 AUTO SERVER RESTART IN 10 MINUTE!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="3">
<time>035500</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTE! UNTOW ALL VEHICLES!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="4">
<time>035900</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE! GET TO A SAFE PLACE!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="4">
<time>035930</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS! PLEASE LOG OFF!</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="5">
<time>040000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>#shutdown</cmd>
<cmdtype>0</cmdtype>
</job>
<job id="6">
<time>040000</time>
<delay>000000</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\NapfStartServer.bat</cmd>
<cmdtype>1</cmdtype>
</job>
<job id="7">
<time>001000</time>
<delay>000010</delay>
<day>1,2,3,4,5,6,7</day>
<loop>1</loop>
<cmd>say -1 *** Welcome to Post Apocalypse Epoch Napf Server *** Vehicles left in traders will unlock on restart *** Base Maitenance is required once every 14 days *** Do not build in high populated areas like barracks/atc/hangers etc *** Press P and click your name to check your bandwith! If you Bandwith is below 100 you will be banned so log out to lobby to fix it! ***</cmd>
<cmdtype>0</cmdtype>
</job>
</Scheduler>
Question
Friendly
Ok I am a noob to dedicated servers but we recently have our server setup and everything is working except bec. It just has problems running bec on restart and just runs the server... anyone have a better .bat than my current ones which are:
NapfStartServer.bat
Scheduler:
Link to comment
Share on other sites
20 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now