How to Change the Map on a CS2 Server
Changing the map on your Counter-Strike 2 (CS2) server lets you control which battlegrounds your community plays on, whether you’re rotating through competitive staples or testing a custom workshop map. This guide covers the essential commands and configuration edits for both dedicated servers and the in-game “Play with Friends” mode. You’ll need console access (either in-game or via SSH/RDP for a dedicated box) and basic familiarity with CS2’s server commands.
What You’ll Need
- Admin rights on the server (or the server’s RCON password).
- Access to the server console (in-game console, SSH, or hosting panel).
- The exact map name (e.g.,
de_dust2,de_mirage, or a workshop map’s ID). - For dedicated servers: ability to edit the server’s
autoexec.cfgorserver.cfgfile.
Step-by-Step
- Open the console. On your own client, press
~(tilde) to open the developer console (enable it in Settings → Game → Enable Developer Console). For a dedicated server, connect via SSH or use your hosting provider’s web console. - Identify the map name. Standard maps use short names like
de_mirage,de_inferno, orde_nuke. For workshop maps, you’ll need the map’s unique ID from the Steam Workshop URL (e.g.,workshop/123456789). - Change the map immediately. Type
changelevel de_dust2(replace with your desired map) in the console and press Enter. The server will load the new map instantly, kicking all players briefly. - Set the next map in the rotation. Use
nextlevel de_mirageto queue a map that will load after the current round ends. This is useful for a smooth transition. - Vote to change the map (if enabled). If your server has map voting enabled, players can type
!rtv(rock the vote) or!map de_dust2in chat. Admins can force a vote withsm_mapvote(requires SourceMod). - Edit the map rotation file (dedicated servers). Locate the
mapcycle.txtfile in the server’scsgo/cfgdirectory. Add or remove map names, one per line. Save the file and restart the server or runexec mapcycle.txtto apply changes. - Set a default map for server start. In
server.cfg(orautoexec.cfg), add a line likemap de_dust2. This will be the first map loaded when the server starts. - Use RCON (if you’re not at the server). From your client console, type
rcon_password yourpasswordthenrcon changelevel de_nuke. This works even if you’re not physically at the server.
Common Mistakes
- Typo in map name: CS2 map names are case-sensitive and must match exactly.
de_dust2works, butDe_Dust2will fail. - Using the wrong command:
maprestarts the server, whilechangelevelis a smoother transition. Usingmapin a live server will disconnect everyone. - Forgetting to save rotation edits: If you edit
mapcycle.txtbut don’t restart or exec it, changes won’t take effect. - Workshop maps not downloaded: If a workshop map isn’t in the server’s collection, players may get stuck on the loading screen. Ensure the map is in the server’s workshop collection.
Tips
- Use
changelevelovermap: It preserves server settings and is less disruptive. - Test maps offline first: Before adding a workshop map to rotation, load it once on a test server to ensure it works.
- Keep a backup of your
mapcycle.txt: If you break something, you can quickly restore it. - Use
nextlevelfor planned rotations: It lets players know the next map without a sudden change. - For dedicated servers, use a config file: Put frequently used commands in
autoexec.cfgso they run automatically on start.
Troubleshooting
- Map doesn’t load / server crashes: Check the server console for errors. The map file may be corrupt or missing. Try re-downloading the map or using a different one.
- Players get kicked when map changes: This is normal for
changelevel; they’ll reconnect automatically. If they don’t, ask them to reconnect manually. - Workshop map loads but players can’t join: Ensure the map is in the server’s Workshop Collection and that the collection ID is set in
server.cfg(e.g.,host_workshop_map). - RCON commands not working: Verify the RCON password is correct and that you’re using the right IP/port. Some hosting panels block RCON by default.
- Map rotation not cycling: Check that
mapcycle.txtis in the correct folder (csgo/cfg) and that the server is using it (setmapcyclefile "mapcycle.txt"inserver.cfg).
Frequently Asked Questions
Can I change the map without restarting the server?
Yes, use changelevel instead of map. It loads the new map without a full restart, though players will still be disconnected briefly.
How do I add a custom workshop map to my server?
Add the map to a Steam Workshop collection, then set host_workshop_map to the collection ID in your server.cfg. The server will download the map automatically on start.
Why does my map change command say “Unknown command”?
You likely don’t have admin rights or RCON access. The changelevel command requires server admin privileges. Check your admin status or RCON password.
What is the difference between map and changelevel?
map restarts the server and clears all settings, while changelevel loads a new map while preserving server settings and is less disruptive.
How do I set a permanent map rotation?
Edit the mapcycle.txt file in the csgo/cfg directory. List each map on a new line. The server will cycle through them automatically.
Can I change the map from the game client without RCON?
If you’re the host of a “Play with Friends” lobby, you can press ~ and type changelevel directly. For dedicated servers, you need admin or RCON access.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.