CS2: How to Set Up a Map Rotation (Mapgroups)
How to choose which official maps your DatHost CS2 server rotates through, with a custom mapgroup or one of CS2's built-in ones.
A mapgroup is a list of maps. Your server starts on one of them, and at the end of each match moves on to the next. Mapgroups are for official maps. For Workshop maps, use a Workshop collection instead: the server then rotates through the collection, and the Mapgroup and Start Map settings aren't used. See CS2: How to Host Workshop Maps and Collections.
In this article
Make your own map rotation
- Go to your DatHost Control Panel and click Edit on your CS2 server.
- Click Files to open the File Manager, search for
gamemodes_server.txt, and open it. - At the top is a mapgroup called
mg_custom. Under"maps", put one map per line, in the order you want them, in the same format as the maps already there. - Save the file.
- Open Settings, then the Maps tab.
- Set Maps Source to Mapgroups: Local/Official Maps, Mapgroup to
mg_custom, and Start Map to the map you want to start on. - Click Save & reboot.

For example, this rotation plays Inferno, Mirage, Dust2 and Nuke:
"maps"
{
"de_inferno" ""
"de_mirage" ""
"de_dust2" ""
"de_nuke" ""
}
Only use map names that are on the server already. The official CS2 maps are.

Use a built-in mapgroup
CS2 has its own mapgroups too. Set Mapgroup to one of these instead of mg_custom:
mg_active: the current Active Duty mapsmg_bomb: all official bomb defusal maps
Then set a Start Map from that group and click Save & reboot.
Stop the map vote
At the end of a match, CS2 shows a vote for the next map instead of moving on in order. To rotate through the maps without a vote:
- Click Configs in the left menu.
- Click Edit next to the
gamemode_…_server.cfgfile, for examplegamemode_competitive_server.cfg. Don't edit the read-only file without_server. - Add this line, then save and restart:
mp_endmatch_votenextmap 0
Troubleshooting
The server keeps going back to de_dust2. Mapgroup is empty or wrong, or Maps Source isn't on Mapgroups: Local/Official Maps. Check both on the Maps tab, then click Save & reboot.
"CommandMapGroup: No mapgroup specified." The mapgroup name in Settings doesn't match one in gamemodes_server.txt. Check the spelling.
Check which maps are in the rotation. Type print_mapgroup_sv on the Console page. It shows the active mapgroup and its maps.
Can I mix game modes in one rotation? No. CS2 plays every map in the rotation in the same game mode. To change mode, see CS2: Switch Game Modes.