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.

Make your own map rotation

  1. Go to your DatHost Control Panel and click Edit on your CS2 server.
  2. Click Files to open the File Manager, search for gamemodes_server.txt, and open it.
  3. 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.
  4. Save the file.
  5. Open Settings, then the Maps tab.
  6. Set Maps Source to Mapgroups: Local/Official Maps, Mapgroup to mg_custom, and Start Map to the map you want to start on.
  7. Click Save & reboot.

CS2 gamemodes_server.txt in the DatHost File Manager with the mg_custom map list

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.

CS2 Settings Maps tab with Maps Source, Mapgroup mg_custom and Start Map

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 maps
  • mg_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:

  1. Click Configs in the left menu.
  2. Click Edit next to the gamemode_…_server.cfg  file, for example gamemode_competitive_server.cfg. Don't edit the read-only file without _server.
  3. 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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us