Raised This Month: $32 Target: $400
 8% 

[CSGO] Are gamemodes_server.txt Map groups working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rozwel
Junior Member
Join Date: Apr 2019
Old 06-19-2021 , 06:16   [CSGO] Are gamemodes_server.txt Map groups working?
Reply With Quote #1

First of all I have to say that I spent 3 hours searching for a solution and tried over 20 different approaches I found that were posted in years 2010 - 2021. So I'd really like someone to share working solution and not suggest checking someone's topic, because most likely it didn't work for me.

I did many changes within to get rid of a problem, but I was always left with this output from print_mapgroup_sv command:
Code:
Map group: my_group
No maps in mapgroup map list!
After many tries of fixing the errors that were popping in console I always get this 3 lines:

Code:
Setting mapgroup to 'my_group'
NET_CloseAllSockets
ApplyGameSettings: Invalid mapgroup name my_group
I run +mapgroup "my_group", but putting it in different .cfg files didn't work. I'd assume it's not the problem, because it tries to launch the mapgroup succesfully as is said in console outpu above.

My gamemodes_server.txt file looks like tis right now:

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\" "12"
											// If I change it to "maxplayers" it gets the slash back, but with proper spelling the problem still exists
		"exec"
		{
											// Any config files listed here will be executed after the ones in gamemodes.txt.
			
			"exec"					"server.cfg" 
		}

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


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



		"maxplayers"		"30"

		"exec"
		{
			"exec"					"server.cfg"
		}

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



}}}"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"
	{
		"my_group"									// mapgroup definition
		{
			"name"			"my_group"
			"maps"
			{
				"de_mirage"		""
				"de_dust2"		""
				"de_nuke"		""
				"de_train"		""
				"de_inferno"		""
				"de_cache"		""
				"de_cbble"		""
				"de_overpass"		""
			}
		}
	}
}}
It is based on template, but i tried do some tweaks based on a few topics, but it didn't work as well.

I know I can use plugins for it, but for this specific server I want to have basic csgo votes enabled and from what I saw it's possible only with mapgroups or workshop collections. And i don't want to use workshop as I want to have only official maps there.

I was trying with both competitive and casual server settings.

It might be important so I will say it:
There is no sourcemod, metamod or any other external files. I am testing it on raw, freshly installed and updated server.

Honestly, I just resigned, but give it a chance there. Maybe this time my problem will find a solution... So will be very grateful if someone can make it running.
Rozwel 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 03:55.


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