Getting Started
In this guide you will learn how to install CounterStrikeSharp onto your vanilla Counter-Strike 2 server. CounterStrikeSharp
uses Metamod:Source
as its main way of communicating with the game server, so both frameworks will need to be installed.
If you're more of a visual person, here is a Youtube video that covers everything.
Prerequisites
Installing Metamod
- Extract Metamod and copy the
/addons/
directory to/game/csgo/
. - Inside
/game/csgo/
, locategameinfo.gi
. - Create a new line underneath
Game_LowViolence csgo_lv
and addGame csgo/addons/metamod
. - Restart your game server.
Your gameinfo.gi
should look like this. Type meta list
in your server console to see if Metamod is loaded.
Installing CounterStrikeSharp
- Extract CounterStrikeSharp and copy the
/addons/
directory to/game/csgo/
. - Restart your game server.
Running the command meta list
in the console should show 1 plugin loaded 🎉
meta list
Listing 1 plugin:
[01] CounterStrikeSharp (0.1.0) by Roflmuffin
Caution
For Windows servers, you must have Visual Studio Redistributables installed otherwise CounterStrikeSharp will not work.
Upgrading CounterStrikeSharp
To upgrade CounterStrikeSharp you simply need to download the latest release and copy it to your server, the same as the original installation.
CounterStrikeSharp is designed in a way where your configuration files will not be overwritten if you do this. As CounterStrikeSharp is already installed, you may download the non with-runtime
build, but you will need to ensure your .NET runtime is up-to-date yourself.
Troubleshooting
- If this is your first time installing, you MUST download the
with-runtime
version. This includes a copy of the .NET runtime, which is required to run the plugin. - Depending on your OS you might also either need to install
libicu
/icu-libs
/libicu-dev
using your package manager for .NET to run. - If you get
Unknown Command
when typingmeta list
into your console, double-check the folders are copied over correctly and that yourgameinfo.gi
file is correctly modified.
Your folder structure should look like this:
<server_path>/game/csgo/addons > tree -L 2
addons
├── counterstrikesharp
│ ├── api
│ ├── bin
│ ├── dotnet
│ ├── plugins
│ └── gamedata
│
├── metamod
│ ├── bin
│ ├── counterstrikesharp.vdf
│ ├── metaplugins.ini
│ └── README.txt
├── metamod.vdf
└── metamod_x64.vdf