Counter-Strike 2 - Dedicated Servers (2024)

Counter-Strike 2 - Dedicated Servers (1)

This article or section needs to be updated to include current information regarding the subject.
Remember to check for any notes left by the tagger at this article's talk page.

Counter-Strike 2 - Event Header

Counter-Strike 2 - Dedicated Servers (3)

Counter-Strike 2 - Dedicated Servers (7)

This page outlines how to setup and run an Counter-Strike 2 Dedicated Server.

Contents

  • 1 Recommended system requirements
  • 2 Download the CS2 Dedicated server
  • 3 Registering Game Server Login Token
  • 4 Starting the Server
    • 4.1 Windows
    • 4.2 Linux
  • 5 Command-Line Parameters
  • 6 Console Variables (cvars)
  • 8 Tools and Helpers
    • 8.1 Docker
    • 8.2 CS2 Multiserver
  • 9 Advanced Configuration
  • 10 Troubleshooting
    • 10.1 Linux
      • 10.1.1 Failed to load module '/home/your_user/.steam/sdk64/steamclient.so'
    • 10.2 Windows
      • 10.2.1 Failed to initialize Steamworks SDK for gameserver. Failed to load module 'C:\Program Files (x86)\Steam\steamclient64.dll'

Recommended system requirements

Stub

This article or section is a stub. You can help by adding to it.

Linux:

  • Minimum RAM: 2GB
  • Storage: 33GB
  • Requires Glibc 2.31
  • CPU: minim x86-64-v2 (with popcnt)

Counter-Strike 2 - Dedicated Servers (10)Note:The Glibc requirement means a minimum of Ubuntu 20.04, Debian 11, or Enterprise Linux 9 is required.

Download the CS2 Dedicated server

Counter-Strike 2 - Dedicated Servers (11)Note:The CS2 dedicated server and game client have been merged together (appid 730). Previously the CSGO client (appid 730) and dedicated server (appid 740) were separate.

Counter-Strike 2 - Dedicated Servers (12)Important:The total size of Counter-Strike 2 download is approximately 33GB

This describes the process of installing/updating the CS2 dedicated server. These steps are required every time the game is updated. To automate this process for future updates, see SteamCMD#Automating SteamCMD.

1. Download and install SteamCMD.

2. Start SteamCMD. At the Steam> prompt, set your CS2 Dedicated Server install directory.

Counter-Strike 2 - Dedicated Servers (13)Bug:On some Linux distributions the path cannot contain any capital letters

Examples:

  • Windows:
force_install_dir c:\cs2-ds\force_install_dir .\cs2-ds\
  • Linux:
force_install_dir /full/path/to/cs2-ds/

3. Login into SteamYou need to login into Steam anonymously, or using your account.

Examples:

login anonymous

4. Install or Update CS2.If this is your first time installing or if you are trying to verify the integrity of the server files:

app_update 730 validate

If this is simply an update to an existing CS2 dedicated server:

app_update 730

4. Once finished, type quit at the Steam> prompt to properly log off of the Steam servers.

Registering Game Server Login Token

Counter-Strike 2 - Dedicated Servers (14) Confirm:The server auto generates the GSLT on startup, stores it locally, and renews when able to.

No. GSLT must be created just like with CSGO. Seem to be able to use the same one from CSGO. I was unsure how to add/use it properly. Using +sv_setsteamaccount <TOKEN> on command line. With CSGO you set this in autoexec.cfg

No Steam account token was specified. Logging into anonymous game server account. Connections will be restricted to LAN only. To create a game server account go to http://steamcommunity.com/dev/managegameservers

Counter-Strike 2 - Dedicated Servers (15)Todo:

Starting the Server

Counter-Strike 2 - Dedicated Servers (16)Note:For information about ports to be forwarded see the general SRCDS page.

Counter-Strike 2 - Dedicated Servers (17)Note:Default gamemode when starting the server is competitive. See for all game modes

Counter-Strike 2 - Dedicated Servers (18)Note:You need to add the parameter -dedicated for it to launch the dedicated server, else it launches the game.

Counter-Strike 2 - Dedicated Servers (19)Note:Steam needs to be installed on the system in order to launch the dedicated server.

Counter-Strike 2 - Dedicated Servers (20) Windows

Head to the folder where you downloaded the application and open a terminal there.

Head to the executable for the server that is stored in game/bin/win64/cs2.exe - But don't click on it as it will just launch the game.

In the terminal run the following command to start the server:

.\cs2.exe -dedicated +map de_dust2

Counter-Strike 2 - Dedicated Servers (22) Linux

Head to the folder where you downloaded the application.

Head to the executeable that is stored in game/bin/linuxsteamrt64/cs2

Run the following command to start the server:

./cs2 -dedicated +map de_dust2

Command-Line Parameters

Stub

This article or section is a stub. You can help by adding to it.

A list of useful command-line parameters related to Counter-Strike 2 dedicated servers.Command-line parameters are additional arguments specified before the program starts and can be set by appending them after the ./cs2/.\cs2.exe executable file.

ParameterExampleDescription
-dedicatedn/aAllows Counter-Strike 2 to launch as a dedicated server.
-ip-ip 1.2.3.4Allows the server IP to be set. Useful if a CS2 server needs to be bound to a specific IP address.
-insecuren/aAllows VAC to be disabled.
-maxplayers-maxplayers 64Set the number of slots for the game server.
-port-port 27015Set the game server game/query port.

Console Variables (cvars)

Stub

This article or section is a stub. You can help by adding to it.

A list of useful cvars related to Counter-Strike 2 dedicated servers.

cvars can be loaded from a config file, by including them with command-line parameters using + e.g +map de_dust2 or from the console.

Console Variable (cvar)ExampleDescription
hostnamehostname "My CS2 Server"Hostname for server.
mapmap de_dust2map <mapname>:Load a new map.
game_aliasgame_alias deathmatchSet the configuration of game type and mode based on game alias like 'deathmatch'.
sv_lansv_lan 0Server is a lan server ( no heartbeat, no authentication, no non-class C addresses ).
sv_logfilesv_logfile 1Log server information in the log file.

Game Modes & Types

Counter-Strike 2 - Dedicated Servers (24)

This article or section needs to be updated to include current information regarding the subject.
Remember to check for any notes left by the tagger at this article's talk page.

Counter-Strike 2 - Dedicated Servers (25)Note:These are console commands for the working gamemodes, simple change map after applying the values for best result

Counter-Strike 2 - Dedicated Servers (26)Note:More in-depth view is in the works with all game modes.

Competitive:game_alias competitive <- sets both game mode and game type commandsgame_mode 1game_type 0Wingmangame_alias wingman <- sets both game mode and game type commandsgame_mode 2game_type 0Casualgame_alias casual <- sets both game mode and game type commandsgame_mode 0game_type 0Deathmatchgame_alias deathmatch <- sets both game mode and game type commandsgame_mode 2game_type 1Customgame_alias custom <- sets both game mode and game type commandsgame_mode 0game_type 3

Tools and Helpers

Docker

If your server is running Docker, you can simply use:

docker run -d --name=cs2 -p 27015:27015 -p 27020:27020 joedwards32/cs2

The container will automatically update the game on startup, so if there is a game update just restart the container.

The config is located within the container here: /home/steam/cs2-dedicated/cs2/cfg

You can find the associated Docker Hub page

CS2 Multiserver

A launch and update script for Linux and WSL to run multiple game servers on one machine. It was originally made to run CS:GO LAN tournaments as painlessly and efficiently as possible.

It includes:

  • Guided setup and game update (cs2-server setup, cs2-server update)
  • Game files are shared between instances, saving disk space and bandwidth
  • Additional control upon launch via environment variables (MAP="de_inferno" cs2-server @lan01 start)
  • Console access and support for logfiles

More Info and Download: CS2 Multiserver on GitHub. Testing, feedback and contributions are welcome!

Advanced Configuration

Counter-Strike 2 - Dedicated Servers (28)Todo:

Troubleshooting

Counter-Strike 2 - Dedicated Servers (29) Linux

Failed to load module '/home/your_user/.steam/sdk64/steamclient.so'

This is a common issue with a fairly easy fix.

The reason for this error is that SteamCMD doesnt place the file in the folder it should, as the games typically look for it there. So what you need to do is the following. And you might even have to create the ~/.steam/sdk64 directories.

Create a symlink (shortcut) to the file like this:

ln -s /home/your_user/PATHTOYOUR/steamcmd/linux64/steamclient.so /home/your_user/.steam/sdk64/

Replace your_user with the username you are using.

Counter-Strike 2 - Dedicated Servers (30)Note:If you are using multiple steam instances make sure the accounts that run them have also done the steps for above.

Counter-Strike 2 - Dedicated Servers (31) Windows

Failed to initialize Steamworks SDK for gameserver. Failed to load module 'C:\Program Files (x86)\Steam\steamclient64.dll'

In order to lauch the current version steam has to be installed.

Counter-Strike 2 - Dedicated Servers (32)Note:The terminal closes right after getting this error which makes it hard to identify.

Counter-Strike 2

Counter-Strike 2 - Dedicated Servers (38)Note:This template is currently a work in progress. Some links may lead to CS:GO-related page with some CS2 info, and some information may not apply to CS2.

Level Design

Entities· Maps· Map Publishing Tool· Mapper's Reference· Places for a Navigation Mesh· Sky List

Technical

Bot Behavior Trees· Dedicated Servers· Spectator Tools· Scripting· Surface Types· Panorama API· Panorama CSS· Procedural generation· Workshop Tools

Gameplay
General

Bugs· Particles· Soundscapes· Weapons

Game Modes

Arms Race· Co-op Strike· Custom· Deathmatch· Demolition· Retakes· Weapons Expert· Wingman

Counter-Strike 2 - Dedicated Servers (2024)
Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 5393

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.