AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   [CS:GO] gamemodes_server.txt just not working. (https://forums.alliedmods.net/showthread.php?t=194357)

Devils Child 08-27-2012 14:33

[CS:GO] gamemodes_server.txt just not working.
 
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"                ""
                        }
                }
        }
}


surfhope 08-28-2012 11:54

Re: [CS:GO] gamemodes_server.txt just not working.
 
I've created a tool for making a gamemodes_server.txt

If you want you can try it :)

https://csgoelite.com/help/

nightrider 08-28-2012 12:05

Re: [CS:GO] gamemodes_server.txt just not working.
 
Thanks surfhope.

Devils Child 08-28-2012 13:30

Re: [CS:GO] gamemodes_server.txt just not working.
 
Wow! You're a genious! Your tool worked right upon first try! Gonna use this in future :)

Devils Child 08-28-2012 13:55

Re: [CS:GO] gamemodes_server.txt just not working.
 
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?

surfhope 08-28-2012 14:43

Re: [CS:GO] gamemodes_server.txt just not working.
 
Have you tried it with less bots?

Maybe that's the problem.

Subray 08-28-2012 17:38

Re: [CS:GO] gamemodes_server.txt just not working.
 
bot_quota 0

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

Jackmaster 08-28-2012 17:48

Re: [CS:GO] gamemodes_server.txt just not working.
 
LOL bot_quota 64

MrBrightSide 08-28-2012 19:39

Re: [CS:GO] gamemodes_server.txt just not working.
 
Do i need to edit my servers start cmd line to load the gamemodes_server.txt?

Devils Child 08-29-2012 02:45

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

Originally Posted by MrBrightSide (Post 1785555)
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.


All times are GMT -4. The time now is 12:06.

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