r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Some Server Cvars
Pages: [1]
Author Topic: Some Server Cvars  (Read 74024 times)

Posts: 2625

« on: September 20, 2004, 02:13:34 pm »

sv_locked [0/1]
Lock the server - prevents new players from joining.

sv_restartmap [string]
If the game dll crashes, try to restart the server on this mapname (eg set sv_restartmap gloom)

sv_password [string]
Password required to connect to the server (server-side setting rather than in the mod)

sv_filter_q3names [0/1]
Filter the ^5A^2nnoy^8in^1g ^7Q3^0 style names.

sv_filter_userinfo [0/1/2]
Filter low value ASCII chars from userinfo. Set to 2 to filter high ASCII (colortext) also.

sv_filter_stringcmds [0/1/2]
Filter low value ASCII chars from commands (eg cmd say). Set to 2 to filter high ASCII (colortext) also.

sv_blackholes [0/1]
Enable automatic blocking of players who attempt to crash the server and such.

sv_allownodelta [0/1]
Allow use of cl_nodelta (makes the client consume much more bandwidth if enabled)

sv_deny_q2ace [0/1]
Deny Q2ace clients (a q2ace GL hack exists)

sv_iplimit [integer]
Number of connections to allow from a single IP.

sv_connectmessage [string]
Text to show the user as they are connecting. Use \n for a newline.

sv_nc_visibilitycheck [0/1/2]
Enable NoCheat-style visibility checks to prevent wallhacks. Note, this uses a lot of CPU time and can cause people to not see ents that they should be seeing. Set to 2 to never send the entity, 1 to hide it.

sv_nc_clientsonly [0/1]
Only apply NC visibility check to clients (applying to all ents will use shitloads of CPU). Leave this at 1 unless you understand what all ents means.

sv_max_download_size [integer]
Maximum size in bytes of files to allow autodownload of

sv_max_netdrop [integer]
Maximum number of backed-up move packets a client can have.

sv_hidestatus [0/1]
Don't respond to status requests (eg from server browsers)

sv_hideplayers [0/1]
Don't show player's info in status requests

sv_fpsflood [integer]
Kick users who are sending over this many packets/sec (hacked FPS). Might still be buggy, use with caution. Seems to be working better in b1788+.

sv_randomframe [0/1]
Randomize server framenum to thwart map timers. Buggy, can cause random client drops on map change. Works correctly in b1950+.

sv_gamedebug [integer]
Show (1) and cause a debug breakpoint (>1) on Game DLL errors. Higher values break on more pedantic issues. Set to 0 for normal server usage.

sv_msecs [integer]
Milliseconds of movement to allow each client per 1.6 seconds.

sv_recycle [0/1]
Will reload the Game DLL from gamexxx.ext.new on next map change if set to 1. Useful to update the game dll without kicking everyone off the server.

sv_nc_kick [bitmask]
Kick users not matching NoCheat settings:
(add up the following values you want to use and set sv_nc_kick to this)
1 - require nocheat code
2 - require nocheat video check to pass
4 - require nocheat model check to pass
8 - require nocheat video check to pass
256 - kick any nocheat users

Note that sv_nc_kick simply inspects the NoCheat say string. It is trivial to bypass and is not intended as an anti-cheat measure.

sv_nc_announce [bitmask]
Announce NoCheat kicks of clients matching these bitmasks (see above). Exception, bitmask 128 will announce if a user has passed all NoCheat settings.

sv_filter_nocheat_spam [0/1]
Prevent NoCheat messages from being sent. Note this will break how NoCheat clients authenticate each other!

sv_uptime [0/1/2]
Show server uptime in serverinfo. 1 uses human readble "x days, x hours, xmins" format, 2 uses compact "days+hrs:min:sec" format.
« Last Edit: February 28, 2005, 02:05:24 pm by R1CH » Logged

Posts: 2625

« Reply #1 on: November 11, 2004, 03:20:47 am »

These cvars exist in b1621+:

sv_strafejump_hack [0/1]
Set to 1 to disable the code that limits strafe jumping at high FPS. Will cause prediction misses on the client.

sv_reserved_slots [integer]
Number of reserved slots to include. Note that these are taken away from maxclients, not added. Not recommended to be used in conjunction with other forms of reserved slots in mods/q2admin/etc.

sv_reserved_password [string]
Password required to use a reserved slot, set by client 'password' cvar.

sv_allow_map [0/1]
Control use of the 'map' command after a Game DLL has loaded.

sv_allow_unconnected_cmds [0/1]
Allow partially connected clients to send commands to the Game DLL. This was allowed in Q2 3.2x, it is now an option and default disabled as not all mods take into account that commands can be used by people still in the process of connecting, leading to undefined behaviour.

Posts: 2625

« Reply #2 on: November 22, 2004, 03:30:49 am »


sv_strict_userinfo_check [0/1]
Set to 1 to force strict check on userinfo for non-standard bytes. Recommended, will break some "fun names" though.

sv_calcpings_method [0/1/2]
Change how pings are calculated:
0: Disable reporting of pings completely.
1: Standard Q2 method (averaging).
2: New R1Q2 method, best case minimum. Results in pings much closer to what external programs such as server browsers report and is influenced much less by the client's packet rate.

Posts: 2625

« Reply #3 on: December 01, 2004, 10:52:26 pm »

b1950+ (in development):

sv_no_game_serverinfo [0/1]
Allow or disallow the Game DLL to set serverinfo cvars. Some mods fill up serverinfo too much with useless information causing less space for player status etc. Well it was requested so it's here Smiley.

Posts: 2625

« Reply #4 on: December 19, 2004, 12:31:39 am »


sv_mapdownload_denied_message [string]
Message to send to clients if they attempt to download a map when map downloading is disabled. This is useful to direct them to a website where they can get the map for example. Supports \n for a new line.

sv_mapdownload_ok_message [string]
Message to send to clients when they start downloading a map. This is useful to direct them to a website where they can get the map quicker for example. Supports \n for a new line.

sv_max_traces_per_frame [integer]
Number of "traces" to allow per server frame. Traces are used by hitscan weapons and other things. Some mods however can go into infinite loops by calling the trace function over and over again when it keeps hitting the same object. This variable exists to prevent infinite loops by limiting the max. number of traces. Default is 10000, you should NOT need to touch this unless you are sure you know what you are doing.

sv_ratelimit_status [integer]
Maximum number of status requests per second to reply to. Default 15.

sv_new_entflags [0/1]
Support use of new R1Q2-specifc SVF_ entity flags. Should only be used if the mod you are using instructs you to use it. Default 0.

sv_validate_playerskins [0/1]
Validate a player's skin before sending it to other clients. This replaces bad skins such as those with missing skin/model names, illegal characters, spaces and other such with "male/grunt". Highly recommended to leave enabled unless it is causing problems, as a malformed skin sent to a client can have negative consequences. Default 1.

sv_idlekick [integer]
Seconds before kicking idle players, 0 to disable. Default 0.

sv_packetentities_hack [0/1]
Cut off the packet used for entity updates if it gets too large. By default, the packet will be discarded if it is too large, resulting in a "freezing" effect on the client. Enabling this will send the partial list of entites, but will cause delta errors such as U_REMOVE: oldnum != newnum on the client. Default 0.

logfile_timestamp [0/1]
Add timestamp to log file entries. Default 1.

logfile_timestamp_format [string]
Formatting string to use for timestamp, expressed as a strftime string.

Posts: 2625

« Reply #5 on: December 19, 2004, 05:12:13 am »


Name of the console logfile. Default qconsole.log.

Posts: 2625

« Reply #6 on: January 15, 2005, 09:31:38 pm »


lrcon_password [string]
Password for limited-rcon commands.

sv_force_reconnect [string]
Force an anti-proxy reconnect to this IP:PORT if set. Excludes private/LAN IPs and works much faster than other reconnect methods.

sv_download_refuselimit [integer]
Refuse autodownload requests if there are more than this many players connected.

sv_download_drop_file [string]
sv_download_drop_message [string]
Kick a client off if they attempt to auto download the file named by sv_download_drop_file and send them the sv_download_drop_message text.

sv_packetentities_hack [0/1/2]
Now supports sv_packetentities_hack 2 for trying both a compressed packet and then a truncated packet.

Posts: 2625

« Reply #7 on: February 01, 2005, 12:10:11 am »


sv_blackhole_mask [integer]
Number of bits to use against the IP address for automatic blackholes. 32 means no change, 24 would do 1.2.3.*, 16 would do 1.2.*.*, etc. Read up on subnetting/CIDR if you want to fully understand how the number affects what parts of the address are used.

Posts: 2625

« Reply #8 on: March 14, 2005, 01:56:04 pm »

Some version from a while ago:

con_filterlevel [integer]
logfile_filterlevel [integer]
Filter what events get shown in the console and logfiles. See http://www.r1ch.net/stuff/r1q2/filtercalc.html for a useful calculator.
« Last Edit: May 13, 2005, 11:18:33 am by R1CH » Logged

Posts: 2625

« Reply #9 on: May 07, 2005, 04:17:49 pm »


sv_badcvarcheck [0/1/2]
Action to take on a bad cvarcheck result. 0 = log only, 1 = kick, 2 = blackhole.

sv_rcon_buffsize [integer]
Buffer size for rcon packets. Leave this alone unless you know why you should be changing it.

sv_rcon_showoutput [0/1]
Show output of rcon commands in server console also?

sv_show_name_changes [0/1]
Shows name changes to all players in game.

sv_optimize_deltas [0/1/2]
Control extra playerstate delta optimizations. 0 disables, 1 enables only for R1Q2 clients, 2 enables for all clients. Note that this will BREAK demo recording view angles on non-R1Q2 clients if set to 2!

Posts: 2625

« Reply #10 on: January 18, 2007, 04:18:25 pm »


sv_lag_stats [0/1]
Generate client to server packet loss statistics for the 'lag' command. Enabling this sends a tiny packet every few seconds to every client. Default 0.

sv_max_packetdup [integer]
Maximum number of duplicate packets a client can request using the 'packetdup' command to help avoid packet loss. Default 0.

sv_redirect_address [string]
Address of a server to redirect clients to if the current server is full.

sv_func_entities_hack [0/1]
If set to 1, sounds from func_plat (lifts) and func_door (doors) will be attenuated server-side so they are not broadcast to every client, saving both bandwidth and providing some level of exploit reduction. Additionally, the origin for sounds on a func_plat will be at the top of the platform as opposed to the middle of the entity. This provides more realistic sound positioning. Note that this setting may BREAK sounds for some mods since this kind of adjustment should be done by the Game DLL, not the engine. Please test that everything works OK on your server before keeping this enabled.
Pages: [1]
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Some Server Cvars
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines