Server Variables
There is a growing and mostly undocumented collection of server variables. This is difficult for normal server admins to keep track of. Luckily, here is a (non-comprehensive) listing:
Additions, modifications and corrections are most welcome.
| Server Variables | |||
|---|---|---|---|
| Variable | Default Value | Description | Build Variable appears in |
| cl_wwwDownload | 1 | Whether to enable WWW downloads (curl) | tjw |
| g_admin | admin.dat | Location of the admin file | svn, pretty much all current builds |
| g_adminLog | admin.log | Location of the logfile for admin commands | svn, pretty much all current builds |
| g_adminNameProtect | 1 | People cannot join using an existing admins name | svn, pretty much all current builds |
| g_adminParseSay | 1 | Admins can say admin commands in chat | svn, pretty much all current builds |
| g_adminTempBan | 120 | In seconds, how long a person is banned after being kicked. | svn, pretty much all current builds |
| g_alienBuildPoints | 100 | Number of buildpoints for alien team, not sure of the math :) | Default |
| g_alienMaxStage | 2 | Maximum alien stage Allowed(s1=0, s2=1, s3=2) | Default |
| g_alienStage2Threshold | 20 | threshold for aliens to reach stage 2, , not sure of the math :) | Default |
| g_alienStage3Threshold | 40 | Threshold for aliens to reach stage 3, not sure of the math :) | Default |
| g_allowSharing | 0 | enable disable /share and /donate commands | risujin, aliens' wrath |
| g_chatTeamPrefix | 1 | Prefix chat with your team, so humans can't say DECON OM, etc | ? |
| g_connectwait | 15 | Not sure | r1admin |
| g_dretchPunt | 1 | Dretches are "punted" out of the way of larger aliens | TJW |
| g_floodMinTime | 1000 | Time between messages before it's considered a flood? | ? |
| g_forceAutoSelect | 0 | 0 pick your own team, 1 Server picks your team for you, forced Auto Select | Kevlarman's build, Avenger's build |
| g_friendlyFire | 0 | teammates may damage each other | Default |
| g_friendlyFireAliens | 0 | Aliens may damage each other | svn |
| g_friendlyFireHumans | 0 | Humans may damage each other | svn |
| g_friendlyBuildableFire | 1 | teammates may damage buildings | svn |
| g_gravity | 800 | gravity setting, map specific settings can change this | Default |
| g_humanBuildPoints | 100 | Number of build points for human team | Default |
| g_humanMaxStage | 2 | Maximum human stage allowed(s1=0, s2=1, s3=2) | Default |
| g_humanStage2Threshold | 20 | threshold for humans to reach stage 2, not sure of the math :) | Default |
| g_humanStage3Threshold | 40 | threshold for humans to reach stage 3, not sure of the math :) | Default |
| g_initialMapRotation | following the first map, start this rotation found in maprotation.cfg | Default | |
| g_markDeconstruct | 0 | Buildings are marked to be deconned instead of instantly deconned | svn, requires client download to work right |
| g_maxNameChanges | 5 | Number of name changes a player is allowed to make in a certain time frame | svn, pretty much all current builds |
| g_maxWarp | 3 | the maxiumum number of server frames a client is allowed to miss before it's next movement is clipped. Default is 3 ( 150ms on most servers ) Set this to 0 to disable it. | TJW's Patch |
| g_minCommandPeriod | 500 | Affects minimum time between client commands (+/- commands not affected) | Default |
| g_motd | message at connection screen | Default | |
| g_needpass | 0 or 1 | toggle password needed to join the server | Default |
| g_newbieNumbering | 1 | Automatically number unnamed players | FooBar's Patch |
| g_newbieNamePrefix | string | Prefixes the number with this? | FooBar's patch |
| g_password | server password needed to join | Default | |
| g_retribution | 0-100 | What percentage of payback TKers will pay | balance mod and risujin's qvm |
| g_specsSeeTeamchat | 1 | Spectators see team chat of the team they are following | Paolo's patch |
| g_skipCorrection | 0 | if set to non-0, the server will guess where there player would have moved based on his current trajectory and sends this position in the next snapshot to all clients. Also, other players will be able to hit them at this predicted location. | TJW's Patch |
| g_suddendeathtime | 35 | The time when sudden death starts. No building, build points are removed | Default |
| g_teamForceBalance | 1 | forces each team to have a similar number of players, won't allow players to join a team that has more players than the other | Default |
| g_unlagged | 0 | 0 disable unlagged, 1 enable unlagged | svn, pretty much all builds now |
| g_waitconnect | 15 | Not sure | ? |
| hostname | Tremulous 1.1.0 Server | Server name | Default |
| net_ip | localhost | sets the IP to listen on | Default |
| net_port | 30720 | Sets the UDP port the server listens on | Default |
| rconPassword | rcon password for remote access to changing server settings | Default | |
| sv_allowDownload | 0 | allow UDP downloads from the server | Default |
| sv_dlURL | Where clients should get http downloads, will default to URL/base. Use "sets" instead of "set" for servers with sv_wwwBaseURL | svn | |
| sv_hostname | noname | server name in server list | Default |
| sv_maxclients | 8 | maximum number of clients your server will allow including private slots, up to 64 | Default |
| sv_maxPing | 0 | Maximum latency for connected clients, prevents connection of clients with higher ping | Default |
| sv_maxrate | 0 | Maximum rate for connected clients, in what I'm not sure, milliseconds maybe? | Default |
| sv_minPing | 0 | Minumum latency for connected clients | Default |
| sv_minRate | 1000 | Minumum rate for connected clients, in what I'm not sure, milliseconds maybe? | Default |
| sv_minsnaps | 10 | Minumum snapshots for connected clients | Default |
| sv_privateClients | 0 | number of private slots, substracted from sv_maxclients. Have at least one so an admin can always connect | Default |
| sv_privatePassword | set password at client to use slot | Default | |
| sv_pure | 1 | Client side loaded pk3's must exist in the server's base directory | Default |
| sv_wwwBaseURL | Where clients should get http downloads, will default to URL/base. Use "sets" instead of "set" instead ofserver.cfg | tjw | |
| sv_wwwDownload | 1 | allow clients to use http downloads | tjw |
| timelimit | 0 | Absolute Game Timelimit | Default |
The last line of server.cfg is: map tremor It lists the first map loaded on server start, and is followed by the map rotation.