AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Game mode settings keep getting reset after every server update (https://forums.alliedmods.net/showthread.php?t=324393)

GTAmama16 05-14-2020 22:44

Game mode settings keep getting reset after every server update
 
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

ThePwnt 05-15-2020 05:47

Re: Game mode settings keep getting reset after every server update
 
How do you update?

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

GTAmama16 05-15-2020 11:33

Re: Game mode settings keep getting reset after every server update
 
Quote:

Originally Posted by ThePwnt (Post 2700254)
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 ?

ThePwnt 05-15-2020 11:50

Re: Game mode settings keep getting reset after every server update
 
Quote:

Originally Posted by GTAmama16 (Post 2700317)
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.

Bacardi 05-15-2020 12:03

Re: Game mode settings keep getting reset after every server update
 
What if... you use gamemode_competitive_server.cfg
Create that file, and add your cvars there :3

GTAmama16 05-15-2020 12:16

Re: Game mode settings keep getting reset after every server update
 
Quote:

Originally Posted by Bacardi (Post 2700324)
What if... you use gamemode_competitive_server.cfg
Create that file, and add your cvars there :3

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 05-15-2020 12:18

Re: Game mode settings keep getting reset after every server update
 
Quote:

Originally Posted by ThePwnt (Post 2700319)
Yeps.

Because it will overwrite files =)

cool thanks for the help !

Bacardi 05-15-2020 12:32

Re: Game mode settings keep getting reset after every server update
 
Quote:

Originally Posted by GTAmama16 (Post 2700326)
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

GTAmama16 05-16-2020 04:41

Re: Game mode settings keep getting reset after every server update
 
Quote:

Originally Posted by Bacardi (Post 2700331)
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 ?

Bacardi 05-16-2020 05:06

Re: Game mode settings keep getting reset after every server update
 
Yes, it is meant for that.
As long as you run game_type 0; game_mode 1 (competitive) = gamemode_competitive_server.cfg


All times are GMT -4. The time now is 04:43.

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