Skip to content

Commit 7bad456

Browse files
committed
standardize Quake server.cfg style and section order
1 parent 83408e1 commit 7bad456

5 files changed

Lines changed: 171 additions & 69 deletions

File tree

q2/server.cfg

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,50 @@
1+
// ************************************************************************** //
2+
// //
3+
// Quake II - server.cfg //
4+
// Version 260426 //
5+
// //
6+
// ************************************************************************** //
7+
8+
// .................................. Basic ................................. //
9+
10+
// hostname - Name of the server.
111
set hostname "SERVERNAME"
12+
13+
// rcon_password - Remote console password.
214
set rcon_password "ADMINPASSWORD"
15+
16+
// location - Server location shown in listings.
317
set location "The Internet"
18+
19+
// website - Server website URL.
420
set website "https://linuxgsm.com"
21+
22+
// ................................. Discovery ............................... //
23+
24+
// public - Advertise this server publicly.
25+
set public 1
26+
27+
// setmaster - Master servers used for server listing.
28+
setmaster master.q2servers.com:27900
29+
setmaster master.quakeservers.net:27900
30+
setmaster netdome.biz:27900
31+
32+
// ................................ Gameplay ................................ //
33+
34+
// deathmatch - Enable deathmatch rules.
535
set deathmatch 1
36+
37+
// maxclients - Maximum number of connected players.
638
set maxclients 8
39+
40+
// timelimit - Time limit in minutes.
741
set timelimit 30
42+
43+
// fraglimit - Frag limit per match.
844
set fraglimit 30
945

10-
map q2dm1
46+
// ............................. Startup Commands ........................... //
1147

12-
set public 1
13-
setmaster master.q2servers.com:27900
14-
setmaster master.quakeservers.net:27900
15-
setmaster netdome.biz:27900
48+
// This server uses a single startup map rather than a rotation chain.
49+
// map - Startup map.
50+
map q2dm1

q3/server.cfg

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,52 @@
1+
// ************************************************************************** //
2+
// //
3+
// Quake III Arena - server.cfg //
4+
// Version 260426 //
5+
// //
6+
// ************************************************************************** //
7+
8+
// .................................. Basic ................................. //
9+
10+
// sv_hostname - Name of the server.
111
set sv_hostname "SERVERNAME"
2-
set sv_maxclients 16
3-
set g_motd "Quake3 Server"
4-
set g_forcerespawn 15
12+
13+
// rconpassword - Remote console password.
514
set rconpassword "ADMINPASSWORD"
6-
set g_gametype 0 //- Sets the type of game. 0 - Free for all, 1 - Tournament, 2 - Free for all(again), 3 - Team Deathmatch, 4 - Capture the Flag
7-
set fraglimit 50
8-
set timelimit 20
915

16+
// g_motd - Message shown to connecting players.
17+
set g_motd "Quake3 Server"
18+
19+
// ................................. Discovery ............................... //
20+
21+
// sv_master1..sv_master5 - Master servers used for server listing.
1022
set sv_master1 "master3.idsoftware.com:27950"
1123
set sv_master2 "master.ioquake3.org:27950"
1224
set sv_master3 "master0.excessiveplus.net:27950"
1325
set sv_master4 "master.maverickservers.com:27950"
1426
set sv_master5 "dpmaster.deathmask.net:27950"
1527
; set sv_master2 "master.huxxer.de:27950"
1628

17-
//Here's the map-cycle. When fraglimit or timelimit is reached, the map is automatically changed.
18-
//Otherwise it would just play the same map again.
29+
// ................................ Gameplay ................................ //
30+
31+
// sv_maxclients - Maximum number of connected players.
32+
set sv_maxclients 16
33+
34+
// g_forcerespawn - Auto-respawn delay in seconds.
35+
set g_forcerespawn 15
36+
37+
// g_gametype - Game type.
38+
// 0 = Free For All, 1 = Tournament, 2 = Free For All, 3 = Team Deathmatch, 4 = Capture the Flag
39+
set g_gametype 0
40+
41+
// fraglimit - Frag limit per match.
42+
set fraglimit 50
43+
44+
// timelimit - Time limit in minutes.
45+
set timelimit 20
46+
47+
// .............................. Map Rotation .............................. //
48+
49+
// Map cycle. When fraglimit or timelimit is reached, the server changes map.
1950
set m1 "map q3dm1; set nextmap vstr m2"
2051
set m2 "map q3dm2; set nextmap vstr m3"
2152
set m3 "map q3dm3; set nextmap vstr m4"
@@ -41,5 +72,8 @@ set m22 "map q3dm17; set nextmap vstr m23"
4172
set m23 "map q3dm18; set nextmap vstr m24"
4273
set m24 "map q3dm19; set nextmap vstr m25"
4374
set m25 "map q3tourney6; set nextmap vstr m1"
44-
//Begin the map cycle at m1
75+
76+
// ............................. Startup Commands ........................... //
77+
78+
// Begin the map cycle at m1.
4579
vstr m1

q4/server.cfg

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
// General Server Settings
1+
// ************************************************************************** //
2+
// //
3+
// Quake 4 - server.cfg //
4+
// Version 260426 //
5+
// //
6+
// ************************************************************************** //
7+
8+
// .................................. Basic ................................. //
29
// sets the server name.
310
seta si_name "SERVERNAME"
411
// sets the remote console password for the server.
@@ -16,13 +23,13 @@ seta serverInfo ""
1623
// The maximum players that can join the server.
1724
seta si_maxPlayers "16"
1825

19-
// Game Settings
26+
// ................................ Gameplay ................................ //
2027
seta si_gameType "DM" // Sets the type of game. Options are DM, Team DM, CTF, Arena CTF, or Tourney.
2128
seta si_autobalance "1" // 1=on 0=off - when enabled this will autobalance player to each team.
2229
seta si_shuffle "0" // 1=on 0=off - Shuffles the teams after each round. Only applicable to team games (TeamDM,CTF, ArenaCTF). Set to 1 to enable, 0 to disable.
2330
seta si_spectators "1" // 1=on 0=off - Allows spectators when enabled or forces all connected clients to play.
24-
seta si_teamDamage "0" // 1=on 0=off - when enabled teamates will be able to hurt each other.
25-
seta si_warmup "1" // 1=on 0=off - when enabled this sets the server to ruin a warmup period before match play begins.
31+
seta si_teamDamage "0" // 1=on 0=off - when enabled teammates will be able to hurt each other.
32+
seta si_warmup "1" // 1=on 0=off - when enabled this sets the server to run a warmup period before match play begins.
2633
seta si_allowVoting "0" // 1=on 0=off - allows player voting.
2734
seta g_spectatorChat "0" // 1=on 0=off - allows spectators to chat in-game.
2835
seta si_useReady "0" // 1=on 0=off - Forces players to select "Ready" before starting a match.
@@ -32,29 +39,32 @@ seta si_allowHitScanTint "0" // Enables custom railgun tinting color for players
3239
//1 - player hitscan tinting allowed in DM and NO hitscan tinting in team games
3340
//2 - player hitscan tinting allowed in DM and use team-color hitscan tints in
3441

35-
//Team Games
42+
// ............................ Team Game Limits ............................ //
3643
seta si_fragLimit "100" // Sets the number of kills a player must get in order to win the round. When set to 0, there is no frag limit.
3744
seta si_timeLimit "0" // Sets the round's time limit in minutes. When set to 0, there is no time limit.
3845
seta si_tourneyLimit "3" // The number of times a tourney will use the same map before changing the map.
3946
seta si_captureLimit "10" // The number of flag captures needed to win a CTF or ArenaCTF match.
4047
41-
//Rates
48+
// ................................ Network ................................ //
4249
//seta net_clientMaxRate "16000"
4350
//seta net_serverMaxClientRate "10000"
4451
45-
//Punkbuster Settings
52+
// ................................. Security ................................ //
4653
seta sv_punkbuster "0" // 1=enabled 0=disabled
4754
48-
//Map Settings
55+
// .............................. Map Rotation .............................. //
4956
//seta si_mapCycle "" // Creates a list of maps to cycle. It requires a semicolon-delimited list, such as "mp/q4dm1.map;mp/q4dm2.map;mp/q4dm2.map". It takes priority over the mapcycle.scriptcfg file.
5057
seta si_map "mp/q4dm1.map" // sets the starting map
5158
seta g_mapCycle "mapcycle" // Sets the server's map cycling script. Defaults to mapcycle.scriptcfg. This file is located in the Q4base directory.
5259

53-
//Game Modes - Execute game mode configs
60+
// .............................. Mode Includes ............................. //
61+
// Execute game mode configs.
5462
//exec dm.cfg
5563
//exec ctf.cfg
5664
//exec teamdm.cfg
5765
//exec tourney.cfg
5866

67+
// ............................. Startup Commands ........................... //
68+
5969
// start the server
6070
spawnServer

ql/server.cfg

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// Be aware that factories can override any cvar, including ones specified in this config file.
1515

16-
// ............................. Basic Settings ............................. //
16+
// .................................. Basic ................................. //
1717

1818
// Hostname for server.
1919
set sv_hostname "SERVERNAME"
@@ -27,27 +27,7 @@ set g_password ""
2727
// example: sv_tags "custom, classic"
2828
set sv_tags ""
2929

30-
// ............................... Map Cycles ............................... //
31-
32-
// info: The .txt file used to cycle the maps on servers.
33-
// There are several predefined mapcycles available that are listed below.
34-
// You can also create your own custom mapcycle.
35-
// "mappool.txt" - all maps
36-
// "mappool_ca.txt" - Clan Arena
37-
// "mappool_ctf.txt" - Capture the Flag
38-
// "mappool_duel.txt" - Duel
39-
// "mappool_ffa.txt" - Free for All
40-
// "mappool_race.txt" - Race
41-
// "mappool_tdm.txt" - Team Death Match
42-
set sv_mapPoolFile "mappool.txt"
43-
44-
// Default map
45-
// Random Map - startRandomMap
46-
// Specific map (factory is required) - map campgrounds ffa
47-
// Default: set serverstartup "startRandomMap"
48-
set serverstartup "startRandomMap"
49-
50-
// ............................ Client Settings ............................. //
30+
// .............................. Client Slots .............................. //
5131

5232
// Number of player slots available.
5333
// Default: set sv_maxClients "16"
@@ -158,7 +138,7 @@ set net_strict "1"
158138
// Default: set sv_serverType "2"
159139
set sv_serverType "2"
160140
161-
// ................................ Remote Admin ................................ //
141+
// ............................... Remote Admin ............................... //
162142
163143
// Enable remote console, provided through ZeroMQ. See zmq_rcon.py for simple client.
164144
// ZMQ rcon binds on a separate port from the game server, and uses TCP. It must differ from the stats port if used.
@@ -198,7 +178,7 @@ set zmq_stats_enable "0"
198178
199179
// Flood protection will increment everytime the user sends a client command.
200180
// Excluding: dropweapon, changing name, color, model, or chatting.
201-
// Set g_floodprot_maxcount to 0 to disable flood protection, but this not reccomended.
181+
// Set g_floodprot_maxcount to 0 to disable flood protection, but this is not recommended.
202182
203183
// Kick a player when their userinfo flood counter reaches this level.
204184
// Default: set g_floodprot_maxcount "10"
@@ -216,9 +196,9 @@ set g_floodprot_decay "1000"
216196
// Used to determine which 64-bit Steam IDs have admin access, or are banned.
217197
set g_accessFile "access.txt"
218198
219-
// ................................ System Settings ................................ //
199+
// .............................. System Settings .............................. //
220200
221-
// Show in server browser and respond to queries. This will also affect the LAN Broswer
201+
// Show in server browser and respond to queries. This will also affect the LAN browser.
222202
// Default: set sv_master "1"
223203
set sv_master "1"
224204
@@ -231,4 +211,26 @@ set sv_fps "40"
231211
set sv_idleExit "120"
232212
233213
// May need to be increased for additional players.
234-
set com_hunkMegs "60"
214+
set com_hunkMegs "60"
215+
216+
// .............................. Map Rotation .............................. //
217+
218+
// info: The .txt file used to cycle the maps on servers.
219+
// There are several predefined mapcycles available that are listed below.
220+
// You can also create your own custom mapcycle.
221+
// "mappool.txt" - all maps
222+
// "mappool_ca.txt" - Clan Arena
223+
// "mappool_ctf.txt" - Capture the Flag
224+
// "mappool_duel.txt" - Duel
225+
// "mappool_ffa.txt" - Free for All
226+
// "mappool_race.txt" - Race
227+
// "mappool_tdm.txt" - Team Death Match
228+
set sv_mapPoolFile "mappool.txt"
229+
230+
// ............................. Startup Commands ........................... //
231+
232+
// Default startup command.
233+
// Random map: startRandomMap
234+
// Specific map (factory required): map campgrounds ffa
235+
// Default: set serverstartup "startRandomMap"
236+
set serverstartup "startRandomMap"

qw/server.cfg

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,55 @@
1-
// server info
2-
// server name shown in server browsers
3-
hostname "SERVERNAME"
4-
rcon_password "ADMINPASSWPRD"
5-
// admin name shown in server browsers
6-
sv_admininfo "LinuxGSM <linuxgsm@example.com>"
7-
8-
// motd (max 15 rows) - this is the welcome message displayed when you connect to a server
1+
// ************************************************************************** //
2+
// //
3+
// QuakeWorld - server.cfg //
4+
// Version 260426 //
5+
// //
6+
// ************************************************************************** //
7+
8+
// .................................. Basic ................................. //
9+
10+
// hostname - Server name shown in server browsers.
11+
hostname "SERVERNAME"
12+
13+
// rcon_password - Remote console password.
14+
rcon_password "ADMINPASSWORD"
15+
16+
// sv_admininfo - Admin name shown in server browsers.
17+
sv_admininfo "LinuxGSM <linuxgsm@example.com>"
18+
19+
// ............................. Server Message ............................. //
20+
21+
// k_motd1..k_motd4 - Welcome message (max 15 rows).
922
set k_motd1 "SERVERNAME"
1023
set k_motd2 " "
1124
set k_motd3 "Available game modes:"
1225
set k_motd4 "1on1, 2on2, 4on4, 10on10, ffa, ctf"
1326

14-
// time motd is displayed in seconds
27+
// k_motd_time - Seconds MOTD is displayed.
1528
set k_motd_time "5"
1629

30+
// ................................ Gameplay ................................ //
1731

18-
// edit the lines below if you want different gamemodes on this port
19-
// matchless mode
20-
// run ktx as a regular match server or as a matchless (ffa) server (0 = regular, 1 = matchless)
32+
// k_matchless - Run as regular match server (0) or matchless/ffa server (1).
2133
set k_matchless 0
22-
// use configs/usermodes/matchless instead of [...]/ffa (0 = no, 1 = yes)
34+
35+
// k_use_matchless_dir - Use configs/usermodes/matchless instead of ../ffa.
2336
set k_use_matchless_dir 1
2437

25-
// free modes
26-
// default mode on server
38+
// k_defmode - Default mode on server.
2739
set k_defmode 2on2
28-
// allowed free modes (bit mask):
40+
41+
// k_allowed_free_modes - Allowed free modes bitmask.
2942
set k_allowed_free_modes 255
30-
// 1=1on1, 2=2on2, 4=3on3, 8=4on4, 16=10on10, 32=ffa 64=ctf 128=hoonymode
31-
// server homemap. server will change to this when last player leaves the server
32-
// server mode (1 = duel, 2 = team, 3 = ffa, 4 = ctf)
43+
// 1=1on1, 2=2on2, 4=3on3, 8=4on4, 16=10on10, 32=ffa, 64=ctf, 128=hoonymode
44+
45+
// k_defmap - Home map when server becomes empty.
3346
set k_defmap dm4
47+
48+
// k_mode - Server mode: 1=duel, 2=team, 3=ffa, 4=ctf.
3449
set k_mode 2
50+
51+
// .............................. Map Rotation .............................. //
52+
53+
// Rotation and mode flow are primarily managed by KTX mode configuration.
54+
// k_defmap above acts as the fallback map when the server becomes empty.
55+
// Startup behavior is controlled by server launch and KTX configuration.

0 commit comments

Comments
 (0)