AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   CS:GO How to use custom GameModes_Server.txt for multiple servers in the same folder? (https://forums.alliedmods.net/showthread.php?t=312171)

Fastmancz 11-19-2018 05:51

CS:GO How to use custom GameModes_Server.txt for multiple servers in the same folder?
 
Hello,

Can you tell me, how do I use my own GameModes_Server.txt for multiple servers in same folder? As you know, the following commands can be used:

+servercfgfile ; +mapcyclefile ; +sm_basepath etc. but how to select GameModes_Server_1.txt ; GameModes_Server_2.txt etc. ?

Thanks for reply.

Triniayo 11-19-2018 06:30

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Add parameters (these are the parameters for competitive):

Code:

+game_type 0 +game_mode 1 +mapgroup mg_bomb
copy a gamemode config and add _server behind. should look like this:

Code:

gamemode_competitive_server.cfg
Edit everything you need in these. Pretty sure that this is the best way.

Bacardi 11-19-2018 07:46

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
yeah, there is no server setting for gamemodes_server.txt

If you still want different gamemodes_server.txt settings for forked servers

You can try test:
Code:

// To customize your server, see gamemodes_server.txt.example

"GameModes.txt"
{
        "gameTypes"
        {
                "classic"
                {
                        //"value"                                "0" // Valve default "game_type"

                        "gameModes"
                        {
                                // Classic Valve default game modes "game_mode"
                                // 0 = "casual"
                                // 1 = "competitive"
                                // 2 = "scrimcomp2v2"
                                // 3 = "scrimcomp5v5"


                                "casual_custom1"
                                {
                                        "value"                                  "4"
                                        "maxplayers"                "20"

                                        "exec"
                                        {
                                                "exec"                "gamemode_casual.cfg" //Use Valve default settings
                                                "exec"                "gamemode_casual_custom1_server.cfg" // Override config file
                                        }

                                        "mapgroupsMP"
                                        {
                                                "mg_casualsigma"        "0"
                                                "mg_casualdelta"        "1"
                                                "mg_dust247"                "2"
                                                "mg_hostage"                "3"
                                        }
                                }


                        }       
                }
        }

        "mapgroups"
        {
        }

        "maps"
        {
        }
       
        "botDifficulty"
        {
        }
       
        "maptypes"
        {
        }
}



So if you run other server with game_type 0; game_type 4
+ You can use another maxplayers value and gamemode_ cfg file.
- This will brake some players GUI (loading screen, errors in console etc. etc.) Not good method

Neuro Toxin 11-19-2018 16:28

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Why do you need multiple gamemodes?

Run them all as casual.

Use -exec <file> to execute a unique a server config for each.

Use a plugin to execute your unique _server config during OnAllConfigsExecuted

Fastmancz 11-20-2018 03:10

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Quote:

Originally Posted by Bacardi (Post 2624730)
yeah, there is no server setting for gamemodes_server.txt

If you still want different gamemodes_server.txt settings for forked servers

You can try test:
Code:

// To customize your server, see gamemodes_server.txt.example

"GameModes.txt"
{
        "gameTypes"
        {
                "classic"
                {
                        //"value"                                "0" // Valve default "game_type"

                        "gameModes"
                        {
                                // Classic Valve default game modes "game_mode"
                                // 0 = "casual"
                                // 1 = "competitive"
                                // 2 = "scrimcomp2v2"
                                // 3 = "scrimcomp5v5"


                                "casual_custom1"
                                {
                                        "value"                                  "4"
                                        "maxplayers"                "20"

                                        "exec"
                                        {
                                                "exec"                "gamemode_casual.cfg" //Use Valve default settings
                                                "exec"                "gamemode_casual_custom1_server.cfg" // Override config file
                                        }

                                        "mapgroupsMP"
                                        {
                                                "mg_casualsigma"        "0"
                                                "mg_casualdelta"        "1"
                                                "mg_dust247"                "2"
                                                "mg_hostage"                "3"
                                        }
                                }


                        }       
                }
        }

        "mapgroups"
        {
        }

        "maps"
        {
        }
       
        "botDifficulty"
        {
        }
       
        "maptypes"
        {
        }
}



So if you run other server with game_type 0; game_type 4
+ You can use another maxplayers value and gamemode_ cfg file.
- This will brake some players GUI (loading screen, errors in console etc. etc.) Not good method

GamesTypes: game_type is set to an invalid value (6). Range [0,5]. - When I try set to 6. So it's not good solusion.

Quote:

Originally Posted by Neuro Toxin (Post 2624807)
Why do you need multiple gamemodes?

Run them all as casual.

Use -exec <file> to execute a unique a server config for each.

Use a plugin to execute your unique _server config during OnAllConfigsExecuted

It's there problem with multiple servers, I have a different number of max players per servers. Unfortunately, the file gamemodes.txt takes precedence over the -exec command.

I tried //"maxplayers" "20", but unsuccessfully (serverlist show 0/1 of players).

Triniayo 11-20-2018 05:12

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Add "+maxplayers_override 20" to your launch options.

Maxximou5 11-20-2018 16:31

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Quote:

Originally Posted by Fastmancz (Post 2624853)
GamesTypes: game_type is set to an invalid value (6). Range [0,5]. - When I try set to 6. So it's not good solusion.

It is a good solution. Game_type 6 is invalid, it's invalid because it doesn't exist. Just use valid game_type and game_mode combos.

https://developer.valvesoftware.com/...ing_the_Server

Quote:

Note:Read the gamemodes.txt file for all of the game_types and modes.
If you're trying to use a custom game type, use custom, don't make up types that don't exist.

Quote:

Originally Posted by Triniayo (Post 2624863)
Add "+maxplayers_override 20" to your launch options.

Use "-maxplayers_override 20" NOT "+maxplayers_override 20"
https://developer.valvesoftware.com/...s#Source_Games

Neuro Toxin 11-20-2018 16:40

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Use the override for max players.

Use -exec to execute a server.cfg

Triniayo 11-26-2018 04:16

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
Quote:

Originally Posted by Maxximou5 (Post 2624938)
It is a good solution. Game_type 6 is invalid, it's invalid because it doesn't exist. Just use valid game_type and game_mode combos.

https://developer.valvesoftware.com/...ing_the_Server



If you're trying to use a custom game type, use custom, don't make up types that don't exist.



Use "-maxplayers_override 20" NOT "+maxplayers_override 20"
https://developer.valvesoftware.com/...s#Source_Games

Sorry, my bad. Thanks for correcting me. ;)

Kjaer 11-29-2018 03:01

Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
 
If trying to achieve a multi-gamemode server this can be achieved in any source game by using a combination of different "server.cfgs" for each gamemode and voting mode such as UMC (in the umc_mapcycle.txt exec appropriate server.cfg on each maptype ). Main server.cfg should be barebones and hold core server settings whilest you change gametype and map setting in the gamemode cfgs.


All times are GMT -4. The time now is 02:51.

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