Manual:Dedicated Server

From UFO:AI
(Redirected from Manual/Dedicated Server)
Jump to: navigation, search

Author: mattn (talk, contrib)

General

To set up the dedicated server you have to install the pk3 files that are included in the installer or download the data.tar from one of the sourceforge.net mirrors. Of course you can also use the data from our Subversion repository.

You need the ufoded binary to start a dedicated server. The first map started is the map that is the first one listed in the mapcycle. Use the map command to start a map - use the maplist command to list all valid and installed maps.

The gametypelist command is here to list all predefined gametypes from the ufo script files from base/ufos or the pk3-files. You can change the gametype before you start a map - just type sv_gametype <gametype-id> and then start the map with the above given command.

Mapcycle

There is a base/mapcycle.txt where you can define the maps that you want to play on the server. The format of this file is:

mapname gametype

and comments are allowed here (/* comment */).

You can show the current mapcycle from the dedicated server console by typing mapcyclelist - you can load the next map on this cycle by typing mapcyclenext and clear the list by typing mapcycleclear.

If the mapcycle is empty the server will restart the current map with the current gametype.

You can also add the command mapcyclenext to the dedicated.cfg in your base/ directory - this ensures that always the first map of the mapcycle is loaded when the server was started.

Maps

You have to make sure that you are using the correct maps. If you are hosting a dedicated server for a developement release, make sure to use the python map-get-script from contrib/scripts to be always up-to-date. Also note that if you compile the maps yourself, you have to compile them on an intel pc. This is due to the fact that different CPU vendors have a different floating point precision - that will not survive the crc check.

Downloading of maps

UFO:AI supports downloading of maps (and other files) via http. There are some cvars you have a look at:

  • cl_http_downloads
  • cl_http_filelists
  • cl_http_max_connections
  • sv_http_downloadserver

Filelists

If a map needs other files like ambient sound files, you can use the filelist feature. Just put a file into your download directory that has the name webserverroot/base/maps/mapname.bsp.filelist. This file should contain all the files that are needed to play that specific map.

Rcon

The remote console is a possibility to set some settings from a connected client, restart maps or change gametypes.

You have to set the rcon_password cvar on the serverside - you can add the following to the dedicated.cfg:

set rcon_password <password>

. On the client side you have to set this cvar too while connected. After that you are able to execute rcon commands via:

rcon <command> <parameter>

Links