Page 1 of 1

Custom Maps with CS:GO

Posted: Mon Sep 03, 2012 5:17 am
by tnarocks
I having a prob with the custom maps for my arms race server . I can get on the server fine when the map is ar_shoots or ar_baggage. But when theres no one on and its on a custom map like ar_blue_areana or some other custom map it freezes on the loading screen and it goes red but nothing happens. Is there something that im doing wrong or a way around it? Please let me know. Thanks

Posted: Mon Sep 03, 2012 5:34 am
by Woody
Have you added the custom maps to the mapgroups section for arms race in the gamemodes_server.txt?

You will see the example below in your gamemodes_serrver.txt. It defines the mapgroups for arms race

Continue to scroll down till you find

Code: Select all

      //
      // Map cycle groups
      //

      "mg_hostage"
      {
         "imagename"      "mapgroup-hostage"
         "nameID"      "#SFUI_Mapgroup_hostage"
         "name"         "mg_hostage"
         "maps"
         {
            "cs_office"      ""
            "cs_italy"      ""
         }
      }

      "mg_bomb"
      {
         "imagename"      "mapgroup-bomb"
         "nameID"      "#SFUI_Mapgroup_bomb"
         "name"         "mg_bomb"
         "maps"
         {
            "de_dust2"      ""
            "de_train"      ""
            "de_inferno"      ""
            "de_dust"      ""
            "de_aztec"      ""
            "de_nuke"      ""
         }
      }


      "mg_dust"
      {
         "imagename"      "map-dust2-overall"
         "nameID"      "#SFUI_Mapgroup_dust"
         "name"         "mg_dust"
         "maps"
         {
            "de_dust"      ""
            "de_dust2"      ""
         }
      }

      "mg_armsrace"
      {
         "imagename"      "mapgroup-armsrace"
         "nameID"      "#SFUI_Mapgroup_armsrace"
         "name"         "mg_armsrace"
         "maps"
         {
            "ar_shoots"      ""
            "ar_baggage"      ""
            "ar_blue_arena"      ""
         }
      }

      "mg_demolition"
      {
         "imagename"      "mapgroup-demolition"
         "nameID"      "#SFUI_Mapgroup_demolition"
         "name"         "mg_demolition"
         "maps"
         {
            "de_lake"      ""
            "de_stmarc"      ""
            "de_sugarcane"      ""
            "de_bank"      ""
            "de_safehouse"      ""
            "de_shorttrain"      ""
         }
      }


Notice how I added your map under "mg_armsrace".

Then scroll down till you find

Code: Select all

      //
      // Gun Game Maps
      //

      "ar_blue_arena"
      {
         "nameID"         "#SFUI_Map_ar_blue_arena"
         "name"            "ar_blue_arena"
         "imagename"         "map-baggage-overall"
         "t_arms"         "models/weapons/t_arms_phoenix.mdl"
         "t_models"
         {
            "tm_phoenix"      ""
            "tm_phoenix_variantA"   ""
            "tm_phoenix_variantB"   ""
            "tm_phoenix_variantC"   ""
            "tm_phoenix_variantD"   ""
         }
         "ct_arms"         "models/weapons/ct_arms_gsg9.mdl"
         "ct_models"
         {
            "ctm_gsg9"      ""
            "ctm_gsg9_variantA"   ""
            "ctm_gsg9_variantB"   ""
            "ctm_gsg9_variantC"   ""
            "ctm_gsg9_variantD"   ""
         }
      }


Notice how each map has the above information for it, but note they do differ for each map. Copy and paste one of them and replace it with your map info. I went ahead and did the one above for "ar_blue_arena"

Posted: Mon Sep 03, 2012 5:37 am
by Monday
Woody, not only do you have to add a map to a maplist, you have to add the map itself under the "maps" section.

Posted: Mon Sep 03, 2012 5:44 am
by Woody
Monday wrote:Woody, not only do you have to add a map to a maplist, you have to add the map itself under the "maps" section.


Oops yep! Thanks, added :)

That's another thing they need to fix. Imagine if you have 100+ maps, no bueno. :P

Posted: Mon Sep 03, 2012 5:48 am
by tnarocks
i have the maps in the mapcycle.txt and maplist.txt and i added them in the gamemodes_server.txt and this is what my gamemodes_server.txt looks like

Code: Select all

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

"GameModes_Server.txt"
{
   "gameTypes"
   {
      "Arms race"
      {
         "gameModes"
         {
            "casual"
            {

               "maxplayers"      "24"            // 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"                        "{TAG} The Adult Gungame Classic Casual|Recruiting"
                  "mp_startmoney"                     "1000"
                  "mp_maxmoney"                     "16000"

               }

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

            "casual"
            {

               "maxplayers"      "24"

               "convars"
               {
                  "hostname"                        "{TAG} The Adult Gungame Classic Casual|Recruiting"
                  "mp_startmoney"                     "1000"
                  "mp_maxmoney"                     "16000"

               }

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

         }   
      }
   }

//////////////////////////////////////////////////////////////////////////////////////////////
// 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_armsrace"                           // mapgroup definition
      {
         "name"         "mg_armsrace"
         "maps"
         {
            "aim_ag_texture_city"      ""
            "aim_ag_texture_jungle"      ""
            "aim_aM_grass"      ""
            "aim_deagle7k"      ""
            "aim_map_deagle"      ""
            "ar_baggage"      ""
            "ar_chaos"      ""
            "ar_churches"      ""
            "ar_crash_bandicoot"      ""
            "ar_deagle"      ""
            "ar_deserthouse"      ""
            "ar_fight"      ""
            "ar_freeze_csgo"      ""
            "ar_hatearena"      ""
            "ar_iceworld_wip"      ""
            "ar_italydown_v2"      ""
            "ar_jungle"      ""
            "Ar_Legoland"      ""
            "ar_parking"      ""
            "ar_pool_day_apt_b"      ""
            "ar_shoots"      ""
            "ar_simpsons_bridge"      ""
            "ar_trs_aim_churches"      ""
            "ar_twotowers"      ""
            "ar_white"      ""
            "fy_dustarena"      ""
            "fy_legoland"      ""
            "fy_snowstorm"      ""
            "gg_aim_shotty_csgo"      ""
            "gg_lego_spacetower2"      ""
            "ar_hatearena"      ""
            "aim_ag_madtextures"      ""
            "aim_ag_texture_ceg3"      ""
            "aim_ag_texture_funkytown"      ""
            "aim_ag_texture2"      ""
            "aim_aztec_arena"      ""
            "aim_deagle_hangar"      ""
            "aim_deagle7k"      ""
            "aim_industrial"      ""
            "aim_warmup_d"      ""
            "ar_babylon_b1"      ""
            "ar_dev_base"      ""
            "ar_pocu_aztec"      ""
            "ar_trs_churches"      ""
            "fy_arenaeight"      ""
            "fy_devsnow"      ""
            "fy_iceworld"      ""
            "fy_iceworld_CSGO"      ""
            "fy_iceworld2k_beta1"      ""
            "fy_iceworld-red"      ""
            "fy_jungle"      ""
            "gg_glassshort_go"      ""
            "gg_summer"      ""
            "aim_ag_texture_city_advanced"      ""
            "fy_snow_csgo"      ""
            "gg_2tower_outajungle"      ""
            "ar_blue_arena"      ""
         }
      }
   }
}

Posted: Mon Sep 03, 2012 6:00 am
by Woody
That's close. Look at my example below though. Notice how I added "Maps" to the bottom with an example for ar_blue_arena. You will need to do this for each one of your maps.

Code: Select all

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

"GameModes_Server.txt"
{
   "gameTypes"
   {
      "Arms race"
      {
         "gameModes"
         {
            "casual"
            {

               "maxplayers"      "24"            // 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"                        "{TAG} The Adult Gungame Classic Casual|Recruiting"
                  "mp_startmoney"                     "1000"
                  "mp_maxmoney"                     "16000"

               }

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

            "casual"
            {

               "maxplayers"      "24"

               "convars"
               {
                  "hostname"                        "{TAG} The Adult Gungame Classic Casual|Recruiting"
                  "mp_startmoney"                     "1000"
                  "mp_maxmoney"                     "16000"

               }

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

         }   
      }
   }

//////////////////////////////////////////////////////////////////////////////////////////////
// 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_armsrace"                           // mapgroup definition
      {
         "name"         "mg_armsrace"
         "maps"
         {
            "aim_ag_texture_city"      ""
            "aim_ag_texture_jungle"      ""
            "aim_aM_grass"      ""
            "aim_deagle7k"      ""
            "aim_map_deagle"      ""
            "ar_baggage"      ""
            "ar_chaos"      ""
            "ar_churches"      ""
            "ar_crash_bandicoot"      ""
            "ar_deagle"      ""
            "ar_deserthouse"      ""
            "ar_fight"      ""
            "ar_freeze_csgo"      ""
            "ar_hatearena"      ""
            "ar_iceworld_wip"      ""
            "ar_italydown_v2"      ""
            "ar_jungle"      ""
            "Ar_Legoland"      ""
            "ar_parking"      ""
            "ar_pool_day_apt_b"      ""
            "ar_shoots"      ""
            "ar_simpsons_bridge"      ""
            "ar_trs_aim_churches"      ""
            "ar_twotowers"      ""
            "ar_white"      ""
            "fy_dustarena"      ""
            "fy_legoland"      ""
            "fy_snowstorm"      ""
            "gg_aim_shotty_csgo"      ""
            "gg_lego_spacetower2"      ""
            "ar_hatearena"      ""
            "aim_ag_madtextures"      ""
            "aim_ag_texture_ceg3"      ""
            "aim_ag_texture_funkytown"      ""
            "aim_ag_texture2"      ""
            "aim_aztec_arena"      ""
            "aim_deagle_hangar"      ""
            "aim_deagle7k"      ""
            "aim_industrial"      ""
            "aim_warmup_d"      ""
            "ar_babylon_b1"      ""
            "ar_dev_base"      ""
            "ar_pocu_aztec"      ""
            "ar_trs_churches"      ""
            "fy_arenaeight"      ""
            "fy_devsnow"      ""
            "fy_iceworld"      ""
            "fy_iceworld_CSGO"      ""
            "fy_iceworld2k_beta1"      ""
            "fy_iceworld-red"      ""
            "fy_jungle"      ""
            "gg_glassshort_go"      ""
            "gg_summer"      ""
            "aim_ag_texture_city_advanced"      ""
            "fy_snow_csgo"      ""
            "gg_2tower_outajungle"      ""
            "ar_blue_arena"      ""
         }
      }
   }




   "maps"
   {
      //
      // Gun Game Maps
      //

      "ar_baggage"
      {
         "nameID"         "#SFUI_Map_ar_baggage"
         "name"            "ar_baggage"
         "imagename"         "map-baggage-overall"
         "t_arms"         "models/weapons/t_arms_phoenix.mdl"
         "t_models"
         {
            "tm_phoenix"      ""
            "tm_phoenix_variantA"   ""
            "tm_phoenix_variantB"   ""
            "tm_phoenix_variantC"   ""
            "tm_phoenix_variantD"   ""
         }
         "ct_arms"         "models/weapons/ct_arms_gsg9.mdl"
         "ct_models"
         {
            "ctm_gsg9"      ""
            "ctm_gsg9_variantA"   ""
            "ctm_gsg9_variantB"   ""
            "ctm_gsg9_variantC"   ""
            "ctm_gsg9_variantD"   ""
         }
      }
      
      "ar_shoots"
      {
         "nameID"         "#SFUI_Map_ar_shoots"
         "name"            "ar_shoots"
         "imagename"         "map-vietnam-overall"
         "t_arms"         "models/weapons/t_arms_pirate.mdl"
         "t_models"
         {
            "tm_pirate"      ""
            "tm_pirate_variantA"   ""
            "tm_pirate_variantC"   ""
            "tm_pirate_variantD"   ""
            "tm_pirate_variantB"   ""
         }
         "ct_arms"         "models/weapons/ct_arms_gign.mdl"
         "ct_models"
         {
            "ctm_gign"      ""
            "ctm_gign_variantA"   ""
            "ctm_gign_variantB"   ""
            "ctm_gign_variantC"   ""
            "ctm_gign_variantD"   ""
         }
      }
      
      "ar_blue_arena"
      {
         "nameID"         "#SFUI_Map_ar_blue_arena"
         "name"            "ar_blue_arena"
         "imagename"         "map-vietnam-overall"
         "t_arms"         "models/weapons/t_arms_pirate.mdl"
         "t_models"
         {
            "tm_pirate"      ""
            "tm_pirate_variantA"   ""
            "tm_pirate_variantC"   ""
            "tm_pirate_variantD"   ""
            "tm_pirate_variantB"   ""
         }
         "ct_arms"         "models/weapons/ct_arms_gign.mdl"
         "ct_models"
         {
            "ctm_gign"      ""
            "ctm_gign_variantA"   ""
            "ctm_gign_variantB"   ""
            "ctm_gign_variantC"   ""
            "ctm_gign_variantD"   ""
         }
      }
   }
}


If you don't want to do all of this manually somebody made a nifty little helper GUI. https://csgoelite.com/help/

Posted: Mon Sep 03, 2012 6:02 am
by tnarocks
ok thanks woody and monday i will try that tomorrow and post on it to let know how it goes

Posted: Mon Sep 03, 2012 3:33 pm
by tnarocks
How do I know what the "imagename" "map-vietnam-overall" is?

Posted: Mon Sep 03, 2012 4:36 pm
by tnarocks
Ok I did all that with all the maps and when i try to join on a different map then ar_baggage or ar_shoots it still does not load.

Heres my gamemodes_server.txt http://pastebin.com/uKbyNXdG

Posted: Mon Sep 03, 2012 4:42 pm
by tnarocks
I noticed 2 mistakes i did and edited them so I will try it again and let know.

*Update* after those 2 fixes on the gamemodes_server.txt its still a no go on joining the server. I'm lost.

*Another Update* I also tried to websync the maps to my servers site and still a no go. :(

Heres the Pic of the Screen that I get.

Last Update. I got it to work now. I added the maps to the gamemodes.txt and now it works. Thanks for all the Help Guys.

Posted: Mon Sep 03, 2012 5:33 pm
by Woody
Keep in mind that if you edit the gamemodes.txt the next CS:GO update will most likely overwrite that file. So keep a back up of it.

Glad you got it working!

Posted: Mon Sep 03, 2012 7:43 pm
by tnarocks
how do i add maps to offline mode so that i can make a nav file for one to see if the map works that way cause the map crashes my server.