Raised This Month: $12 Target: $400
 3% 

What's wrong with my gamemodes_server.txt?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PoisonRAR
Junior Member
Join Date: Oct 2017
Old 10-10-2019 , 19:20   What's wrong with my gamemodes_server.txt?
Reply With Quote #1

I'm trying to make my own mapgroup. I've used several examples but I cannot make the mapgroup to work.

Below is my gamemodes_server.txt file
I've named the mapgroup test.
I've used valves own example file called gamemodes_server.txt.example

PHP Code:
// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt 

"GameModes_Server.txt"{"gameTypes"{"classic"{"gameModes"{

/////////////////////////////////////////
// COMPETITIVE
/////////////////////////////////////////
"competitive"{

        
        
"maxplayers"        "11"            // Note that maxplayers doesn't go in the convar block.
                                            // Another way to set maxplayers is to add -maxplayers_override XX to the cmd line.
        
"exec"
        
{
                                            
// Any config files listed here will be executed after the ones in gamemodes.txt.
            
            
"exec"                    "server_last.cfg" 
        
}

        
"mapgroupsMP"                        // List of mapgroups valid for this game mode ( competitive )
        
{
            
"test"        ""
        
}


}
/////////////////////////////////////////
// CASUAL
/////////////////////////////////////////
"casual"{



        
"maxplayers"        "30"

        "exec"
        
{
            
"exec"                    "server_last.cfg"
        
}

        
"mapgroupsMP"                        // List of mapgroups valid for this game mode ( casual )
        
{
            
"test"        ""
        
}



}}}
"gungame"{"gameModes"{

/////////////////////////////////////////
// ARMS RACE
/////////////////////////////////////////
"gungameprogressive"{



        
"maxplayers"            "10"

        
// These are the configs that get executed when a game mode of this type is created
        
"exec"
        
{
            
"exec"                    "server_last.cfg"
        
}
                    
        
"mapgroupsMP"
        
{
            
"test"    ""
        
}

        
"weaponprogression_ct"
        
{
            
"deagle"        "kills"    "5" }
            
"awp"            "kills"    "5" }
            
"knifegg"        "kills"    "1" }
        }
                    
        
"weaponprogression_t"
        
{
            
"deagle"        "kills"    "5" }
            
"awp"            "kills"    "5" }
            
"knifegg"        "kills"    "1" }
        }



/////////////////////////////////////////
// DEMOLITION
/////////////////////////////////////////
"gungametrbomb"
{


        
"maxplayers"            "10"

        
// These are the configs that get executed when a game mode of this type is created
        
"exec"
        
{
            
"exec"                    "server_last.cfg"
        
}

        
"mapgroupsMP"
        
{
            
"test"        ""
        
}

        
"weaponprogression_ct"
        
{
            
"m4a1"            "kills"    "1" }
            
"awp"            "kills"    "1" }
            
"Scar20"        "kills"    "1" }
        }
            
        
"weaponprogression_t"
        
{
            
"ak47"            "kills"    "1" }
            
"awp"            "kills"    "1" }
            
"g3sg1"            "kills"    "1" }
        }


}}}}

//////////////////////////////////////////////////////////////////////////////////////////////
// Map groups
//
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the 
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
//
// Then launch the server with '+mapgroup MAPGROUPNAME'
//
// Example:
//
// srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
//
//
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers
//////////////////////////////////////////////////////////////////////////////////////////////


    
"mapgroups"
    
{
        
"test"                                    // mapgroup definition
        
{
            
"name"            "test"
            "maps"
            
{
                
"de_dust_se"        ""
                "de_dust2_se"        ""
                "de_nuke_se"        ""
                "de_train_se"        ""
                "de_inferno_se"        ""
                "de_aztec_se"        ""
                "ar_dizzy"        ""
            
}
        }
    }
}} 
From server I do the following
mapgroup test
Respond: Setting mapgroup to 'test'

print_mapgroup_sv
Repsond: No maps in mapgroup map list!

game_type is 0
game_mode is 1

What the hell is wrong? :S
PoisonRAR is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 10-11-2019 , 03:15   Re: What's wrong with my gamemodes_server.txt?
Reply With Quote #2

Works just fine

gamemodes_server.txt
Code:
// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt 

"GameModes_Server.txt"{"gameTypes"{"classic"{"gameModes"{

/////////////////////////////////////////
// COMPETITIVE
/////////////////////////////////////////
"competitive"{

		
		"maxplayers"		"11"			// Note that maxplayers doesn't go in the convar block.
											// Another way to set maxplayers is to add -maxplayers_override XX to the cmd line.
		"exec"
		{
											// Any config files listed here will be executed after the ones in gamemodes.txt.
			
			"exec"					"server_last.cfg" 
		}

		"mapgroupsMP"						// List of mapgroups valid for this game mode ( competitive )
		{
			"mg_custom"		""
		}


}
/////////////////////////////////////////
// CASUAL
/////////////////////////////////////////
"casual"{



		"maxplayers"		"30"

		"exec"
		{
			"exec"					"server_last.cfg"
		}

		"mapgroupsMP"						// List of mapgroups valid for this game mode ( casual )
		{
			"mg_bomb_se"		""
		}



}}}"gungame"{"gameModes"{

/////////////////////////////////////////
// ARMS RACE
/////////////////////////////////////////
"gungameprogressive"{



		"maxplayers"			"10"

		// These are the configs that get executed when a game mode of this type is created
		"exec"
		{
			"exec"					"server_last.cfg"
		}
					
		"mapgroupsMP"
		{
			"mg_armsrace"	""
		}

		"weaponprogression_ct"
		{
			"deagle"		{ "kills"	"5" }
			"awp"			{ "kills"	"5" }
			"knifegg"		{ "kills"	"1" }
		}
					
		"weaponprogression_t"
		{
			"deagle"		{ "kills"	"5" }
			"awp"			{ "kills"	"5" }
			"knifegg"		{ "kills"	"1" }
		}



/////////////////////////////////////////
// DEMOLITION
/////////////////////////////////////////
"gungametrbomb"
{


		"maxplayers"			"10"

		// These are the configs that get executed when a game mode of this type is created
		"exec"
		{
			"exec"					"server_last.cfg"
		}

		"mapgroupsMP"
		{
			"mg_demolition"		""
		}

		"weaponprogression_ct"
		{
			"m4a1"			{ "kills"	"1" }
			"awp"			{ "kills"	"1" }
			"Scar20"		{ "kills"	"1" }
		}
			
		"weaponprogression_t"
		{
			"ak47"			{ "kills"	"1" }
			"awp"			{ "kills"	"1" }
			"g3sg1"			{ "kills"	"1" }
		}


}}}}

//////////////////////////////////////////////////////////////////////////////////////////////
// Map groups
//
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the 
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
//
// Then launch the server with '+mapgroup MAPGROUPNAME'
//
// Example:
//
// srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
//
//
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers
//////////////////////////////////////////////////////////////////////////////////////////////


	"mapgroups"
	{
		"mg_custom"									// mapgroup definition
		{
			"name"			"mg_custom"
			"maps"
			{
				"de_dust2"		""
				"map2"		""
				"map3"		""
				"map4"		""
				"map5"		""
				"map6"		""
			}
		}
	}
}}
TomL. is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode