Editing gamemodes.txt and running the map

Discussion in 'CS:GO Mapping Discussion' started by Sergis, May 6, 2012.

  1. Sergis

    aa Sergis L666: ])oo]v[

    Positive Ratings:
    By default, CSGO will allow you to play a new map only 1v1 or wont allow you to join a team at all, idk which one is it now. To play with a proper playercount, you need to edit gamemodes.txt file which is placed in your Counter-Strike Global Offensive Beta/csgo folder.

    Open the file and search for "// Classic Maps". After that line there is the information for each map - playercounts, player models, etc. Copy the whole block for cs_italy, which looks like this:
    Paste it so there are two entries for cs_italy. Now, edit one to suit your map - replace the mapname with the name of your map. Delete the hostage_models part I guess if you're not making a hostage map. Here's how I did it for my map (I'm not sure if changing nameID and imagename is even necessary, but it doesn't hurt):
    Now you can play the map with a proper playercount.

    Running the map ingame:
    - To play casual mode, enter "game_type 0" and"game_mode 0"
    - To play competitive mode, enter "game_type 0" and"game_mode 1"
    - To play arms race, enter "game_type 1" and"game_mode 0"
    - To play demolition, enter "game_type 1" and"game_mode 1"
    - Enter "map <name of the map>", e.g. "map de_ashes_b1"

    You can also add your map to the map select screen by adding a new mapgroup and listing it under the gametype.
    To add the map to casual playlist, search for text "casual", "competitive" for competitive, "gungameprogressive" for arms race, "gungametrbomb" for demolition" (include the doublequotes "" in this one search). Now, search for "mapgroupsSP" and add an extra entry for your map. Example:
    Now, search for "// Single map groups" and add a mapgroup with your map. Example:
    Your map will show up in the map selection screen. The image will be broken however and the name will be listed as whatever you entered in the nameID field earlier (#SFUI_Map_de_ashes_b1 in my case).

    Bonus: Editing the weaponcycle in Arsenal

    Search for "weaponprogression". You will first find a longer list, which is armsrace weapon list for CT, right under it is the list for T, if you search after that, you will find two shorter lists which are for the Demolition gamemode. Edit them to your liking...or leave them the way they are. For example, here's a weapon selection that I like to use for demolition for both teams:

    Remember than you might need to redo all your changes after an update and remember to save a backup copy before any changes if you're bad at this kind of stuff :p
    • Thanks Thanks x 4
    Last edited: May 6, 2012
  2. AngryAngus

    AngryAngus L3: Member

    Positive Ratings:
    Well found!
    I do wonder if the steam workshop integration will just automatically add the maps to this list?
    Its quite an unusual way of doing it in my opinion; I do prefer to setup gamemodes inside hammer personally.
  3. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Positive Ratings:
    Thanks Doom!
  4. zpqrei

    aa zpqrei Theme Changer Extraordinaire

    Positive Ratings: