Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

What you need before you start

You need a Counter-Strike 2 server that already starts without plugins. This guide follows the installation from the guide creating a Counter-Strike 2 server on a Linux VPS: user cs2, game in /opt/cs2/serveur, service cs2. Then download two Linux archives from their official sources:

  • Metamod:Source, 2.x branch, as a development build, from the Metamod:Source site (AlliedModders). At the time of writing, the CounterStrikeSharp documentation requires build 1467 or newer. Linux archives are named mmsource-2.0.0-git followed by the build number, then -linux.tar.gz.
  • CounterStrikeSharp, with-runtime build, from the releases published on its GitHub repository (counterstrikesharp-with-runtime-linux- followed by the version, as a .zip). For a first installation, the documentation requires it: it contains the .NET runtime CounterStrikeSharp needs.

On Linux, .NET also needs the ICU library: install libicu-dev (or your distribution's ICU package). On Windows, Microsoft's Visual Studio Redistributables are required instead.

02

Install Metamod:Source and the gameinfo.gi line

Stop the server, upload the Metamod archive to /opt/cs2 (over SFTP or with scp), then extract it into the csgo folder: it contains an addons folder, which must end up in game/csgo/addons.

sudo systemctl stop cs2
sudo apt install -y libicu-dev unzip
sudo -iu cs2
cd /opt/cs2/serveur/game/csgo
tar -xzf /opt/cs2/mmsource-2.0.0-git*-linux.tar.gz
nano gameinfo.gi

In game/csgo/gameinfo.gi, find the SearchPaths section and its first line, Game_LowViolence csgo_lv. Add right below it, before all existing Game lines:

Game    csgo/addons/metamod
  • Position matters: the Metamod:Source wiki insists that this line must be the first Game entry in the list, otherwise Metamod does not load.
  • The right file: it is csgo/gameinfo.gi, not csgo_core/gameinfo.gi, which does not load Metamod.
  • Keep the layout: align the line with its neighbours, using tabs or spaces.

Save, leave the cs2 session with exit, then start the server and type meta version in its console: the answer should start with Metamod:Source version 2. If the console replies Unknown command, the line is missing or misplaced.

03

Install CounterStrikeSharp

The CounterStrikeSharp archive also contains an addons folder, to extract in the same place, with the server stopped:

sudo systemctl stop cs2
sudo -iu cs2
cd /opt/cs2/serveur/game/csgo
unzip -o /opt/cs2/counterstrikesharp-with-runtime-linux-*.zip
exit
sudo systemctl start cs2

In the server console, meta list should then show Listing 1 plugin: followed by the CounterStrikeSharp line. The game/csgo/addons folder now contains:

addons/
├── counterstrikesharp/
│   ├── api/
│   ├── bin/
│   ├── configs/
│   ├── dotnet/
│   ├── gamedata/
│   └── plugins/
├── metamod/
├── metamod.vdf
└── metamod_x64.vdf

Updating CounterStrikeSharp: download the latest release and copy it over, as for the installation. The documentation states that your configuration files are not overwritten. Once CounterStrikeSharp is installed, you can take the lighter build without the runtime, but keeping the .NET runtime up to date is then up to you: the with-runtime build remains the simplest choice.

04

Add and manage plugins

Each plugin goes into its own folder, under addons/counterstrikesharp/plugins/, and the main .dll file has the folder's name:

addons/counterstrikesharp/plugins/NomDuPlugin/NomDuPlugin.dll

Copy the whole folder supplied by the author, with the files that come with the .dll. By default, CounterStrikeSharp loads the plugins in this folder at startup, and reloads a plugin when its .dll is replaced. A plugin's configuration is usually found in addons/counterstrikesharp/configs/plugins/NomDuPlugin/NomDuPlugin.json.

From the server console, the css_plugins command manages plugins:

css_plugins list
css_plugins load NomDuPlugin
css_plugins unload NomDuPlugin
css_plugins reload NomDuPlugin

list shows each plugin with its number, state, name and version; unload and reload also accept the number shown by list. The css command shows the CounterStrikeSharp version.

  • Admins are declared in addons/counterstrikesharp/configs/admins.json, with their Steam ID and their permissions (@css/generic, @css/kick, @css/ban, @css/root…). A player needs @css/generic to run css_plugins in game. CounterStrikeSharp itself provides no kick or ban commands: plugins add them.
  • A plugin runs with the server's rights: get it from its official repository, read its page, and add plugins one at a time.
  • The GSLT token: according to the documentation, some plugin features get all of the server owner's GSLT tokens banned, because they break Valve's rules for CS2 servers. The FollowCS2ServerGuidelines option, on by default in CounterStrikeSharp's configuration, blocks the known ones. Do not turn it off without a reason: it does not guarantee you will never be banned, but it rules out the known causes.
05

When a CS2 update breaks everything

Valve updates Counter-Strike 2 often, and each update can affect plugins in two ways:

  • The gameinfo.gi line disappears: the update replaces the gameinfo.gi file, and the Game csgo/addons/metamod line with it. Metamod no longer loads, and meta list replies Unknown command. The guide creating a Counter-Strike 2 server gives a small script that puts the line back before each start of the service. To check by hand:
    grep -n "csgo/addons/metamod" /opt/cs2/serveur/game/csgo/gameinfo.gi
    If nothing comes back, put the line back under Game_LowViolence csgo_lv, as above.
  • The game changes deeply: CounterStrikeSharp relies on data that describes the game (the gamedata folder). By default, it checks and updates its gamedata.json file by itself. After a big CS2 update, you sometimes have to wait for a new release of Metamod, CounterStrikeSharp or a plugin.

After each game update, run in order: meta list, then css_plugins list. If a plugin shows as unloaded, its termination reason appears under its name. Then update Metamod, then CounterStrikeSharp, then the plugin, after backing up the game/csgo/addons/counterstrikesharp/configs folder and your plugins' data.

06

On CloudFive

CloudFive has no ready-made Counter-Strike 2 plan: the server, Metamod and CounterStrikeSharp are installed on a VPS, as in this guide. The Ryzen VPS, from €5.99 per month, suits it well:

  • an AMD Ryzen 9 9950X, very fast per core, with DDR5 memory and NVMe storage: the CS2 server computes most of the match on one core; pick a tier with enough disk for the game, which needs 65 GB according to Valve;
  • root access and a dedicated IPv4 address;
  • basic anti-DDoS protection included. A game-specific filter is part of Premium Protection, a paid option (see protecting a game server against DDoS attacks).

Servers are in France, on our own network, billed monthly with no commitment, with support in French 7 days a week. To choose the VPS size, see which VPS for a game server and the gaming VPS page; for several servers (practice, retakes, matches) on the same machine, hosting several game servers.

07

Frequently asked questions

How do I install CounterStrikeSharp on a CS2 server?

First install Metamod:Source 2.x by extracting its addons folder into game/csgo, and add the Game csgo/addons/metamod line under Game_LowViolence csgo_lv in gameinfo.gi. Then extract CounterStrikeSharp's with-runtime build to the same place and restart. The meta list command should show CounterStrikeSharp.

Which line do I add to gameinfo.gi for Metamod?

The Game csgo/addons/metamod line, in the SearchPaths section of game/csgo/gameinfo.gi, right below Game_LowViolence csgo_lv and before all other Game lines. Placed elsewhere, or in csgo_core/gameinfo.gi, it does not load Metamod.

Where do CounterStrikeSharp plugins go?

In addons/counterstrikesharp/plugins, under game/csgo, each plugin in its own folder named after it, with the .dll file of the same name inside. They load at startup; css_plugins list shows the ones running.

Why does meta list reply Unknown command on my CS2 server?

Metamod is not loading, most often because a CS2 update replaced gameinfo.gi and wiped the Game csgo/addons/metamod line. Put it back under Game_LowViolence csgo_lv, or have a script add it before every start, then check that the addons folder is in game/csgo.

Which CounterStrikeSharp build should I download?

For a first installation, the with-runtime build for Linux or Windows, published on the project's GitHub repository: it contains the required .NET runtime. For later updates, the build without the runtime is enough if you keep .NET up to date yourself.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay