CSGO icon indicating copy to clipboard operation
CSGO copied to clipboard

Map always de_dust2

Open madhub0815 opened this issue 4 years ago • 4 comments

Hi I set game mode casual and created and set up the files like gamemode_casual_server.txt I also set up a map group called mg_normal and linked it to casual mode.

As start map I am using cs_assault. After the map ends (20 rounds) the end screen appears with the vote of the next map. Don't mater what clients choose the next map is always dust2. Also the nextmap command right after the start of the server points that it will be dust2.

I checked all files like server.cfg (no entry for mapgroups needed?) and gamemode_server.txt but both are set up correctly?

Does anyone have a tip where to look? Who ist the command for the map cycle here?

madhub0815 avatar Jan 24 '21 12:01 madhub0815

Hey,

Have you tried setting the environment variable SRCDS_MAPGROUP=mg_normal since the default value is mg_active it could be that it takes the one passed from the commandline.

CM2Walki avatar Jan 24 '21 16:01 CM2Walki

Hey,

thank you for your fast reply.

I tried that already.

The console output was "Invalid MapGroup" and the result was the same - Forcing de_dust2 as nextmap.

I just found a something in gamemodes.txt wich normally should not be edited in line 51.

"mapgroupsSP" "random_classic" "0"

				// Dust II 24/7
				**//**"mg_de_dust2"		"1""
                                    ...

I also replaced "mg_de_dust2" with "mg_normal" in multiplayer

"mapgroupsMP" { //Other Maps Groups "mg_casualsigma" "0" "mg_casualdelta" "1" "mg_normal" "2" "mg_hostage" "3"

I don't know why that have any effect because it is for singleplayer but as you see i commented it out and afterwards it was working as it should. I also define the mapgroups in the specific gamemode_casual_server.txt wich should be the correct file where that have to be set...

Nevermind thanks for your help it is working now. :-)

madhub0815 avatar Jan 24 '21 17:01 madhub0815

Alright, thanks for the follow-up!

CM2Walki avatar Jan 25 '21 11:01 CM2Walki

EDIT: Found the culprit, it was the next map plugin of sourcemod, which takes over all other means to vote or select maps.


I am facing the same issue, but for multiplayer. I start with the following environment variables:

    -e SRCDS_GAMETYPE=1
    -e SRCDS_GAMEMODE=0
    -e SRCDS_MAPGROUP="mg_armsrace"
    -e SRCDS_STARTMAP="ar_shoots"

But after a round it switches to de_dust2, no matter the vote. de_dust is not part of that map group, the map group gets loaded correctly.

gymnae avatar Mar 13 '21 12:03 gymnae