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?WinLimit=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?
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?WinLimit=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?