Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

automatic server reboot system :)

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> Unreal server setup, administration and troubleshooting
View previous topic :: View next topic  
Author Message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Sat Jul 08, 2006 12:14 pm    Post subject: automatic server reboot system :) Reply with quote

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
Code:
d:

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.

Code:
:loop

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'

Code:
goto loop

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> Unreal server setup, administration and troubleshooting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group