]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Basic-server-configuration.md
add remove version
[xonotic/xonotic.wiki.git] / Basic-server-configuration.md
index f352f4233f093ac338f87290bfb03007273448d6..67d443159dbf655c269bbb6107ad4b4d772847da 100644 (file)
@@ -1,4 +1,4 @@
-This page explains basic server settings. During the start of the server, it searches for the `data/server.cfg` file and executes it. You need to create it inside your user directory (GNU/Linux default: `~/.xonotic/data/server.cfg`).
+During the start of the server, it searches for the `data/server.cfg` file and executes it. You need to create it inside [your user directory](http://www.xonotic.org/faq/#config).
 
 # Quick start
 Xonotic comes with an example configuration in `/server/server.cfg`. You can copy it into your user directory and simply edit it.
@@ -9,10 +9,9 @@ A minimal configuration would be this:
 ```
 sv_public 1
 hostname "My Test server"
-maxplayers 32
 ```
 
-It creates a server named "My Test server" that can handle 32 players and is visible on the master server. It will run deathmatch with default settings.
+It creates a server named "My Test server" that can handle 16 players and is visible on the master server. It will run deathmatch with default settings.
 
 # Basic settings
 ```
@@ -20,6 +19,16 @@ sv_motd "Hi, this is my epic server"
 ```
 Specifies the "message of the day" which will be displayed to players when they connect or press the info button.
 
+```
+maxplayers 32
+```
+Specifies the maximum number of players on the server.
+
+```
+timelimit_override 20
+```
+Overrides the time limit for each map in minutes. 0 to play without limit, -1 to use the time limit specified by the map.
+
 ```
 port 26000
 ```
@@ -64,11 +73,15 @@ If set to 0, the players will be able to see the number of votes for each map (o
 # Bots
 ```
 minplayers 0
+minplayers_per_team 0
 ```
-If set to more than 0, the server will try to make sure that the number of all active players matches the value set. For example, if `minplayers` is 4 and there is 1 person playing, the server will have 3 bots. Bots will leave or join when the number of players changes. When nobody is connected to the server, no bots will be playing.
-
+If `minplayers` is set to a more than 0, the server will fill server with bots to reach this number of players (only in teamless games). For example, if `minplayers` is 4 and there is 1 person playing, the server will have 3 bots. Similarly, in team games `minplayers_per_team X` will make sure the minimum number of players per team is X. Bots will leave or join when the number of players changes. When nobody is connected to the server, no bots will be playing.
 ```
-skill 5
+bot_number 0
+```
+If set to more than 0, the server will always spawn this number of bots. Note that server can still spawn more bots to reach the minimum number of players.
+```
+skill 8
 ```
 Sets the skill level of bots. Higher values mean harder bots. Possible values are 0 through 10.
 
@@ -81,4 +94,7 @@ If set to 1, the map will start in the warmup mode which is designed to let ever
 ```
 g_warmup_limit 0
 ```
-If set to more than 0, specifies the maximum time of the warmup state. Can be used to force the game to begin without player consensus or when players forgot about warmup being active.
\ No newline at end of file
+If set to more than 0, specifies the maximum time of the warmup state. Can be used to force the game to begin without player consensus or when players forgot about warmup being active.
+
+# More advanced configuration
+You can find other useful variables using the [Command And Cvar search tool on xonotic.org](https://xonotic.org/tools/cacs).
\ No newline at end of file