The UT server has an internal webserver which is used to remotely
administer the game, but it is disabled by default.
This is accessible under Options Menu, in Advanced Options.
Expand the tree to find Networking | WebServer | bEnabled.
Set bEnabled to True.
You may also like to change the ListenPort value to something other than
80, if your server machine is already running another webserver such as
IIS on port 80
Also in Advanced Options, under Networking | Web-based Remote
Administration, you can find the username and password required to
access the remote administration through your web browser.
In the UT menus, choose Multiplayer | Start New Internet Game.
Choose the gametype and map you want to run.
Press the Map List button to configure the maps which will be cycled on your server.
Use drag-and-drop to add or remove a map from the map list cycle.
Press the Mutators button to enable any mutators you want to run on your server.
Make sure Auto Change Levels is checked, or the server will run the same
map over and over again.
Go to the Rules and Settings tabs to ensure the game rules and settings
are configured the way you want them.
If you want Bots on your server, go to the Bots tab and set the Minimum
Total Players to a number greater than 0.
If you choose 6, bots will come into the server when there are less than
6 human players connected.
When a human connects, a bot will leave.
In team games, be sure to check the Balance Teams checkbox so that the bots change
teams to keep the number of players on each team balanced.
Under the Server tab, be sure to give your server a Server Name,
and to check the Advertise Server checkbox.
This advertises your server to the master server, so players can find your
server even if they're not on your local LAN.
Check the ngWorldStats Logging checkbox to have your server participate
in ngWorldStats for UT.
The Optimize for LAN checkbox should only be set if your server is
intended for a LAN play only.
DO NOT check this checkbox if you intend to have people on the
Internet connect to you, or they might find internet play isn't as good as it could be.
Finally, press the Dedicated button to launch the dedicated server.
Once your server is configured, you can later launch it from the command
line - it will retain all the settings you've configured for it.
ENABLING WEB-BASED REMOTE ADMINISTRATION
Before you launch a dedicated server from the command line for the first time,
you first need to edit your
C:\UnrealTournament\System\UnrealTournament.ini file to enable
WWW-based remote administration. The UT server has an internal webserver which is
used to remotely administer the game, but it is disabled by default.
Open C:\UnrealTournament\System\UnrealTournament.ini with NotePad
and find the following section:
[UWeb.WebServer]
Applications[0]=UTServerAdmin.
UTServerAdmin ApplicationPaths[0]=/ServerAdmin bEnabled=False
Change the "bEnabled=False" line to read "bEnabled=True".
Should you need to change the port number the internal UT webserver runs on
(eg if your server is already running another webserver such as IIS on port 80),
add a new entry under [UWeb.WebServer] which says "ListenPort=8888",
to run the UT webserver on the custom port number.
Note that if you run multiple servers on the same machine (and bound to the same IP address),
each webserver needs to be running on its own port number. More on this shortly.
Just below the [UWeb.WebServer] section is the [UTServerAdmin.UTServerAdmin] section.
You need to change the username and password required to remotely admnister your UT server.
If you leave your username and password set at the default values of admin and admin
respectively, someone is sure to take control of your server and do evil things to your players.
LAUNCHING THE SERVER FROM THE COMMAND LINE
The syntax for running a server from a command line is as follows:
C:\UnrealTournament\System> ucc.exe server mapname.unr?
game=GameType [port=portnum] [multihome=ipaddress]
[ini=inifilename] [log=logfilename]
port - the optional base port number the server uses.
ini - the name of the ini file the server uses.
This defaults to unrealtournament.ini
log - the name of the logfile the server generates.
The default is ucc.log
multihome - the IP address the server should bind to,
where the server has multiple local IP addresses.
GameType - one of Botpack.DeathMatchPlus, Botpack.Domination, Botpack.CTFGame.
Some examples:
ucc server dm-Turbine?game=Botpack.DeathMatchPlus ini=server1.ini
log=server1.log
ucc server ctf-coret?game=Botpack.CTFGame multihome=204.12.54.28
ini=server2.ini log=server2.log
ucc server dom-Sesmar?game=Botpack.Domination
multihome=204.12.54.29 ini=server3.ini log=server3.log
It's a good idea to make a small batch file which restarts the server should it crash:
:top
c:
cd \unrealtournament\system
ucc server dm-Turbine?game=Botpack.DeathMatchPlus ini=server1.ini log=server1.log
copy server1.log server1crash.log
goto top
Copyright © 1996 Epic Games |