]> git.xonotic.org Git - xonotic/xonotic.git/blob - server/server.cfg
some more comments and fixes in example config
[xonotic/xonotic.git] / server / server.cfg
1 // This is an example config, to actually use it, copy it to ~/.xonotic/data on linux
2 // or the equivalent directory on your OS (https://xonotic.org/faq/#config).
3
4 // Two slashes start a comment until the end of the line.
5 // Surround strings (text values) with double quotes (e.g. cvar_name "some value"), otherwise only the first word will be used.
6 // Cvar means console variable.
7 // Just "" means empty string.
8 // Semicolon separates commands (in console or in aliases).
9
10 // Search for settings and descriptions using the 'search' command in console
11 // or online: https://xonotic.org/tools/cacs/
12
13
14
15
16 /////////////////////////////////////////////////////////////////////
17 // Things you SHOULD change to make the server "yours" (remove the // and change the value):
18
19 //sv_public 1   // 0 or -1 (see description) if the server should not be on the public servers list
20 //hostname "Xonotic $g_xonoticversion Server"   // this name will appear on the server list (the $g_xonoticversion gets replaced with the current version)
21
22 // This is a good place for contact info (IRC, forum nick, etc.) so players can reach you when something is wrong with your server.
23 // Add line breaks using \n - e.g. "Line 1\nLine 2". Keep it as short as possible.
24 //sv_motd ""
25
26 // This sets the remote console password on the server, you also need to set the cvar to the same value on your client to use the 'rcon' command.
27 // Empty means rcon is disabled.
28 //rcon_password ""
29
30
31
32
33 /////////////////////////////////////////////////////////////////////
34 // Everything below has some sensible defaults so you don't really need to change anything.
35 // It's meant as inspiration for people who want to customize the server more.
36 // Some cvars have example or default values shown, some have an additional description/comment.
37 // For the rest, the description is available in console (type variable name and press TAB or use apropos/search).
38
39 //maxplayers // note: this is not the same as g_maxplayers
40
41 //net_address 0.0.0.0   // ONLY change this if you have problems with your server. Specifies the network interface used by the engine.  Set it to one of your internal IPs
42
43 //port 26000    // the port used by the server
44 // You are RECOMMENDED to change this value to a free port number on your server
45 // above 1024. The reason is that some bad ISPs might filter "gaming" ports, and
46 // changing the port your server runs on may make your server available to these
47 // people. Changing the port breaks nothing, the default simply matches Quake as
48 // we use a Quake-derived protocol and didn't do our own IANA port assignment yet
49 // (if anyone wants to go through that process, we'd be glad).
50
51 //log_file "server.log" // server console output will also be copied to this file. This: "${serverconfig}.log" uses variable substitution to make the logfile have the same name as your config file with .log appended which is useful if you run several servers
52 //timestamps
53
54 //g_start_delay
55
56 // List of maps to play on the server.  Set to "" to autodetect (which would enumerate ALL maps. Maps that don't support the current game mode will be skipped, so you don't need to remove them here.
57 //g_maplist "afterslime atelier boil catharsis courtfun dance drain erbium finalrage fuse geoplanetary glowplant implosion leave_em_behind nexballarena oilrig runningman runningmanctf silentsiege solarium space-elevator stormkeep techassault vorix warfare xoylent"
58 //g_maplist_shuffle 1   // 0 always selects the next map out of g_maplist (but then better set g_maplist_votable 0 below to prevent repetitive votes), 1 will select random maps each time
59 //g_maplist_mostrecent_count 3  // number of maps that have to be played before a map can be repeated
60
61 // LIMITS: how long a match will last before the next map starts (-1 means use the map default, 0 = unlimited, please note that the variables fraglimit/timelimit can NOT be globally used for this but only DURING the match being played)
62 //timelimit_override -1 // global timelimit for all maps and gametypes
63 //fraglimit_override -1 // global frag/point limit for all maps and gametypes
64 //capturelimit_override -1      // capture limit for CTF
65 //g_domination_point_limit -1
66 //g_keyhunt_point_limit -1
67 //g_lms_lives_override -1
68 //g_nexball_goallimit -1
69
70 //g_ctf_ignore_frags 0
71
72 // TEAMS for key hunt (change this to 2, 3, 4 to set a fixed keyhunt style)
73 //g_keyhunt_teams_override -1
74
75 // GAME MODE: what type of server do you want to host?
76 // possible values: dm (deathmatch), tdm (team deathmatch), ctf (capture the flag), ca (clan arena), ft (freeze tag), kh (keyhunt), as (assault), dom (domination), lms (last man standing), ka (keepaway), inv (invasion), ons (onslaught), rc (race), cts (complete the stage), nb (nexball)
77 //gametype dm   // default gamemode
78
79 // TIPS: uncomment this if you want help messages on your server - one per match 20 seconds after the map loads
80 //alias sv_hook_gamestart_all "defer 20 help_next"
81
82
83
84
85 /////////////////////////////////////////////////////////////////////
86 // Some settings you MIGHT want to change.  Again IF so remove the //
87 // from the line start and change them to your liking.
88
89 //skill 4       // the bots skill level
90 //minplayers 0  // add bots if less then that number of players playing
91 //minplayers_per_team 0 // add bots to each team if less than that number of players playing
92 //g_maxplayers 0 // above this player count, only allow spectators
93 //bot_prefix [BOT]      // prepend this to all botnames
94 //bot_suffix "" // append this to all botnames
95 //g_maplist_check_waypoints 0   // set this to 1 to skip maps without waypoints if there aren't enough players to play without bots
96
97 // Map voting screen
98 //g_maplist_votable
99 //g_maplist_votable_suggestions
100 //g_maplist_votable_abstain
101 //g_maplist_votable_nodetail
102
103 // Gametype voting screen (also includes an example of creating a custom gamemode)
104 sv_vote_gametype 1 // uncommented because it's a suggested default
105 //sv_vote_gametype_options "dm tdm ca ctf 1v1ctf"
106 // sv_vote_gametype_*_type Must be set to the name of the gametype the option is based on
107 // sv_vote_gametype_*_name Contains a human-readable name of the gametype
108 // sv_vote_gametype_*_description Contains a longer description
109 //set sv_vote_gametype_1v1ctf_type ctf
110 //set sv_vote_gametype_1v1ctf_name "Capture the Flag Duel"
111 //set sv_vote_gametype_1v1ctf_description "One vs One match in CTF"
112 //alias sv_vote_gametype_hook_all "g_maxplayers 0"
113 //alias sv_vote_gametype_hook_1v1ctf "g_maxplayers 2"
114
115 // Votes available by 'vcall'
116 //sv_vote_call
117 //sv_vote_commands
118 //sv_vote_majority_factor
119 //sv_vote_majority_factor_of_voted
120 // note: to JUST support simple majorities, set these two factors equal
121
122 // Masters can be voted in by players or chosen by the admin and given a password.
123 //sv_vote_master
124 //sv_vote_master_callable
125 //sv_vote_master_password
126 //sv_vote_master_commands // You may want to put 'kickban' here and allow masters to change 'sv_status_privacy', so they can keep out punks, but in that case don't make master votable or it will get abused.
127
128 // Similar functionality to vote masters
129 //rcon_restricted_commands
130 //rcon_restricted_password
131
132 // Autokick idle players (conditionally only if there are enough free slots)
133 //sv_maxidle
134
135 //sv_taunt
136 //sv_autotaunt
137
138
139
140
141 /////////////////////////////////////////////////////////////////////
142 // Settings you MIGHT want to change for PRIVACY reasons.
143
144 //sv_status_privacy 1   // 1 hides IP addresses from "status" replies shown to clients, 0 shows them. Enables players to identify wellknown punks on your server OR is a threat to anonymity.. depending on your point of view :)
145
146 // This line sends the following data to our servers:
147 // - Date and time
148 // - Your server IP address
149 // - Your server ID hash, which is a fingerprint of the public key of your
150 //   server and does not impact security of your private key (use "crypto_keys"
151 //   on the console to show it)
152 // - Your server name ("hostname")
153 // - Current game type
154 // - Current map
155 // - Balance settings you have modified from defaults (only those that make
156 //   your server "impure")
157 // - For each weapon pairing (A, B), separately for player-player, player-bot,
158 //   bot-player, bot-bot pairings:
159 //   - Number of hits of players/bots holding A against players/bots holding B
160 //   - Number of frags of players/bots holding A against players/bots holding B
161 //   - Total damage of players/bots holding A against players/bots holding B
162 //
163 // We use this data to:
164 // - Optimize the game balance for future releases
165 // - Identify problems in the bot AI and improving it
166 // - Find settings that make servers "impure" that should not, so we can
167 //   whitelist them in future releases
168 //
169 // We will or might publish:
170 // - Global weapon pairing statistics for players vs players, or bots vs bots,
171 //   or any vs any, on a selection of servers
172 // - Per-gametype and per-map weapon pairing statistics players vs players, or
173 //   bots vs bots, or any vs any, on a selection of servers
174 // - Lists of commonly changed cvars, together with counts on how often they
175 //   are modified
176 //
177 // No information about the players on the server is sent, so as a server admin
178 // you need no permission of your players for this.
179 //
180 // No information about your server will be published - all published data sets
181 // will include data from multiple servers.
182 //
183 sv_weaponstats_file "http://www.xonotic.org/weaponbalance/"
184
185
186
187
188 /////////////////////////////////////////////////////////////////////
189 // Some more advanced settings.  You probably are not interested in changing them at all.
190
191 // Allow restarting the current match using the "ready" button
192 //sv_ready_restart
193 //sv_ready_restart_after_countdown
194 //sv_ready_restart_repeatable
195 //sv_autoscreenshot 0   // Useful for competitions or the ladder.
196
197 // Different hit detection options
198 //g_antilag
199
200 //sv_maxrate 1000000    // limits client connections to this rate in bytes/seconds
201
202 // see Docs/mapdownload.txt for more info
203 //sv_curl_defaulturl
204
205 // Force player models for everyone
206 //sv_defaultcharacter
207 //sv_defaultplayermodel
208 //sv_defaultplayerskin
209 //sv_defaultplayercolors
210 //g_fullbrightplayers
211 //g_fullbrightitems
212
213 // Gives players the freedom to make better teams than automatic but makes abuse easier
214 //g_balance_teams
215 //g_balance_teams_prevent_imbalance
216
217 //g_ban_sync_uri "http://46.38.241.138/~xonotic/bans/" // this ban list provider is currently offline
218 //g_ban_sync_trusted_servers
219
220 //g_spawnshieldtime
221
222
223
224
225 /////////////////////////////////////////////////////////////////////
226 // "Obvious" mutators that are allowed on a "pure" server
227 // Note that they often have more config options, use 'apropos'
228
229 //g_instagib
230 //g_weapon_stay
231 //g_powerups
232 //g_jetpack
233 //g_grappling_hook
234 //g_nix
235
236
237
238
239 /////////////////////////////////////////////////////////////////////
240 // Overkill ruleset
241
242 // To enable Overkill, put 'exec ruleset-overkill.cfg' at the top of this file (above any other cvar changes), don't use 'g_overkill 1' directly.
243
244
245
246
247 /////////////////////////////////////////////////////////////////////
248 // WARNING: anything below this line makes your server "impure"!
249 // Some more mutators (and other cvars) you might find interesting
250
251 //g_cloaked
252 //g_midair
253 //g_vampire
254 //sv_gravity