Q2 Config-O-Matic

Generating an R1Q2 server config

VariableValueDefaultDescription
sv_password Password required to enter the server. Similar to the 'password' cvar provided by some mods, but at the server level.
sv_restartmap Map name to restart the server with if the Game DLL quits due to a handled errror (eg, no free edicts). If not specified, the server will stop running if the Game DLL quits. Specify only the map name, eg q2dm1.
sv_filter_userinfo 0 (Disabled)
1 (Enabled (normal))
2 (Enabled (strict))
0 Filter the client userinfo string to remove unprintable characters. The normal filter filters out low ASCII values, the strict filter filters both low and high (colortext) values.
sv_filter_stringcmds 0 (Disabled)
1 (Enabled (normal))
2 (Enabled (strict))
0 Filter client commands to remove unprintable characters. The normal filter filters out low ASCII values, the strict filter filters both low and high (colortext) values.
sv_blackholes 0 (Disabled)
1 (Enabled)
1 Control the use of the automatic blackholing (IP blocking) system for clients who try to do illegal things.
sv_allownodelta 0 (Disabled)
1 (Enabled)
1 Allow use of cl_nodelta. If a client is using cl_nodelta, they will require much more bandwidth than a client that is using deltas.
sv_iplimit 3 Maximum number of players allowed to connect from the same IP address.
sv_connectmessage A message to show to clients while they are connecting to the server. Supports \n for newline expansion.
sv_nc_visibilitycheck 0 (Disabled)
1 (Hide Entities)
2 (Remove Entities)
0 Control the use of NoCheat-style visibility checking. This tries to calculate if a player is visible to another player on the server and hides or removes players that aren't visible, reducing the effectiveness of wallhacks. However this causes significant CPU load and also produces false positives and causes issues for players with high pings. Not recommended.
sv_max_download_size 8388608 The maximum file size (in bytes) of a file that a client will be permitted to auto download.
sv_downloadserver A URL to a server where clients can download game content over HTTP. See the R1Q2 forum for more information on this feature.
sv_download_drop_file The name of a file that if a client tries to download, will kick them from the server. Useful for preventing players who do not have the mod from connecting to the server. Example: models/doomsday/tris.md2.
sv_download_drop_message Message to show to clients that are kicked from the above check.
sv_mapdownload_ok_message Message to show to clients who successfully begin a map download. Supports \n for new line.
sv_mapdownload_denied_message Message to show to clients who are refused a map download. Supports \n for new line.
sv_max_netdrop 20 Maximum number of movement packets that may be replayed for a client in the event of packet loss. Lower this value to limit the warping effect of players who encounter packet loss.
sv_hidestatus 0 (Disabled)
1 (Enabled)
0 Do not respond to server status requests.
sv_hideplayers 0 (Disabled)
1 (Enabled)
0 Hide player information from status requests.
sv_fpsflood 0 Kick players who send more than this number of packets per second. Use zero for no limit. A value of less than 100 is not recommended.
sv_randomframe 0 (Disabled)
1 (Enabled)
0 Randomize the server frame number when loading a map to thwart map timers.
sv_uptime 0 (Disabled)
1 (Enabled (normal))
2 (Enabled (compact))
0 Include server uptime in the status response. Use the compact option if the server info string space is limited.
sv_gamedebug 0
1
2
3
4
0 Enable debug information for the Game DLL. When set to 1, R1Q2 will print a warning whenever the Game DLL does something in an incorrect or dangerous way. Setting this to values higher than 1 will cause a breakpoint to occur depending on the severity of the problem. Setting this to 4 will breakpoint on every single problem.
sv_strafejump_hack 0 (Disabled)
1 (Enabled (p35))
2 (Enabled (forced))
1 Enable a fix for the 'feature' that causes strafe jumping to sometimes fail and the player becomes stuck to the floor briefly. This is properly supported in protocol 35 (R1Q2, AprQ2, EGL, Q2Pro, Quetoo) clients, but if forced, it will be enabled for all clients. Non-protocol 35 clients may notice small prediction errors whenever this fix takes effect.
sv_reserved_slots 0 Number of reserved player slots.
sv_reserved_password Password required to use a reserved player slot. Clients set this password using the 'password' cvar.
sv_allow_map 0 (Disabled)
1 (Enabled)
0 Allow use of the 'map' command to change levels. Use of the map command causes a full Game DLL reset, losing any game state. The recommended way to change level is by using the 'gamemap' command.
sv_allow_unconnected_cmds 0 (Disabled)
1 (Enabled)
0 Allow players who are still connecting to use commands such as 'say'. Not recommended.
sv_strict_userinfo_check 0 (Disabled)
1 (Enabled)
0 Perform a strict userinfo check. If the client's userinfo does not match the exact specification for userinfo, they will not be able to connect.
sv_calcpings_method 0 (No ping calculations)
1 (Normal calculations)
2 (R1Q2 calculations)
1 Control how a player's ping is reported in game. The R1Q2 calculation uses the best ping time from the series of packets received which presents a more accurate ping time, however it is less effected by lag.
sv_no_game_serverinfo 0 (Disabled)
1 (Enabled)
0 Disallow the Game DLL from setting serverinfo variables. Must be set before the Game DLL loads. Use this if you get 'serverinfo string length exceeded' a lot.
sv_ratelimit_status 15 Maximum number of status requests to reply to per second.
sv_new_entflags 0 (Disabled)
1 (Enabled)
0 Allow use of new entity flags. Only enable this if instructed to by the mod you are running.
sv_validate_playerskins 0 (Disabled)
1 (Enabled)
1 Validate the structure of skins set by the client 'skin' cvar. Skins must be in the form model/skin or they will be replaced by male/grunt.
sv_idlekick 0 Number of seconds before an idle player is kicked from the server. Zero means no limit.
sv_packetentities_hack 0 (Disabled)
1 (Enabled (normal))
2 (Enabled (zlib))
0 Under heavy activity, the entity updates may not fit in to a single packet. If this occurs, the packet is dropped and the client receives a 'freezing' effect. This cvar allows partial amounts of entities to be sent. If set to 1, the packet will simply be cut off and sent if it gets too large. If set to 2, zlib compression is first attempted to compress the packet into a usable size (for protocol 35 clients only).
sv_entity_inuse_hack 0 (Disabled)
1 (Enabled)
0 Some mods to not properly clear the state of unused entities, and they may still be sent over the network. If this is enabled, entities that are marked as 'not in use' will never be sent over the network, regardless of state.
sv_force_reconnect Force a reconnect on connection to this IP:port or hostname. Useful for bypassing some proxy-based cheats.
sv_enforcetime 0 (Disabled)
1 (Limit only)
2 (Kick (aggressive))
5 (Kick (normal))
10 (Kick (safe))
1 Enable speed cheat detection / limiting. If set to 1, any player exceeding the speed limit will be frozen in place. Values higher than 1 will kick players for exceeding the speed limit, higher values are less sensitive. Note that lag may also be responsible for false detection of speed cheats, so be conservative with the kick threshold.
sv_download_refuselimit 0 Refuse auto downloading if this many players are currently connected. Zero for no limit.
sv_blackhole_mask 32 Bitmask to use when applying automatic blackholes.
sv_badcvarcheck 0 (Log)
1 (Kick)
2 (Blackhole)
0 Action to take when an illegal cvar check result is sent. See the server documentation for further info on cvar checks.
sv_rcon_showoutput 0 (Disabled)
1 (Enabled)
0 Include the output of rcon commands in the server console/log.
sv_show_name_changes 0 (Disabled)
1 (Enabled)
0 Show a message if a player changes their name.
sv_enhanced_setplayer 0 (Disabled)
1 (Enabled)
0 Allow use of partial nicknames in the 'kick', 'dumpuser', etc commands.
sv_predict_on_lag 0 (Disabled)
1 (Enabled)
0 Try to predict movement of lagged players to limit the 'frozen in midair' effect. Experimental.
sv_format_string_hack 0 (Disabled)
1 (Enabled)
0 Disallow a % character in user supplied data to workaround mods that may have format string bugs.
sv_lag_stats 0 (Disabled)
1 (Enabled)
0 Send a small packet every second to generate server to client lag statistics for the client 'lag' command.
sv_max_packetdup 0 Maximum number of duplicate packets a client can request with the 'packetdup' command to help overcome packet loss.
sv_func_entities_hack 0 (Disabled)
1 (Enabled)
0 Attempt to fix sound origins from the Game DLL for elevators and perform server-side attenuation calculations for elevators and doors. If enabled, this will save bandwidth and provide more accurate sound spatialization for these entities. TEST BEFORE USING as some mods may already provide such a fix or may be incompatible with this setting.
net_maxmsglen 1390 Maximum packet size that may be requested by a client. If you set this to zero, the highest possible size will be allowed. If your network connection / router supports it, it is recommended that you set this to zero to allow for large packets where required by protocol 35 clients. Please test this feature before keeping it set as it may not be immediately obvious if your network connection doesn't support it until a client which also has net_maxmsglen 0 tries to connect.
net_ignoreicmp 0 (Disabled)
1 (Enabled)
0 Ignore ICMP unreachable messages. On Windows and Linux, if the server receives an ICMP unreachable message, it will look up the appropriate client and kick them with the message 'connection reset by peer'. This helps to remove client that have crashed without waiting for the full client timeout.
sv_anticheat_required 0 (Disabled)
1 (Optional)
2 (Forced)
0 Control use of the r1ch.net anticheat module for clients. You must have access to the anticheat server before using this cvar. See the R1Q2 forums for further information.
sv_anticheat_error_action 0 (Fail-open)
1 (Fail-closed)
0 Action to take if the anticheat server becomes unavailable. Fail-open allows players to connect without the anticheat module, fail-closed disallows all new connections.
sv_anticheat_message Message to show to players who connect without the anticheat module and it is required by the server.
sv_anticheat_badfile_action 0 (Kick)
1 (Notify)
2 (Broadcast)
0 Action to take if a player fails a file check. Notify notifies the player only, broadcast notifies the whole server.
sv_anticheat_badfile_message Message to show to a player if they fail a file check.
sv_anticheat_badfile_max 0 Maximum number of file check failures before a player is kicked. Zero means no limit.
sv_anticheat_nag_time 0 Number of seconds to show a nag message about anticheat when a player first connects without anticheat.
sv_anticheat_nag_message Message to show if the sv_anticheat_nag_time is set.
sv_anticheat_nag_defer 0 Number of seconds to wait after the player has joined the server before showing the nag message.
sv_anticheat_show_violation_reason 0 (Disabled)
1 (Enabled)
0 Include the violation category in the kick message when a player is kicked for an anticheat violation.
sv_anticheat_client_disconnect_action 0 (Invalidate)
1 (Kick)
0 Action to take if a player disconnects from the anticheat server mid-game. Invalidate marks them as no longer AC Valid. A message will be shown to the other players if this occurs.
sv_anticheat_disable_play 0 (Disabled)
1 (Enabled)
0 If this cvar is enabled, clients using anticheat will not be able to use the client 'play' command to play arbitrary sounds such as item timers.

By default, only cvars that are changed from the default value will be included in the output. If you prefer, you can include all cvars in output.