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

[CS:GO] gamemodes_server.txt just not working.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Devils Child
Member
Join Date: Aug 2011
Old 08-27-2012 , 14:33   [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #1

Hello everyone

I had problems setting up a CS:GO Server using a custom map because of the gamemodes_server.txt. To find the issue I tracked it down and tried to just copy the contents of gamemodes_server.txt.example to gamemodes_server.txt.
These are the example configs by valve so it should work, right?

Well it doesn't.

I get lots of errors like
Quote:
RecursiveLoadFromBuffer: got empty keyname in file gamemodes_server.txt
Below is the important part of the startup console log.

What do I have to do in order to make it play only one custom map in classic casual?

Many thanks!

(Hope this is the correct sub forum)

Quote:
#GameTypes: merging game types interface from gamemodes_server.txt.
#KeyValues Error: RecursiveLoadFromBuffer: got empty keyname in file gamemodes_server.txt
#GameModes_Server.txt, #{, #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#KeyValues Error: LoadFromBuffer: missing { in file gamemodes_server.txt
#(*GameModes_Server.txt*), #(*{*), #(*gameTypes*), #(*classic*), #(*gameModes*), #(*casual*), #(*mapgroupsMP*), #
#GamesTypes: game type/mode (gungame/gungameprogressive) is missing convar "hostname".
#GamesTypes: game type/mode (gungame/gungametrbomb) is missing convar "hostname".
#GamesTypes: game type/mode (training/training) is missing convar "bot_quota".
#GamesTypes: game type/mode (training/training) is missing convar "hostname".
Server is hibernating
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Convar developer has conflicting FCVAR_CHEAT flags (child: no FCVAR_CHEAT, parent: has FCVAR_CHEAT, parent wins)
Particles: Missing 'particles/maps/gg_vietnam.pcf'
maxplayers set to 32
Required key "game_info" missing.
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
--------------------------------------------------------

This is the untouched gamemodes_server.txt:

Code:
// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt 

"GameModes_Server.txt"
{
	"gameTypes"
	{
		"classic"
		{
			"gameModes"
			{
				"competitive"
				{

					"maxplayers"		"8"				// Note that maxplayers doesn't go in the convar block.
														// Another way to set maxplayers is to add -maxplayers_override XX to the cmd line.

					"convars"
					{
						"hostname"								"SE SERVER 24/7"
						"mp_startmoney"							"888"
						"mp_maxmoney"							"9999"

					}

					"mapgroupsMP"						// List of mapgroups valid for this game mode ( competitive )
					{
						"mg_bomb_se"		""
					}
				}

				"casual"
				{

					"maxplayers"		"25"

					"convars"
					{
						"hostname"								"SE SERVER 24/7"
						"mp_startmoney"							"15998"
						"mp_maxmoney"							"99999"

					}

					"mapgroupsMP"						// List of mapgroups valid for this game mode ( casual )
					{
						"mg_bomb_se"		""
					}
				}

			}	
		}
	}

//////////////////////////////////////////////////////////////////////////////////////////////
// Map groups
//
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the 
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
2//
// Then launch the server with '+mapgroup MAPGROUPNAME'
//
// Example:
//
// srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
//
//
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers
//////////////////////////////////////////////////////////////////////////////////////////////


	"mapgroups"
	{
		"mg_bomb_se"									// mapgroup definition
		{
			"name"			"mg_bomb_se"
			"maps"
			{
				"de_dust_se"		""
				"de_dust2_se"		""
				"de_nuke_se"		""
				"de_train_se"		""
				"de_inferno_se"		""
				"de_aztec_se"		""
			}
		}
	}
}

Last edited by Devils Child; 08-27-2012 at 14:35.
Devils Child is offline
surfhope
Member
Join Date: Aug 2010
Location: Austria
Old 08-28-2012 , 11:54   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #2

I've created a tool for making a gamemodes_server.txt

If you want you can try it

https://csgoelite.com/help/
__________________

Last edited by surfhope; 08-28-2012 at 11:55.
surfhope is offline
Send a message via Skype™ to surfhope
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 08-28-2012 , 12:05   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #3

Thanks surfhope.
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!


nightrider is offline
Devils Child
Member
Join Date: Aug 2011
Old 08-28-2012 , 13:30   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #4

Wow! You're a genious! Your tool worked right upon first try! Gonna use this in future
Devils Child is offline
Devils Child
Member
Join Date: Aug 2011
Old 08-28-2012 , 13:55   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #5

One last question, if I may ;)

I want to use this map: http://gamebanana.com/csgo/maps/download/168213

It says there I should add this:
Quote:
mp_autoteambalance 0
mp_limitteams 0
mp_buytime 999
mp_maxrounds 10000
botjointeam_t
bot_quota 64
So I added it here:

Quote:
"casual"
{
"maxplayers" "64"

"convars"
{
"mp_autoteambalance" "0"
"mp_limitteams" "0"
"mp_buytime" "999"
"mp_maxrounds" "10000"
"bot_join_team_t" ""
"bot_quota" "64"
}
But still there are 4 bots in CT team and 30 in T team while there *should* be no bots in CT team and all bots in T team. Did I do something wrong?
Devils Child is offline
surfhope
Member
Join Date: Aug 2010
Location: Austria
Old 08-28-2012 , 14:43   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #6

Have you tried it with less bots?

Maybe that's the problem.
__________________
surfhope is offline
Send a message via Skype™ to surfhope
Subray
Junior Member
Join Date: Apr 2011
Old 08-28-2012 , 17:38   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #7

bot_quota 0

you have 64 so you are adding 64 bots to the game.

Last edited by Subray; 08-28-2012 at 17:38.
Subray is offline
Jackmaster
SourceMod Donor
Join Date: May 2011
Old 08-28-2012 , 17:48   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #8

LOL bot_quota 64
Jackmaster is offline
MrBrightSide
Member
Join Date: Jun 2011
Old 08-28-2012 , 19:39   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #9

Do i need to edit my servers start cmd line to load the gamemodes_server.txt?
MrBrightSide is offline
Devils Child
Member
Join Date: Aug 2011
Old 08-29-2012 , 02:45   Re: [CS:GO] gamemodes_server.txt just not working.
Reply With Quote #10

Quote:
Originally Posted by MrBrightSide View Post
Do i need to edit my servers start cmd line to load the gamemodes_server.txt?
No, you just have to create this file that's all.
Devils Child is offline
Reply



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 12:41.


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