View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-15-2020 , 12:32   Re: Game mode settings keep getting reset after every server update
Reply With Quote #8

Quote:
Originally Posted by GTAmama16 View Post
so if i use it and type exec gamemode_competitive_server.cfg in my server.cfg
even the update validate the server files it wont get set to default ?
Why you would do that ?

CSGO devs have made own game mode settings: gamemode_competitive.cfg
which over take cvars what you change in server.cfg.

So, CSGO devs made also override config file: gamemode_competitive_server.cfg
to over take cvars what gamemode_competitive.cfg change.

You can read/look from gamemodes.txt
Code:
...
                "competitive"
                {
                    "value"                "1"
                    "nameID"            "#SFUI_GameModeCompetitive"
                    "descID"            "#SFUI_GameModeCompetitiveDesc"
                    "descID_List"        "#SFUI_GameModeCompetitiveDescList"
                    "uid"                "2"
                    "maxplayers"        "10"

                    "show_rich_presence_map_game"  "#SFUI_Lobby_StatusRichPresenceSeparator_classic_competitive"
                    "show_rich_presence_map_watch" "#SFUI_Lobby_StatusRichPresenceSeparator_classic_competitive"
                    "show_rich_presence_map_review" "#SFUI_Lobby_StatusRichPresenceSeparator_classic_competitive"
                
                    // These are the descriptive ui elements to display in the information box on.
                    // These key/values should be pairs of strings.  The "key" will appear in the left
                    // column, the "value" will appear in the right column.
                    "ui"
                    {
                        "0"        { "label" "#SFUI_CashColon"                "value" "$800" }
                        "1"        { "label" "#SFUI_WinMatchColon"            "value" "30 #SFUI_Rounds" }
                        "2"        { "label" "#SFUI_TimePerRoundColon"        "value" "2 #SFUI_Minutes" }
                        "3"        { "label" "#SFUI_BuyTimeColon"            "value" "45 #SFUI_Seconds" }
                        "4"        { "label" "#SFUI_SpectateColon"            "value" "#SFUI_SpectateTeamOnly" }
                        "5"        { "label" "#SFUI_BotsColon"                "value" "#SFUI_BotDifficulty3" }
                    }

                    // These are the configs that get executed when a game mode of this type is created
                    "exec"
                    {
                        "exec" "gamemode_competitive.cfg"
                        "exec" "gamemode_competitive_server.cfg"
                    }
                    
                    // Map groups for offline modes
                    "mapgroupsSP"
                    {
                        "random_classic"    "0"
                        
                        // Active Duty maps
...
*edit
here more
https://developer.valvesoftware.com/...ual_server.cfg


more Thread: CSGO server cfg file hierarchy
__________________
Do not Private Message @me

Last edited by Bacardi; 05-15-2020 at 12:34.
Bacardi is offline