![]() |
![]() |
|
|||||||
| Dedicated Server Support The Place For All You Serveradmins |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I have read several Admins having problems with crashes and having to manually restart their servers.
With this in mind I thought I would release our windows server auto restart code which my Clan The Wild Bunch apply to all our servers via a .bat file. If you run a windows based server then the simplest way to set this up is to make a shortcut of your RO_server.bat file and place it on the desktop. Edit the shortcut and place the following code inside. YOU WILL NEED TO EDIT THE CODE TO SUIT THE PATH OF YOUR OWN INSTALLATION AS I HAVE SHOWN IN RED and of course replace the command line (in green) with your own. @echo off title RO Public server echo Look at the top of the window. echo. cd c:\ROOst set GameText===== RO Public server ==== set GameCmd=C:\ROOst\system\ucc server RO-Basovka.rom?deathmessagemode=3?FriendlyFireScale=1 ?FFPunishment=1?PreStartTime=45?RoundLimit=3?WinLi mit=2?TimeLimit=0?FFKillLimit=5?FFDamageLimit=300? VACSecure=true?game=ROEngine.ROTeamGame?MinPlayers =0? -log=ServerLog.log echo %GameText% echo. echo This is the %GameText% Auto Runner echo To Restart the server close the corresponding Game echo To Shut down the server close this window. echo. set LogFile="%homepath%\Desktop\Logs\%GameText%.log" echo Output is logged to %LogFile% echo. echo This is the command line: >>%LogFile% echo %GameCmd% >>%LogFile% :start echo ReStarting %GameText% date/t time/t echo ReStarting %GameText% >>%LogFile% date/t >>%LogFile% time/t >>%LogFile% call %GameCmd% goto start I hope this will help out those having problems with the odd random crash?
__________________
I'm on a vodka diet, I've lost 3 days so far. Beta test rig: I7-920 overclocked to 3.5ghz, 6gb DDR3, ATI 4890 2gb, Realtec HD sound,Win 7 x64 |
|
#2
|
|||
|
|||
|
Hi BC,
Couple of questions m8, thanks for this I have been using your bat file for a while now but have a problem with the log file path, I get "System cannot find the path specified" tried manually creating the files for the path, but no joy. Also is it like the old CoD bat, starts another game window because mine doesn't if it should. @echo off title RO Public server echo Look at the top of the window. echo. e: cd e:\ROOst set GameText===== RO Public server ==== set GameCmd=E:\ROOst\system\ucc server RO-Arad.rom?FriendlyFireScale=1?FFPunishment=1?PreSta rtTime=30?RoundLimit=3?WinLimit=2?TimeLimit=0?FFKi llLimit=6?FFDamageLimit=800?VACSecure=true?game=RO Engine.ROTeamGame?-log=ServerLog.log echo %GameText% echo. echo This is the %GameText% Auto Runner echo To Restart the server close the corresponding Game echo To Shut down the server close this window. echo. set LogFile="%homepath%\Desktop\Logs\%GameText%.log" echo Output is logged to %LogFile% echo. echo This is the command line: >>%LogFile% echo %GameCmd% >>%LogFile% :start echo ReStarting %GameText% date/t time/t echo ReStarting %GameText% >>%LogFile% date/t >>%LogFile% time/t >>%LogFile% call %GameCmd% goto start
__________________
RO AirAttack = 62.141.50.30:7757 RO Brezina 24/7 = 62.141.51.30:7757 http://www.airattack.co.uk
|
|
#3
|
||||
|
||||
|
Create a folder on your desktop called Logs....that should be it.
This will create log files inside telling you when the server was last rebooted. Punchy it won't start a second window for RO as RO is already a .bat file. You can use this code to auto start any game server as long as you create a .bat file and point the code to the server start up file. When you point it to a .exe like the CoD2 mp the bat file will start up first followed by the games consol window.
__________________
I'm on a vodka diet, I've lost 3 days so far. Beta test rig: I7-920 overclocked to 3.5ghz, 6gb DDR3, ATI 4890 2gb, Realtec HD sound,Win 7 x64 |
|
#4
|
|||
|
|||
|
I created the folder m8, still the same error, it's win2003 server btw.
__________________
RO AirAttack = 62.141.50.30:7757 RO Brezina 24/7 = 62.141.51.30:7757 http://www.airattack.co.uk
|
|
#5
|
||||
|
||||
|
Just a not to everyone who may use this as we have discovered with Punchy's installation to use this code YOU MUST ENSURE THAT RO SERVER FILES ARE ON THE SAME DRIVE AS YOUR .BAT FILE WITH THE AUTO START CODE INSIDE IF YOU WISH TO USE THE LOGGING THATS ALSO CODE INCLUDED.
In Punchy's instance the Logs files will not be recorded because he has the RO server files installed on a different drive to his .bat start up file preventing the lof files being created. This is not a problem if you are not bothered about the logging side which simply records when the server was last rebooted. Simply remove this side of the code.
__________________
I'm on a vodka diet, I've lost 3 days so far. Beta test rig: I7-920 overclocked to 3.5ghz, 6gb DDR3, ATI 4890 2gb, Realtec HD sound,Win 7 x64 |
|
#6
|
|||
|
|||
|
Hi guys, this auto restart code is very helpful.
Just one thing I've noticed though, is that upon restart it overwrites the main server log in the system folder, so you can't see why it has fallen over. Is there a way of making it add to this file or back it up or am I missing something simple? |
|
#7
|
|||
|
|||
|
Hi,
check out this program which is free service guard software. It allows you to ensure your server is running when windows is started even if you have not logged in. Servers are also restarted on crash. http://www.jafit.com/portal/desktops...ice_guard.aspx regards, Denon |
|
#8
|
||||
|
||||
|
Thank you, old post but really helpfull today
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|