SRCDS Steam group


Override server.cfg, force fps_max on command line
#1
Hello,

I am trying to figure out how to only have fps_max be used based on the command line setting. For example, if my server.cfg has "fps_max 600" and my command line has "+fps_max 200", I want the command line to take precedence over the server.cfg. This is so that customers cannot just up the fps_max themselves. I have already tried "-fps_max 200" in the startup line and it didn't help Sad

Any ideas? Thanks in advance.

Ryan
Reply
#2
try +fps_max 200
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#3
dualcore1289 Wrote:try +fps_max 200

the server.cfg will stuff overwrite that because it is executed after the command line.

EDIT: 300th post Toungue
~ trewq
Reply
#4
ok then forget that idea lol. is there anyway to to prevent that?
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#5
Well, you could remove it from your server.cfg. I don't thing that people will change it then.

Otherwise, I don't know the command for prevent that.(If there's one).
Reply
#6
have your srcds startup script remove/edit that line from the cfg file. if you're using linux, sed is your friend.
Reply
#7
I didn't realize that you can set FPS in a CFG file.
Here's a few ideas.

First, make sure you have it written somewhere that they can not change the FPS and you have the right to change it back.

1) Make the server run a CFG file every hour that resets the fps_max.
2) Make a script that check config files for a "fps_max" line and removed it.
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#8
I can do a script(eventscripts 1.5) so if the fps_max isn't 200(or whatever you like) it will change it back Smile
Reply
#9
does it have to be for eventscripts? because alot of people dont use eventscripts. . .
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#10
Yes, because its the only "computer language" I know Smile

Unless some one else knows to do it in: .php/.html/c++/c#/c+/python.

Just tell me, if you're interessed.
Reply
#11
may i get this? also anyone else come up with another way? because only some people use eventscripts. lets say i put it ina cfg and execute it every hour, cant they just rcon fps_max 600 and change it to whatever?
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#12
Hmm, in TF2, we usually set the command line to have "-fps_max xxx" So users cannot change, and config files cannot change it. As far as I know I guess :x

- = private
+ = public

Try that
Reply
#13
Wait a sec, I thing m0- is right, try that dualcore1289, if it doesn't work, I'll do the script for you Smile
Reply
#14
Thanks for all the replies, guys.

As I mentioned in the first post, I have already tried '-fps_max 200' and it had no effect, since it was already set in the server.cfg.

I think txqzr4 has a good idea by removing it in the startup script. That would solve most of the issues. Fyi I am the creator of GamePanelX, the open source game panel, and I will probably add that into my startup script.

But this still doesn't solve if someone says 'rcon fps_max 1000' or so in console. Hmmmm Toungue

Ryan
Reply
#15
i always thought that the - meant its iniated before the server startup and the + is iniated after the server startup. . .
Ryan White
Owner & CEO
GigabiteServers.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)