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

Game mode settings keep getting reset after every server update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GTAmama16
Member
Join Date: Jun 2019
Old 05-14-2020 , 22:44   Game mode settings keep getting reset after every server update
Reply With Quote #1

So whenever CSGO server receive an update, it will always set my custom game mode competitive/casual setting back to default, is there like a plugin or any other ways to prevent this from happening ?

Thanks for the help
GTAmama16 is offline
ThePwnt
AlliedModders Donor
Join Date: Feb 2009
Location: Denmark
Old 05-15-2020 , 05:47   Re: Game mode settings keep getting reset after every server update
Reply With Quote #2

How do you update?

Do you use validate? (it will overwrite gamemode_competitive.cfg e.g)
ThePwnt is offline
GTAmama16
Member
Join Date: Jun 2019
Old 05-15-2020 , 11:33   Re: Game mode settings keep getting reset after every server update
Reply With Quote #3

Quote:
Originally Posted by ThePwnt View Post
How do you update?

Do you use validate? (it will overwrite gamemode_competitive.cfg e.g)

yes i did used the validate, should i just remove this command ?
GTAmama16 is offline
ThePwnt
AlliedModders Donor
Join Date: Feb 2009
Location: Denmark
Old 05-15-2020 , 11:50   Re: Game mode settings keep getting reset after every server update
Reply With Quote #4

Quote:
Originally Posted by GTAmama16 View Post
yes i did used the validate, should i just remove this command ?
Yeps.

Because it will overwrite files =)

Quote:
Validate is a command that will check all the server files to make sure they match the SteamCMD files. This command is useful if you think that files may be missing or corrupted.

Note: Validation will overwrite any files that have been changed. This may cause issues with customized servers. For example, if you customize mapcycle.txt, this file will be overwritten to the server default. Any files that are not part of the default installation will not be affected.
It is recommended you use this command only on initial installation and if there are server issues.
ThePwnt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-15-2020 , 12:03   Re: Game mode settings keep getting reset after every server update
Reply With Quote #5

What if... you use gamemode_competitive_server.cfg
Create that file, and add your cvars there
__________________
Do not Private Message @me

Last edited by Bacardi; 05-15-2020 at 12:03.
Bacardi is offline
GTAmama16
Member
Join Date: Jun 2019
Old 05-15-2020 , 12:16   Re: Game mode settings keep getting reset after every server update
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
What if... you use gamemode_competitive_server.cfg
Create that file, and add your cvars there
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 ?
GTAmama16 is offline
GTAmama16
Member
Join Date: Jun 2019
Old 05-15-2020 , 12:18   Re: Game mode settings keep getting reset after every server update
Reply With Quote #7

Quote:
Originally Posted by ThePwnt View Post
Yeps.

Because it will overwrite files =)
cool thanks for the help !
GTAmama16 is offline
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
GTAmama16
Member
Join Date: Jun 2019
Old 05-16-2020 , 04:41   Re: Game mode settings keep getting reset after every server update
Reply With Quote #9

Quote:
Originally Posted by Bacardi View Post
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
Cool, so i will just have to change the stuff in the gamemode_competitive_server.cfg ?
GTAmama16 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-16-2020 , 05:06   Re: Game mode settings keep getting reset after every server update
Reply With Quote #10

Yes, it is meant for that.
As long as you run game_type 0; game_mode 1 (competitive) = gamemode_competitive_server.cfg
Bacardi 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 06:04.


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