Very helpful, thanks for that. I wanted to know something as well. The 
gamemodes_server file has the maxplayers cvar too, but its also in the cfg 
files in the cfg folder for each game mode, which one takes precedence?




________________________________
 From: Devin O'Malley <[email protected]>
To: [email protected] 
Sent: Sunday, September 2, 2012 8:15:35 PM
Subject: Re: [Csgo_servers] Adding a custom map
 

Hey,

So, in order to do this in CSGO, you have to create a mapgroup. To do this you 
need to edit gamemodes_server.txt (If you've never edited this file, it will be 
written as gamemodes_server.txt.example). This is located in the root /csgo/ 
directory. Inside of this file is a similar structure to gamemodes.txt. So, 
here are the steps for this file:

1) In the hierarchy of the top half of the file, you can see at the bottom a 
section on mapgroups. It should look like this:


    "mapgroups"
    {
        "mg_armsrace"                                    // mapgroup definition
        {
            "name"            "mg_armsrace"
            "maps"
            {
                "ar_shoots"        ""
                "ar_baggage"    ""
                "ar_library_b1"    ""
                "ar_eeco_classic"    ""
                "ar_pocu_aztec"    ""
            }
        }
    }
}

Note what you've named it. I made this for my armsrace server. The custom maps 
are just listed, as shown. You have to remember what you've called it, if you 
are not overwriting a default mapgroup.

2) Up at the top of the gamemodes_server.txt file, you have to include your 
mapgroup in the gametype you are seeking to edit. This example is for my 
armsrace server.


"GameModes_Server.txt"
{
    "gameTypes"
    {
        "gungame"
        {
            "gameModes"
            {
                "gungameprogressive"
                {
                    "maxplayers"            "16"
                    "convars"
                    {
                    }

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

So, here you have to set the valid mapgroups under the mapgroupsMP section. For 
more information on the structure, please refer to gamemodes.txt but do not 
edit that file directly as it will be overwritten each update. The convars 
section of this file is depreciated, and you should set convars now in the cfg 
files in the csgo/cfg folder. If you want a custom one, add a section like:

"exec"
{
exec "configname.cfg"
}


Once this is done, you can save this file, and edit the config of your choice. 

3) In your config file for the game mode, make sure to have:
sv_uploadurl "YOURWEBHOSTINGURLHERE"
eg: sv_uploadurl "http://mymaps.com/csgo/maps/"; (Note the hierarchy is the same 
as the game's)
sv_allowdownload 1
sv_allowupload 1

4) Upload your map to your server in the /csgo/maps/ folder.
5) Upload your map as a .bz2 to your fastdl website (IE 
http://mymaps.com/csgo/maps/)
6) If you want to set more options for your map, create a .kv file on your 
server in the /csgo/maps/ directory. For more info on this file, go here:
http://csgomaps.net/forums/showthread.php?tid=34

7) For your launch options, it should look like this:
srcds -game csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup 
mg_CUSTOMMAPGROUP +map STARTINGMAP

In my case:
srcds -game csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup 
mg_armsrace +map ar_shoots

Up in the gamemodes_server.txt, you can set what game type and game mode 
numbers you want to use when you create a game mode. For more info on where 
those should go, refer to the structure of gamemodes.txt.

8) Run your server, and load any custom maps once if they don't include a .nav 
file. It will generate one, then switch the map. Thereafter it should be okay.

9) Please note, that since they don't have custom pictures, most custom maps 
will not show anything on loading. There will be no bar, but it will say 
continue after it loads.

On Sun, Sep 2, 2012 at 8:54 PM, Brian Gilhooly <[email protected]> wrote:

Hey guys...
>I am simply trying to add a custom map to my cs:go server. I tried asking my 
>server provider and they were zero help. Does anyone have a working method for 
>this? I would appreciate a detailed description, as I haven't had much 
>experience with hosting my own server.
>Thanks!
>_______________________________________________
>Csgo_servers mailing list
>[email protected]
>https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
>

_______________________________________________
Csgo_servers mailing list
[email protected]
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
_______________________________________________
Csgo_servers mailing list
[email protected]
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers

Reply via email to