Jump to content
  • 0
Sign in to follow this  
Breau

Auto start mission on restart

Question

Anyone know how to get your missions to auto start when the server reboot without having someone to login to arma 3 and join the server ? ATM I got my battleye auto restarting my server but it does not start the missions ?

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

It seems like my battleye only restart the server when there is someone online, is there anyway I could add in my scheduler just to auto restart after 3 hours lets say ? 

 

Here is my config: 

 

<Scheduler>
<job id="0">
<start>034500</start>
<runtime>000000</runtime>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server Restart in 15 Minutes!</cmd>
</job>
<job id="1">
<start>035000</start>
<runtime>000000</runtime>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server Restart in 10 Minutes!</cmd>
</job>
<job id="2">
<start>035500</start>
<runtime>000000</runtime>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server Restart in 5 Minutes!</cmd>
</job>
<job id="3">
<start>035800</start>
<runtime>000000</runtime>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>say -1 Server Restart in 2 Minutes! LOGOUT NOW!</cmd>
</job>
<job id="4">
<start>040000</start>
<runtime>000000</runtime>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<cmd>#restart</cmd>
</job>
</Scheduler>

Share this post


Link to post
Share on other sites
  • 0
Breau

 

You could do something a little more than #restart. I do a kill command for A2. A3 I moved to firedaemon but this still workings. I rename my BEC to match the instance but you could just change bec2302.exe to bec.exe.

 

Hope that helps.

 

<job id="7">
<start>060000</start>
<day>1,2,3,4,5,6,7</day>
<loop>0</loop>
<runtime>000000</runtime>
<cmd>C:\Games\BecA2\kill\2302.bat</cmd>
<cmdtype>1</cmdtype>
</job>

2302.bat

@echo off
taskkill /F /IM Bec2302.exe
exit

Share this post


Link to post
Share on other sites
  • 0

Here is the little powershell script I wrote below, just paste into notepad, save as whatevernameuwant.ps1 and setup as a task. Just changed whatever config files and stuff you have and point the parameters to it, I used the TADST as they were already done for me and setup the task to run this script every 4 hours.

 

I hope it help someone.

cls

# This script is used to stop/start arma 3 epoch server, set this to run as a task and you will not need BES Scheduler
# Scripted by Pierre Breau ([email protected])

# Kill Arma3Server and BEC
# Obviously if you named your exe different change this values
Stop-Process -ProcessName arma3server 
Stop-Process -ProcessName Bec

# Now start the arma 3 epoch server
$Arma3Server = "C:\Steam\steamapps\common\Arma3\arma3server.exe"
$Arma3ServerParameters = "-port=2302 ""-config=C:\Steam\steamapps\common\Arma3\TADST\default\TADST_config.cfg"" ""-cfg=C:\Steam\steamapps\common\Arma3\TADST\default\TADST_basic.cfg"" ""-profiles=C:\Steam\steamapps\common\Arma3\TADST\default"" -name=default -netlog -pid=pid.log -ranking=ranking.log ""[email protected];@epochhive"" -autoinit"
Start-Process $Arma3Server $Arma3ServerParameters

# This is the battleye part 
$BECServer = "Bec.exe"
$BECParameters = "-f Config.cfg --dsc"
cd "C:\Steam\steamapps\common\Arma3\BEC\"
Start $BECServer $BECParameters

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  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...