SoulReaver
Joined: 15 May 2004 Posts: 162
|
Posted: Sat Jul 08, 2006 12:14 pm Post subject: automatic server reboot system :) |
|
|
Hi, here i will discribe how you can make your server reboot automaticly
why is this usefull?
1. if your server would crash
2. if your server would be attacked
and much more reason.
how do you do it?
First, make a text file, call it server.txt or something. save it, and change its name to server.bat (batch file)
do rightclick, click edit. and past the following code into the file:
Code: | d:
cd games/unreal/system
:loop
Unreal.exe Vortex2?game=UnrealShare.coopgame?mutator=Mutator1.MyMutator -server
goto loop |
now i will go trough everything step by step:
first it says
change this to the drive where unreal is installed one
Code: | cd games/unreal/system |
change 'games/unreal/system' to the directory where your unreal is installed, DONT forget the system map at the end.
do not touch this.
Code: | Unreal.exe Vortex2?game=UnrealShare.coopgame?mutator=Mutator1.MyMutator -server |
dont touch Unreal.exe
Vortex2 is the map to start
change game=UnrealShare.coopgame to the gametype you want to use, this can be:
UnrealShare.coopgame :: coopgame
UnrealShare.DeathMatchGame :: deathmatch
UnrealShare.TeamGame :: teamgame
UnrealI.KingOfTheHill :: king of the hill gametype
UnrealI.DarkMatch :: dark deathmatch
or one of your own made gametypes
Change Mutator1.MyMutator to your own mutator, or remove the whole mutator piece if you dont want to use mutators.
dont touch '-server'
dont touch this either.
now close the file and save.
then run the file. you will see (if you did it correctly) the unreal logo coming up in the system tray.
now dont close the batch file, do right click on the unreal logo and click exit server. you will see some lines aprearing in the batch file and you will see the Unreal logo coming back. try exiting the server sevral times. you will see that it will keep rebooting :D
if you want to close the server. close the batch file then exit the server.
there... you have a automatic rebooting server. cool huh? hehe
hope this was usefull to you.
regards:
-SR _________________ Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site. |
|