Jump to content
  • 0
Fuchs

ArmA3Epoch.bat

Question

Who ever wrote this bat for ArmA2OA Epoch i really love you since i cant got it working with TADST !

Just delete the .txt after .bat and change the pathnames !!!!

@echo off

:: Settings:
set ARMA3path = C:\Server\ArmA3 //edit pathfile
set BECpath = C:\Server\ArmA3\BEC\bec.exe -f config.cfg  //edit pathfile
set port = 2312 //edit port
[do we need to set the db name and port or similar like for dayzepoch????]
set mod = @Epoch;@EpochHive;
timeout 5

:initialize
cls
:: see if our settings are correct
echo ARMA3 main directory is: C:\Server\ArmA3 //edit pathfile
echo ARMA3 BEC directory is:  C:\Server\ArmA3\BEC //edit pathfile
echo.
cd /d C:\Server\ArmA3 //edit pathfile
echo Switched to ArmA 3 main directory:
echo C:\Server\ArmA3\arma3server //edit pathfile
echo.
echo Killing current running server ...
taskkill /IM arma3server.exe
echo.

:start
timeout 5
echo Starting server again ...1
@start arma3server.exe [email protected];@EpochHive; -name=SC -config=C:\Server\ArmA3\SC\config.cfg -cfg=C:\Server\ArmA3\SC\basic.cfg -profiles=SC -port=2312 -cpuCount=8 -maxMem=2048 -exThreads=7 -noCB -noPause -noSound -malloc=system  //edit pathfile
echo.

:start_bec
timeout 25
echo starting BEC again...
cd /d C:\Server\ArmA3\BEC //edit pathfile
echo Switched to instance 1 BEC directory:
echo C:\Server\ArmA3\BEC //edit pathfile
start bec.exe -f Config.cfg
echo.
echo restart procedure completed
exit

Use the download not the file in the code over there...just an example where u have to edit the files !

 

I hope i didn't forgot something... otherwise reply !

 

Have fun !

 

cheers fox

a3epoch.bat.txt

Edited by Fuchs

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hmm, that batch just kills the server, then starts it. May fail if arma exe has crashed.

Also, it sets variables like arma path and port buy they are never used , everything is hard coded. Ewwww.

Also, this doesn't specifically work for tadst. Its just a simple restart script.

Feel free to check my keepalive out:

Share this post


Link to post
Share on other sites
  • 0

here is a good server monitor so a server starter and restarter if it is killed or crashes can also change the exe names to whatever program you want

@echo off
:start
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo Server monitored is not running, will be started now 
start "" /wait "D:\Games\dedicated\arma3server.exe" [email protected];@EpochHive; -config=D:\Games\dedicated\SC\config.cfg -port=2302 -profiles=SC -cfg=d:\gAMES\dedicated\SC\basic.cfg -name=SC
echo Server started succesfully
goto started
:loop
cls
echo Server is already running, running monitoring loop
:started
C:\Windows\System32\timeout /t 10
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
goto start

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×