keepcalculator

06 Numbers and Powers

Switch Your CS Server to CS2: Step-by-Step

Card No. 06·71837 · Updated · Standard formula, shown below

This guide walks you through converting an existing Counter-Strike: Global Offensive (CS:GO) dedicated server to Counter-Strike 2 (CS2). You’ll learn the required files, launch options, and configuration changes needed to get your server running on the new engine, while preserving your community’s settings and maps where possible.

What You’ll Need

  • Existing CS:GO dedicated server files (or a clean install of the CS2 dedicated server tools).
  • SteamCMD installed on your server machine (the command-line tool for downloading server files).
  • Administrative access to your server’s file system and firewall (to open the necessary ports).
  • A basic text editor (like Notepad++ or VS Code) to edit configuration files.
  • At least 30 GB of free disk space (CS2 server files are larger than CS:GO’s).
  • Your server’s public IP address (or DNS name) and the port you plan to use (default 27015).

Step-by-Step

  1. Back up your CS:GO server files. Before making any changes, copy your entire CS:GO server directory to a safe location. This ensures you can revert if something goes wrong. Pay special attention to your cfg folder, maps folder, and any custom plugins or scripts.
  2. Install the CS2 dedicated server files. Using SteamCMD, download the CS2 server. Open a terminal (or command prompt) and run:
    steamcmd +login anonymous +force_install_dir ./cs2-server +app_update 730 +quit

    This downloads the latest CS2 dedicated server files into a new folder called cs2-server. If you already have a CS:GO server, you can update it in place by pointing the install directory to your existing folder, but a clean install is recommended to avoid conflicts.

  3. Verify the new file structure. After the download completes, navigate to your CS2 server folder. You should see game/csgo (or csgo directly) containing the executable srcds.exe (Windows) or srcds_linux (Linux). The CS2 server uses the same engine base as CS:GO, but the game files are different.
  4. Create or update your server configuration files. The main configuration file is game/csgo/cfg/server.cfg. If it doesn’t exist, create it. At minimum, set your server name, password, and game mode. For a casual server, use:
    hostname "My CS2 Server"
    sv_password ""
    mp_gamemode 0
    mp_randomspawn 0
    

    For competitive, set mp_gamemode 1. You can copy settings from your old CS:GO server.cfg, but be aware that some commands have changed or been removed. Check the console output after starting for warnings about unrecognized commands.

  5. Set up the server launch command. Create a start script (e.g., start.sh on Linux or start.bat on Windows) with the following:
    ./srcds_linux -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount YOUR_GSLT_TOKEN +ip 0.0.0.0 -port 27015

    Replace YOUR_GSLT_TOKEN with a token from the Steam Game Server Account Management page (required for public listing). Adjust game_type and game_mode to match your server type (0/0 for casual, 0/1 for competitive, 1/1 for deathmatch, etc.).

  6. Update your firewall and port forwarding. CS2 uses the same default port as CS:GO (UDP 27015). If you changed the port in the launch command, open that port in your firewall and forward it in your router. Also open TCP 27015 for RCON if you use it.
  7. Start the server. Run your start script. Watch the console for errors. The server will generate a csgo folder structure on first run. Wait until you see “Connection to Steam servers successful” or similar.
  8. Test the server. Open CS2 in your Steam client, go to the Play menu, and select “Browse Community Servers.” Search for your server by name or IP. Join to verify it works. If you can’t find it, check the console output for your server’s IP and port.
  9. Migrate custom content. Copy your custom maps from the old CS:GO server’s maps folder to the new CS2 server’s game/csgo/maps folder. Note that not all CS:GO maps are compatible with CS2—only those that have been updated or are built for the Source 2 engine will work. Plugins and mods that relied on SourceMod or Metamod may not work until they are updated for CS2.
  10. Set up automatic restarts and updates (optional). For a persistent server, consider using a service like systemd (Linux) or a scheduled task (Windows) to keep it running. You can also set up a cron job to run SteamCMD update daily to keep the server files current.

Common Mistakes

  • Using the old CS:GO server executable. The CS2 server uses the same srcds binary, but it must be the version downloaded from the CS2 app ID (730). Running an outdated binary will not work.
  • Forgetting to update your GSLT token. Without a valid token, your server will not appear in the public list and may not accept connections from outside your LAN.
  • Copying over all CS:GO config files blindly. Many commands have changed or been deprecated. Check the server console for warnings and remove or replace those commands.
  • Not opening the correct ports. If you changed the port in the launch command, you must also update your firewall and router settings. A common error is opening 27015 but launching on 27016.
  • Assuming all maps work. CS2 uses a different map format. If you copy a CS:GO map that hasn’t been ported, the server will fail to load it and may crash.

Tips

  • Use a dedicated directory for CS2. Don’t overwrite your CS:GO server files. Keep them separate to allow easy rollback and comparison.
  • Test with a minimal config first. Before adding all your custom settings, start with a barebones server.cfg to ensure the server runs. Then incrementally add commands.
  • Monitor the console output. The server prints valuable information about errors, missing files, and network status. Keep the console open during testing.
  • Set up a simple web admin panel. Tools like SourceBans or a basic RCON web interface can help manage the server remotely, but ensure they are compatible with CS2.
  • Keep your server files updated. Valve frequently updates CS2. Run SteamCMD regularly to fetch the latest patches.

Troubleshooting

Server won’t start: Check the console for missing DLLs or permission errors. On Linux, ensure the executable has execute permissions (chmod +x srcds_linux). Verify you have enough disk space and that the path contains no spaces (use quotes if it does).

Server not visible in the community list: Confirm your GSLT token is valid and not expired. Check that the server is connected to Steam by looking for “Connection to Steam servers successful” in the console. Ensure your firewall allows inbound UDP on the server port.

Players get “Connection timed out” when joining: This usually indicates a network issue. Verify the server is listening on the correct IP and port (use netstat -an | grep 27015 on Linux or netstat -an | findstr 27015 on Windows). Test locally by connecting to 127.0.0.1:27015 from the server itself.

Map fails to load: Check the console for an error like “Map ‘de_oldmap’ not found.” This means the map is not in the maps folder or is incompatible. Download a CS2-compatible version of the map.

Custom commands not working: Many CS:GO commands have been renamed or removed in CS2. Use the find command in the server console (e.g., find mp_) to list available commands. Alternatively, search the official CS2 server documentation.

Frequently Asked Questions

Can I keep my CS:GO server and run CS2 on the same machine? Yes, but you need to use a different port for each server. You can run both simultaneously as long as your hardware can handle the load and you have enough disk space.

Do I need a new GSLT token for CS2? No, the same token works for both CS:GO and CS2, as long as it’s associated with your Steam account. However, you may want to generate a new one for better traceability.

Will my SourceMod plugins work on CS2? Not directly. SourceMod and Metamod have been updated for CS2, but plugins must be recompiled against the new SDK. Check the plugin’s page for CS2 compatibility.

How do I update my CS2 server? Run the same SteamCMD command as in Step 2. The tool will automatically download and apply updates. Restart the server after updating.

What are the default ports for CS2? The default game port is UDP 27015. The RCON port is TCP 27015. If you use the SourceTV feature, it uses UDP 27020.

Can I migrate my CS:GO server’s config file directly? You can copy it, but you must review it. Many commands have changed or been removed. Start with a minimal config and add commands one by one to avoid issues.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →