Most importantly you need to add your authkey to your start command line, reference this page:
https://developer.valvesoftware.com/...rver_Operators
Using the text file isn't the best method and has caused issues before, you may use it if you wish though.
It should look something like this:
Code:
-game csgo -console -condebug -usercon -maxplayers_override 10 +maxplayers 10 +exec server.cfg -ip XXXXXXXX -port 27025 +game_mode 0 +game_type 0 +map workshop/256877071/am_ramps +mapgroup mg_custom -tickrate 128 +workshop_start_map 256877071 -authkey YOURAUTHKEYHERE
You also need to match your map list settings the same throughout for it function properly.
This includes maplist and mapcycle matching. If it has a workshop destination, you put in that destination.
Code:
workshop/241267905/aim_multi_v4
workshop/256877071/am_ramps
workshop/297888593/am_basement
am_quickdraw
workshop/279697343/am_grass2
workshop/279708083/am_must2
workshop/312854302/am_warehouse3
Your gamemode_server.txt should be like this:
Code:
// To use this file, rename it to GameModes_Server.txt
//
// Values here override the default gamemodes.txt
"GameModes_Server.txt"
{
"gameTypes"
{
"classic"
{
"gameModes"
{
"casual"
{
"maxplayers" "10"
"convars"
{
"hostname" "Orgiginal Gravity: Classic Casual"
"bot_quota" "8"
"mp_startmoney" "800"
"mp_maxmoney" "16000"
}
"mapgroupsMP" // List of mapgroups valid for this game mode
{
"mg_custom" ""
}
}
}
}
}
"maps"
{
//
//Casual Maps
//
"cs_estate"
{
"nameID" "#SFUI_Map_ar_baggage"
"name" "ar_baggage"
"imagename" "map-baggage-overall"
"t_arms" "models/weapons/t_arms_professional.mdl"
"t_models"
{
"tm_professional" ""
"tm_professional_var1" ""
"tm_professional_var2" ""
"tm_professional_var3" ""
"tm_professional_var4" ""
}
"ct_arms" "models/weapons/ct_arms_swat.mdl"
"ct_models"
{
"ctm_swat" ""
"ctm_swat_variantA" ""
"ctm_swat_variantB" ""
"ctm_swat_variantC" ""
"ctm_swat_variantD" ""
}
}
}
//////////////////////////////////////////////////////////////////////////////////////////////
// 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.
//
// 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_custom" // mapgroup definition
{
"name" "mg_custom"
"maps"
{
"workshop/241267905/aim_multi_v4" ""
"workshop/256877071/am_ramps" ""
"workshop/297888593/am_basement" ""
"am_quickdraw" ""
"workshop/279697343/am_grass2" ""
"workshop/279708083/am_must2" ""
"workshop/312854302/am_warehouse3" ""
}
}
}
}
Please NOTE that you are using game_mode 0 and game_type 0 which is gamemode_casual_server.cfg NOT gamemode_competitive_server.cfg
Also NOTE that you should only ever the gamemode_*_server.cfg not gamemode_*.cfg because it WILL be overwritten entirely when updated.
Finally, make sure to add to your gamemode_casual_server.cfg:
Code:
mp_endmatch_votenextmap "0"