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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fastmancz
Senior Member
Join Date: Jul 2013
Location: Czech Republic
Old 11-19-2018 , 05:51   CS:GO How to use custom GameModes_Server.txt for multiple servers in the same folder?
Reply With Quote #1

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.
__________________


Main owner of the CMGPORTAL.CZ.
---------------------------------------
My plugins:
[CS:GO] Panorama - Timeleft
[CS:GO] JailBreak - Be quiet, please!
Fastmancz is offline
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 11-19-2018 , 06:30   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #2

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.
__________________
If you need any help, feel free to add me on Steam.



Last edited by Triniayo; 11-19-2018 at 06:31.
Triniayo is offline
Send a message via Skype™ to Triniayo
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-19-2018 , 07:46   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #3

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

Last edited by Bacardi; 11-19-2018 at 07:55.
Bacardi is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-19-2018 , 16:28   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #4

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
__________________
Neuro Toxin is offline
Fastmancz
Senior Member
Join Date: Jul 2013
Location: Czech Republic
Old 11-20-2018 , 03:10   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
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 View Post
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).
__________________


Main owner of the CMGPORTAL.CZ.
---------------------------------------
My plugins:
[CS:GO] Panorama - Timeleft
[CS:GO] JailBreak - Be quiet, please!
Fastmancz is offline
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 11-20-2018 , 05:12   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #6

Add "+maxplayers_override 20" to your launch options.
__________________
If you need any help, feel free to add me on Steam.


Triniayo is offline
Send a message via Skype™ to Triniayo
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 11-20-2018 , 16:31   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #7

Quote:
Originally Posted by Fastmancz View Post
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 View Post
Add "+maxplayers_override 20" to your launch options.
Use "-maxplayers_override 20" NOT "+maxplayers_override 20"
https://developer.valvesoftware.com/...s#Source_Games
Maxximou5 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-20-2018 , 16:40   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #8

Use the override for max players.

Use -exec to execute a server.cfg
__________________
Neuro Toxin is offline
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 11-26-2018 , 04:16   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #9

Quote:
Originally Posted by Maxximou5 View Post
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. ;)
__________________
If you need any help, feel free to add me on Steam.


Triniayo is offline
Send a message via Skype™ to Triniayo
Kjaer
Senior Member
Join Date: Oct 2009
Location: Canada
Old 11-29-2018 , 03:01   Re: CS:GO How to use custom GameModes_Server.txt for multiple servers in the same fol
Reply With Quote #10

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.
__________________
If you require server assistance add me!
Kjaer 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 09:12.


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