PDA

View Full Version : Crash batch file


drifter104
12-15-2007, 04:49 PM
Is this possible with COD4. With the source servers I run on my windows box I have a small batch file that launches the server and if the server crashes will restart the server, so if it goes down I don't have to worry about it being down till I can log in and bring it back up.

Any ideas?

Busterking
12-15-2007, 05:23 PM
This is what I have for our servers, use notepad, copy this text (use your own game path) then rename from .txt to .bat then put this file in your server's gaming folder:

:start
start /w C:\Games\COD4-1\Data\iw3mp.exe +set net_ip xxx.xxx.xx.xxx +set ui_maxclients 64 +set dedicated 2 +set sv_punkbuster 1 +exec server.cfg +map_rotate

sleep for 15
goto start

drifter104
12-15-2007, 05:25 PM
cheers... :D