automatic restart server script -1 reply

Please wait...

Hmmmdonut

The real Homer

50 XP

6th July 2005

0 Uploads

441 Posts

0 Threads

#1 14 years ago

so i got a spearhead server but its on a different comp so when i get a new map or something i just wana do kill server then have it automatically restart and i need a script or something so this will work so can someone give me a site or if there is a better way to do that plz tell me thanks




zikityzak7

The Jarhead

50 XP

18th March 2006

0 Uploads

18 Posts

0 Threads

#2 14 years ago
.:TK:._MEGALOMANIACso i got a spearhead server but its on a different comp so when i get a new map or something i just wana do kill server then have it automatically restart and i need a script or something so this will work so can someone give me a site or if there is a better way to do that plz tell me thanks

Well i hav my own server of Allied Assault and i have a .bat file that restart the server over and over. In the scrip you have to say: @echo off REM Stat server :startserv cd\ cd c:\Program Files\EA GAMES\MOHAA MOHAA_server.exe +set net_port 12204 +gametype 4 +set ui_console 1 +set com_zoneMegs 30 +set vm_game 0 +exec yourconfig.cfg REM Server ended, restart goto startserv




sohvicelord

The Internet ends at GF

50 XP

4th September 2004

0 Uploads

106 Posts

0 Threads

#3 14 years ago

i use this for my spearhead servers. if you crash your server it will restart in 30 sec, all so time to do changes if you need to. only thing you need to do is leave the bat.file open, chang the ip to your ip, and make sure you exec the server.cfg or change it to what ever you use.

@echo off :TOP echo Server Restart Script, do not close this window unless you need to shut down the server PING -n 3 67.19.27.123>nul echo Starting Server start /wait moh_spearhead_server.exe +exec server.cfg +set net_ip 67.19.27.123 PING -n 31 67.19.27.123>nul echo Restarting Server! goto TOP