SRCDS Steam group


Setting sv_maxupdaterate and sv_maxcmdrate on the command line
#1
Just a quick question,

Is it possible to set the sv_maxupdaterate and sv_maxcmdrate on the command line, and if so, what is the proper command?

I know these two settings can easily be set inside a config file, however I would like to also know how to add it to the command line.

Thanks. Smile
Reply
#2
You can set any cvar in the commandline by adding a + infront
so:
+sv_maxupdaterate <#> or +sv_maxcmdrate <#>
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
Drocona Wrote:You can set any cvar in the commandline by adding a + infront
so:
+sv_maxupdaterate <#> or +sv_maxcmdrate <#>

Thanks -- I thought that was the correct command, and that's the first thing I tried but something seemed to have caused it to not work.

I have it set to 100 in the config file, so I would like to set it to 33 on the command line so I can test that it overwrites the config file. Thus far, when I set it to 33 in the command line it is still 100 in-game, but it should be taking the command line variable into account first, therefor it should be 33. Here's the command line:

srcds.exe +exec server.cfg +map de_dust2 -console -autoupdate -game cstrike +fps_max 600 -tickrate 100 -nohltv +mp_dynamicpricing 0 -port 27015 -ip 123.456.789.012 +sv_maxupdaterate 33

I have also tried adding the +sv_maxupdaterate 33 right after "srcds.exe" just incase, but no go.
Reply
#4
try putting a - instead of +
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#5
Spartanfrog Wrote:try putting a - instead of +

Weird, it's still taking my config file values over the command line, even when using a - instead of a +. Not sure why. Sad
Reply
#6
Here's how it goes:

commandline is the first thing that loads immediately at the same time the server starts, those values are instantly loaded.
Beginning of the startup sequence it will load autoexec.cfg
When it's in the second stage of the startup sequence it will load the server.cfg (which is exec'ed later than the commandline and autoexec.cfg), resulting in reloading and "overwriting" duplicate settings set in the commandline, so if you set +maxplayers 10 in the commandline and maxplayers 20 in the server.cfg it will reload to 20 players.


Also - is used for actual REAL commandline parameters like -ip -port -game -console etc. there's only a select few of those, CVars have to be used with +, - will not work and will throw an unknown command or simply won't work.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)