Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Add Custom Maps to a CS2 Dedicated Server

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide walks you through adding custom maps to your Counter-Strike 2 dedicated server, so you and your community can play on workshop or community-made maps. You'll need your server's IP/port, FTP or file manager access, and the map's Workshop ID or .vpk file. No coding experience is required.

What You'll Need

  • Access to your dedicated server's file system (via FTP, SFTP, or a web-based file manager).
  • Your server's IP address and RCON password (or SSH access) to run console commands.
  • The Workshop ID of the map you want to add (found on the Steam Workshop page URL) or the map's .vpk file.
  • SteamCMD installed on your server (most hosts include it).

Step-by-Step

  1. Locate your server's files. Log into your hosting panel or FTP client and navigate to the root directory of your CS2 server. Typically this contains folders like game, csgo, and cs2 (depending on your host).
  2. Find or create the csgo/addons and csgo/maps folders. If they don't exist, create them. Custom maps go into csgo/maps, but workshop maps require a special folder structure.
  3. For Workshop maps: get the Workshop ID. Go to the map's Steam Workshop page and copy the ID from the URL (e.g., ?id=123456789).
  4. Download the map using SteamCMD. On your server, open a terminal or SSH session and run SteamCMD with the following commands (replace USERNAME and PASSWORD with your Steam credentials, or use anonymous if the map is public):
    steamcmd +login USERNAME PASSWORD +force_install_dir ./cs2 +app_update 730 +workshop_download_item 730 123456789 +quit
    This downloads the map to cs2/steamapps/workshop/content/730/123456789.
  5. Copy the downloaded map to the correct location. Navigate to the downloaded folder and copy the .vpk file (or the entire folder) to csgo/maps/workshop/123456789/. If the workshop folder doesn't exist, create it. The final path should look like: csgo/maps/workshop/123456789/map_name.vpk.
  6. For non-Workshop maps (direct .vpk files): Simply upload the .vpk file to csgo/maps/ using FTP. Make sure the filename matches the map name you'll use in the server command.
  7. Add the map to your server's rotation or start it. In your server's server.cfg or via console, set the map using the command map workshop/123456789/map_name for workshop maps, or map map_name for direct maps. To add to rotation, add the map name to the mapgroup or use sm_map if you have SourceMod installed.
  8. Restart your server. After making changes, restart the server to load the new map. Test by connecting and using changelevel or map command.

Common Mistakes

  • Wrong folder path: Placing the .vpk in csgo/maps instead of csgo/maps/workshop/<id> for workshop maps. The game looks for workshop maps in the workshop subfolder.
  • Using the wrong map name: The map name in the command must match the .vpk filename exactly, including case sensitivity on Linux servers.
  • Forgetting to restart the server: Some changes require a full restart; a simple map change may not pick up new files.
  • Not downloading all required files: Some maps have additional files (e.g., textures, sounds) that are packed into the .vpk, but if the map uses external files, you must download the entire workshop content folder.

Tips

  • Use the host_workshop_map command: In your server console, you can type host_workshop_map 123456789 to directly load a workshop map by ID without manually copying files.
  • Pre-download maps for players: If your server runs a map not in the default rotation, players will download it automatically from the server, but it's faster if they subscribe to it on the Workshop.
  • Keep backups: Before updating maps, back up the current .vpk files so you can roll back if a new version has issues.
  • Check file permissions: On Linux servers, ensure the .vpk files have read permissions (chmod 644) so the server can read them.

Troubleshooting

  • Map doesn't appear in the list: Verify the file is in the correct folder and the filename matches the map name. Check server logs for errors like "Map not found".
  • Map fails to download for players: Ensure the server has sv_downloadurl configured if you want fast downloads, or that players have subscribed to the map on the Workshop.
  • Server crashes when loading the map: The map may be corrupt or incompatible. Try re-downloading it, or test with a different map to see if the issue is specific.
  • Workshop download fails: Check your SteamCMD login credentials. Some maps require a premium account to download. Also, ensure you have enough disk space.
  • Map loads but textures are missing: The map may reference external files that weren't downloaded. Re-run the workshop download and copy the entire content folder, not just the .vpk.

Frequently Asked Questions

Do players need to download the map themselves?

No, they will automatically download from your server when they connect, but it's faster if they subscribe to the Workshop item beforehand.

Can I add multiple custom maps at once?

Yes, download each map and add them to your rotation. Use the mapgroup command or list them in server.cfg.

What is the difference between a Workshop map and a regular custom map?

Workshop maps are downloaded via SteamCMD and stored in the maps/workshop/<id> folder. Regular custom maps are placed directly in maps/ and are often used for local testing or private servers.

Can I use custom maps on a server without SteamCMD?

Yes, you can manually upload the .vpk file via FTP, but you must know the correct folder structure. Workshop maps are easier to manage with SteamCMD.

Why does my server say "Map not found" when I try to load it?

Double-check the map name in the command. It must match the .vpk filename exactly. Also, ensure the file is in the correct folder and has proper permissions.

Can I run custom maps on a listen server (non-dedicated)?

Yes, the process is similar, but you can use the in-game console to load the map directly from your local files.