Server Config Info


(AO) #1

Here’s a post on what exactly the server config does when it is being applied.

You must always set the rules you want, then you apply the server config.

si_rules sdGameRulesObjective
applyServerConfig Standard

All server config related cvars are reset, and a few specific ones are changed. Any server spawned at this point will then show up as a “Standard” server in the server browser. If any server config cvar is changed the server will automatically become a “Custom” server.

Here’s the cvars that each of the server configs set:


{
	{
		name "Standard"
		id 0
		supportedRule "sdGameRulesObjective"
		supportedRule "sdGameRulesCampaign"
		serverInfo {
			"si_teamDamage"					"0"
			"si_maxPlayers"					"16"
			"si_minPlayers"					"1"
			"si_maxTeamSize"				"8"
			"si_maxPlayersHuman"			"16"
			"si_rankRestricted"				"1"
			"bot_minClients"				"16"
			"g_countdown"					"0.0"
			"si_disableVoting"				"1"
			"si_readyPercent"				"1"
		}
	}

	{
		name "Standard"
		id 1
		supportedRule "sdGameRulesStopWatch"
		serverInfo {
			"si_teamDamage"					"0"
			"si_maxPlayers"					"16"
			"si_minPlayers"					"1"
			"si_maxTeamSize"				"8"
			"si_maxPlayersHuman"			"16"
			"si_rankRestricted"				"1"
			"bot_minClients"				"16"
			"g_countdown"					"0.0"
			"si_allowOvertime"				"0"
			"si_disableVoting"				"1"
			"si_readyPercent"				"1"
		}
	}

	{
		name "Advanced"
		id 2
		supportedRule "sdGameRulesObjective"
		serverInfo {
			"si_teamDamage"					"1"
			"si_maxPlayers"					"16"
			"si_minPlayers"					"1"
			"si_maxTeamSize"				"8"
			"si_maxPlayersHuman"			"16"
			"si_rankRestricted"				"1"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"bot_minClients"				"16"
			"g_countdown"					"0.0"
			"si_readyPercent"				"1"
		}	
	}

	{
		name "Advanced"
		id 3
		supportedRule "sdGameRulesStopWatch"
		serverInfo {
			"si_teamDamage"					"1"
			"si_maxPlayers"					"16"
			"si_minPlayers"					"1"
			"si_maxTeamSize"				"8"
			"si_maxPlayersHuman"			"16"
			"si_rankRestricted"				"1"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"bot_minClients"				"16"
			"g_countdown"					"0.0"
			"si_allowOvertime"				"0"
			"si_readyPercent"				"1"
		}	
	}

	{
		name "Competition"
		id 4
		supportedRule "sdGameRulesObjective"
		supportedRule "sdGameRulesStopWatch"
		serverInfo {
			"si_teamDamage"					"1"
			"si_maxPlayers"					"16"
			"si_maxTeamSize"				"5"
			"si_minPlayers"					"4"
			"si_maxPlayersHuman"			"16"
			"si_rankRestricted"				"0"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"si_readyPercent"				"50"
			"g_deadSpectateTime"			"-1"
			"bot_minClients"				"0"
			"g_countdown"					"0.0"
			"g_enableTeamBuffs"				"0"
			"g_enableSuperBuffs"			"0"
			"g_enableIntelGathering"		"0"
			"si_scriptControlledtimeLimit"	"0"
			"si_allowOvertime"				"0"
			"si_teamForceBalance"			"1"
			"g_spectatorMode"				"-1"
			"si_warmupSpawn"				"1"
		}	
	}

	{
		name "Old Skool"
		id 5
		supportedRule "sdGameRulesObjective"
		supportedRule "sdGameRulesStopWatch"
		serverInfo {
			"si_teamDamage"					"1"
			"si_maxPlayers"					"16"
			"si_minPlayers"					"1"
			"si_maxPlayersHuman"			"16"
			"si_rankRestricted"				"0"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"si_readyPercent"				"1"
			"bot_minClients"				"0"
			"g_countdown"					"0.0"
			"si_scriptControlledtimeLimit"	"0"
			"si_allowOvertime"				"0"
			"si_teamForceBalance"			"1"
			"si_warmupSpawn"				"1"
		}	
	}

	//
	// Challenge
	//
	{
		name "ChallengesSP"
		id 6
		supportedRule "sdGameRulesChallenge"
		serverInfo {
			"si_maxPlayers"					"16"
			"si_maxTeamSize"				"12"
			"si_minPlayers"					"1"
			"si_maxPlayersHuman"			"1"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"bot_minClients"				"-1"		
			"si_teamDamage"					"0"
			"si_teamForceBalance"			"0"
			"si_warmupSpawn"				"2"
			"si_adminStart"					"1"
			"g_countdown"					"0"
		}	
	}

	{
		name "ChallengesCoop2"
		id 7
		supportedRule "sdGameRulesChallenge"
		serverInfo {
			"si_maxPlayers"					"16"
			"si_maxTeamSize"				"12"
			"si_minPlayers"					"1"
			"si_maxPlayersHuman"			"2"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"bot_minClients"				"-1"		
			"si_teamDamage"					"0"
			"si_teamForceBalance"			"0"
			"si_warmupSpawn"				"2"
			"si_adminStart"					"1"
			"g_countdown"					"0"
		}	
	}

	{
		name "ChallengesCoop3"
		id 8
		supportedRule "sdGameRulesChallenge"
		serverInfo {
			"si_maxPlayers"					"16"
			"si_maxTeamSize"				"12"
			"si_minPlayers"					"1"
			"si_maxPlayersHuman"			"3"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"bot_minClients"				"-1"		
			"si_teamDamage"					"0"
			"si_teamForceBalance"			"0"
			"si_warmupSpawn"				"2"
			"si_adminStart"					"1"
			"g_countdown"					"0"
		}	
	}

	{
		name "ChallengesCoop4"
		id 9
		supportedRule "sdGameRulesChallenge"
		serverInfo {
			"si_maxPlayers"					"16"
			"si_maxTeamSize"				"12"
			"si_minPlayers"					"1"
			"si_maxPlayersHuman"			"4"
			"si_globalVoipEnabled"			"1"
			"si_teamVoipEnabled"			"1"
			"bot_minClients"				"-1"		
			"si_teamDamage"					"0"
			"si_teamForceBalance"			"0"
			"si_warmupSpawn"				"2"
			"si_adminStart"					"1"
			"g_countdown"					"0"
		}	
	}

	{
		name "Custom"
		id 999
		supportedRule "sdGameRulesObjective"
		supportedRule "sdGameRulesStopWatch"
		serverInfo {
			"si_maxPlayersHuman"			"16"
			"si_warmupSpawn"				"0"
			"si_adminStart"					"0"
			"g_countdown"					"0.167"			
			"si_disableVoting"				"0"
		}	
	}
}

Hopefully this can stop you from unnecessarily changing server config cvars as applying a server configs should take care of setting the necessary cvars.


(Deadwalking) #2

Thanks for the heads up.

should help some with setting up their configs.


(Mustang) #3

Excellent, just what we requested, TYVM