Game Development Community

dev|Pro Game Development Curriculum

Dedicated Server Restart on crash

by Robin Degen · 07/24/2005 (3:15 pm) · 1 comments

This is a simple sollution to restart the dedicated server once it crashes for some reason. This could be anything. I was thinking about checking the process and restart it once the process is gone, but thinking about it more i came to an easier sollution. Make a bat file called something like server.bat and put the following inside:

@echo off
:Begin
torqueDemo.exe -dedicated -mission starter.fps/data/missions/stronghold.mis
goto begin

Replace the mission and it's path with your own.

I'm working on a Visual Basic program that will log the time and date of the crash and also the torque console output around that time. So you can see what happened.

About the author

Recent Blogs


#1
08/17/2005 (10:13 am)
This is a dedicated server bat file for a game called blockland but change as needed

@echo off
cls
title insert title here
echo Protecting Dedicated Servers from Crashes...
:blockland
echo (%time%) blockland.exe has started
start /wait /normal blockLand.exe -dedicated -mod AiO -mission "aio/data/missions/KOTHv3.0.mis"
echo (%time%) Warning: Server has crashed, or been stopped. Restarting.
goto blockland