ricnunes 0 Posted December 26, 2007 I would like to know how to enable auto restart in a ArmA dedicated server so that everytime the server crashes, it restarts automatically? Thanks in advance for replies... Share this post Link to post Share on other sites
jasono 0 Posted December 26, 2007 http://community.bistudio.com/wiki/ArmA:_Dedicated_Server#Running_Server_as_a_Service Running it at a service will auto restart it if it crashes. Can also boot when the whole server boots. Share this post Link to post Share on other sites
ricnunes 0 Posted December 26, 2007 First of all, thanks for the reply. Well, a friend of mine which has a PC running a dedicated server already put it running as a service but it isn't restarting automatically. A really don't have a clue what I should do more regarding this, I would really apreciate more help regarding this subject. Share this post Link to post Share on other sites
armatech 8 Posted December 26, 2007 make a file called restart.bat and add the following you will need to change paths and stuff. Or you could download my dedicated server tool that will set it all up for you click my sig and look for dedicated server tool <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> @echo off echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo +++++++++/````````:++++++++++++arma_server.exe+++++++++++-```````.+++++++++++++ echo +++++++++- Â Â Â Â `++++::::::::://+++/:::::/+++::::::++++` Â Â Â Â :++++++++++++ echo +++++-.:+. Â ` Â Â :+++` Â Â Â Â Â .++- Â `.`++- Â Â `+++: Â Â ` Â Â .++++++++++++ echo +++/- `:/ Â Â :. Â Â .+++- Â Â -/. Â Â :+/ Â .++::+` Â Â -+++. Â .: Â Â /:`./+++++++ echo ++/` Â `:- Â `+: Â Â /++- Â Â -/. Â `/++:/+++.`. Â Â Â :++/ Â Â :+` Â ``` Â `:-:+++++ echo ++: Â Â `. Â Â .` Â Â -++- Â Â Â Â `/+++:+++++- Â ` Â Â :++- Â Â `. Â ` Â Â .` .+++++ echo ++/ Â Â Â . Â Â Â Â Â `++- Â Â .-` Â `+++++++/-/.`: Â Â :++` Â Â Â Â ` Â Â ..:++++++ echo ++/` Â Â .`. -++. Â Â -+- Â Â :+. Â Â /+/:++++``::/ Â Â -+: Â Â `/+: `` Â -+++++++++ echo +++- Â Â .`.` /- Â Â Â :` Â Â `/. Â Â .+- .+++: `+. Â Â `+` Â Â -+` ` Â Â -+++++++++ echo ++/` Â `/::::.Restart Application for Armed Assault Server.:::-----` Â :++++++++ echo +:``-- .++++++++++++++++++++++++++++++++++++++++++++++++++++++++++: ` Â /+++++++ echo /`-++: :+You will need to close this to stop the server restarting: .+: -++++++ echo +++++++++++++++++++++++++++++Server Created++++++++++++++++++++++ -/++:`-:/++++ echo ++++++++++++++++++++Date:26/12/2007 Time:22:09:00.6239190++++++++++++++++++++++ :RESTART "D:\Program Files\Bohemia Interactive\ArmA\arma_server.exe" -server -config=server.cfg -port=2302 -mod=ArMaTeC Â -netlog FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET DATE=%%B FOR /F "TOKENS=*" %%A IN ('TIME/T') DO SET TIME=%%A ECHO 3 %TIME% 0.33 %DATE% GOTO RESTART Share this post Link to post Share on other sites
ricnunes 0 Posted December 26, 2007 Thank you very, very much armatech, that's exactly what I looking for! You saved my (virtual) life! Share this post Link to post Share on other sites
JIN 0 Posted December 31, 2007 damn i try to figure out that script the only thing it does to me is activate arma exe like infinitely so i better stop running it is there someone that knows how to just start it up once when crashed or to start up Share this post Link to post Share on other sites
JIN 0 Posted January 1, 2008 what did i do wrong @echo off :start "C:\ArmA\arma.exe" -server -config=server.cfg -profiles=c:\ArmA\16RD FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET DATE=%%B FOR /F "TOKENS=*" %%A IN ('TIME/T') DO SET TIME=%%A ECHO 3 %TIME% 0.33 %DATE% goto restart it startsup but dos thing dispears and when arma console gets closed or crashes it wont restart Share this post Link to post Share on other sites
HitmanFF 6 Posted January 1, 2008 @echo off :start . . goto restart The label names don't match. Just change :start to :restart to make it work Share this post Link to post Share on other sites
JIN 0 Posted January 1, 2008 Quote[/b] ]@echo off:reSTART "C:\ArmA\arma.exe" -server -config=server.cfg -profiles=c:\ArmA\16RD FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET DATE=%%B FOR /F "TOKENS=*" %%A IN ('TIME/T') DO SET TIME=%%A ECHO 3 %TIME% 0.33 %DATE% GOTO reSTART makes me infinitely loops the startup Share this post Link to post Share on other sites
HitmanFF 6 Posted January 1, 2008 "C:\ArmA\arma.exe" -server -config=server.cfg -profiles=c:\ArmA\16RD Could you try opening a command line window and running this line to see if it's correct? If there's an error in there, the infinite looping will occur... Share this post Link to post Share on other sites
JIN 0 Posted January 1, 2008 there is no eror in the command line with infinite loop i mean that the command works well but launches the server infinitely =with this i mean i can have 100 servers running in like 20 seconds Share this post Link to post Share on other sites
HitmanFF 6 Posted January 2, 2008 there is no eror in the command line with infinite loop i mean that the command works well but launches the server infinitely =with this i mean i can have 100 servers running in like 20 seconds Very odd. I tried it, and there's only one server opening at a time. The batch file waits until that's closed, and then jumps back to start the next, so working as expected. I tried it both with v1.08 and v1.09, same for both. Share this post Link to post Share on other sites
JIN 0 Posted January 2, 2008 maybe it is cuz im using sprocket version 1.08 that didnt contain the arma_server.exe i have to add -server in the paramater of the game exe to run as server Share this post Link to post Share on other sites
HitmanFF 6 Posted January 2, 2008 maybe it is cuz im using sprocket version 1.08 that didnt contain the arma_server.exei have to add -server in the paramater of the game exe to run as server I've tried the arma.exe with -server as well, same result. Working as expected. Have you tried the v1.09 beta, to see if there's any difference with the sprocket arma.exe? Share this post Link to post Share on other sites
JIN 0 Posted January 3, 2008 to me this works better :begin c:/game.exe goto begin Share this post Link to post Share on other sites
Misfit Leader 1 Posted February 5, 2008 Or you can try dedicated tool (serverdoc is a must have and free). Then all you have to do is put the program in the "Scheduled Task" when "starting computer" or "log in" (depends if you prefer the server start even if no user is logged in, or if you want it to wait the server user to log in) Old post but well could be useful for the next guys to come Share this post Link to post Share on other sites