Configurations for Everyones Information

Post Reply
FlyingMongoose
This is my homepage
This is my homepage
Posts: 353
Joined: Fri Sep 17, 2004 7:50 pm
Contact:

Configurations for Everyones Information

Post by FlyingMongoose » Sat Sep 01, 2012 12:50 pm

While Hidden Path Entertainment (HPE) had the right idea in adding in the gamemode_gametype.cfg and gamemode_gametype_server.cfg files, it ultimately is a moot point as a lot of cvars that should be exposed to .cfg files are still LOCKED, these cvars can ONLY be set at the run time, meaning completely eliminating the "convars" section of your gamemodes_server.txt file is still not a good idea.

Here's an example of things that can only be in the runtime

Code: Select all

//Votes
						// Can people hold votes to change levels?
						"sv_vote_issue_changelevel_allowed"		"0"
						// Can people hold votes to kick players from the server?
						"sv_vote_issue_kick_allowed"			"0"
						// Allow players to extend the current map?
						"sv_vote_issue_nextlevel_allowextend"	"0"
						// Can people hold votes to restart the game?
						"sv_vote_issue_restart_game_allowed"	"0"
						// Can people hold votes to scramble the teams?
						"sv_vote_issue_scramble_teams_allowed"	"0"
						// Can people hold votes to surrender?
						"sv_vote_issue_surrrender_allowed"		"0"
						// Can people hold votes to swap the teams?
						"sv_vote_issue_swap_teams_allowed"		"0"
						// How long should a kick vote ban someone from the server? (in minutes)
						"sv_vote_kick_ban_duration"				"5"
These are "locked" cvars, these can NOT be set in a .cfg file, these MUST be within the "convars" part of a gamemodes_server.txt they CAN NOT be used after run-time. HPE needs to know they have to unlock more cvars before the .cfg method becomes truly usable.

You can find a list of cvars at this link
http://forums.alliedmods.net/showthread.php?t=186668

Anything marked "locked" in the cvar list there needs to be set at run time.

Here's the series of a server launch

command line (runtime) -> gamemodes.txt (runtime) -> gamemodes_server.txt (runtime) -> autoexec.cfg (before mapload) -> gamemodes_gametype.cfg (after mapload) -> gamemodes_gametype_server.cfg -> server.cfg (after everything)

Locked CVAR's can ONLY be set in the runtime, this means, HPE did not resolve the issue they claimed to be resolving with adding in these gamemode_gametype and gamemods_gametype_server config files, all they did was add another layer which only separates configuration more making it more confusing.
Image

User avatar
Edge100x
Founder
Founder
Posts: 12319
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Configurations for Everyones Information

Post by Edge100x » Mon Sep 03, 2012 10:09 pm

Such a mess =\. Thank you for the list.

FlyingMongoose
This is my homepage
This is my homepage
Posts: 353
Joined: Fri Sep 17, 2004 7:50 pm
Contact:

Re: Configurations for Everyones Information

Post by FlyingMongoose » Tue Sep 04, 2012 8:32 pm

Please note, that list was dumped from a server running sourcemod and a couple of plugins, these commands and cvars are typicall preceded with sm_, if you do not run these plugins or sourcemod those cvars and commands should be ignored.

I wish it wasn't such a mess, and it'd be nice if HPE did "What it says on the box" but they haven't until a large chunk of those locked cvars are unlocked that is. Granted, some of them being runtime only does make sense I will admit, but not as many as there are. (voting cvars as runtime cvar is silly)
Image

Post Reply