Raised This Month: $ Target: $400
 0% 

[CSGO] Mapgroup Fix in gamemodes_server.txt.example


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-27-2015 , 15:58   [CSGO] Mapgroup Fix in gamemodes_server.txt.example
Reply With Quote #1

Hello. Not sure if it's been noted somewhere before, but making a search regarding endmap voting not appearing with custom mapgroup provided no results regarding this, so I presume not.

In gamemodes_server.txt.example file which is downloaded by SteamCMD with the rest of CSGO server files, there is a small mistake. If you use this file as a direct example for setting up gamemodes_server.txt, this mistake effectively prevents your server from showing the game's built-in endmap voting (when SM's nextmap.smx is disabled) when using custom mapgroup (like the default one named mg_bomb_se).

The error is on line 123:
PHP Code:
}}}} 
There is one closing bracket missing, which screws up whatever comes next in the file, which is mapgroups! Line 123 should be altered to this (1 additional bracket):
PHP Code:
}}}}} 
The whole gamemodes_server.txt.example file for reference:
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 )
        
{
            
"mg_bomb_se"        ""
        
}


}
/////////////////////////////////////////
// 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_bomb_se"                                    // mapgroup definition
        
{
            
"name"            "mg_bomb_se"
            "maps"
            
{
                
"de_dust_se"        ""
                "de_dust2_se"        ""
                "de_nuke_se"        ""
                "de_train_se"        ""
                "de_inferno_se"        ""
                "de_aztec_se"        ""
            
}
        }
    }

This should probably be reported to Valve, but I'm not sure how and can't be arsed to figure out, so feel free to do that if you wish.

I'm uploading a fixed gamemodes_server.txt, for the heck of it.
Attached Files
File Type: txt gamemodes_server.txt (3.2 KB, 963 views)
__________________
hleV is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 11-27-2015 , 18:33   Re: [CSGO] Mapgroup Fix in gamemodes_server.txt.example
Reply With Quote #2

I'm really against mapgroups, who thought that up at a time when maps are being put out all the time to use... I could not care less about gamemodes_Server.txt!!

USE THE WORKSHOP ;]
hamilton5 is offline
Reply



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 13:33.


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