When CS2 plugins stop loading after an update, the update has usually replaced gameinfo.gi and removed the Game csgo/addons/metamod line. Add the line back, update Metamod and CounterStrikeSharp to builds that support the new game version, restart, and run meta list to confirm both load.
Why a CS2 update breaks your plugins
Plugins on Counter-Strike 2 sit on a chain: Metamod loads through a single line in gameinfo.gi, CounterStrikeSharp loads through Metamod, and your plugins load through CounterStrikeSharp. An update can break the chain in two places:
- The game replaces
gameinfo.gi. That is a game file, and an update overwrites it. The Metamod line disappears, so Metamod and everything above it stop loading. The Metamod documentation says it directly: you need to redo the change every time a developer pushes a change that modifiesgameinfo.gi. - The game changes internally. Metamod and CounterStrikeSharp rely on details of the game's code. After some updates they need a new build. CounterStrikeSharp's release notes show this pattern, with entries such as "Update for latest CS2 Game Update".
Both are fixable without losing your configs. If you are new to the stack, our guide on installing CounterStrikeSharp and Metamod explains each layer first.
Find out which layer broke
Start the server, open the console and run the checks. They go from the bottom of the chain to the top:
| What you see | What broke | Go to |
|---|---|---|
meta version says unknown command | The Metamod line is gone from gameinfo.gi, or Metamod is too old for the game | Fix 1 and Fix 2 |
meta list works but CounterStrikeSharp is not in it | CounterStrikeSharp needs a new build | Fix 3 |
css_plugins list is empty or shows errors | The plugin or its game data is out of date | Fix 4 |
| The server does not start at all | A bad edit, or a build that crashes the new game version | Safe mode, below |
Fix 1: Put the Metamod line back
- Stop the server and take a backup.
- Open
game/csgo/gameinfo.giin the editor. - Find the
SearchPathsblock and add this line underGame_LowViolence csgo_lv:
SearchPaths
{
Game_LowViolence csgo_lv
Game csgo/addons/metamod
Game csgo
Game core
Edit the file in game/csgo, not the copy in csgo_core. The Metamod documentation says editing the second one does not load Metamod.
Fix 2: Update Metamod
If the line is already there and meta version still fails, the Metamod build is probably too old for the new game version. Download the newest development build for your system from the Metamod:Source development builds page, extract it, and upload its addons folder over the existing one in game/csgo. Restart and check:
meta version
You should see a line that starts with Metamod:Source version 2.
Fix 3: Update CounterStrikeSharp
Download the latest release from the CounterStrikeSharp releases page and copy its addons folder into game/csgo, the same way you did the first time. Your configuration files are not overwritten. After a first install you can use the build without the runtime, unless a new .NET version is required.
Then restart and run:
meta list
CounterStrikeSharp should be in the list, and the start-up log should print CounterStrikeSharp.API Loaded Successfully.
Fix 4: Update the plugins
Some plugins read game data that changes between updates, and they ship updated files for it. MatchZy is an example. It ships addons/counterstrikesharp/gamedata/matchzy.json, which practice-mode rethrows need, and its documentation asks you to keep that file updated. It also needs CounterStrikeSharp v369 or newer. To update a plugin:
- Open its release page and download the newest version.
- Upload the files over the old ones. MatchZy replaces the shipped
.cfgfiles incfg/MatchZyon update, so keep your own changes in the_override.cfgfiles. - Restart, then run
css_plugins listand look for the plugin.
If a plugin still fails, read the start-up console for its name and the error next to it. Check the plugin's issue tracker; after an update, other people have usually reported the same thing. For match tools, see the MatchZy scrim guide.
The three commands to remember
| Command | Where | What it proves |
|---|---|---|
meta version | Server console | Metamod is loaded and which version it is |
meta list | Server console | CounterStrikeSharp is loaded through Metamod |
css_plugins list | Server console | Your plugins are loaded by CounterStrikeSharp |
Run them in this order after every update. The first one that fails tells you which layer to fix, and you never need to reinstall the layers below it.
If the server will not start
Put two slashes in front of the Metamod line in gameinfo.gi to turn it off:
// Game csgo/addons/metamod
The server then starts as plain Counter-Strike 2, without plugins. Your players can keep playing while you fix the stack. Remove the slashes when the new builds are in place.
Stop it from catching you by surprise
- Back up before every update. One click in the panel saves your configs, plugins and
gameinfo.gi. - Update in a quiet hour. Not twenty minutes before a scrim.
- Keep the three lines of the fix in a note. The Metamod line, the download links and the commands to verify. Then it is a two-minute job.
- Follow the projects you rely on on GitHub, so you hear about a new release when it appears.
- Re-check the rest of the server. After an update, confirm that your Workshop maps still load (Workshop guide) and that the server is still listed (GSLT guide).
On TheGameHosting
You get a File Manager with full sFTP, Backups you can restore in one step, and 24/7 support. If your plugins stop after an update and you cannot find why, send us the console output and we will read it with you. See the Counter-Strike 2 hosting page, or compare all plans if you run several plugins. If your server also fell out of the browser after the update, read CS2 server not showing in the browser.
FAQ
Why did my CS2 plugins stop working after an update?
A CS2 update usually replaces gameinfo.gi, which removes the Metamod line. Without it, Metamod, CounterStrikeSharp and every plugin stop loading. Add the line back and update Metamod and CounterStrikeSharp.
How do I add Metamod back to gameinfo.gi?
Open game/csgo/gameinfo.gi, find SearchPaths and add the line Game csgo/addons/metamod under Game_LowViolence csgo_lv. Save, restart the server and run meta version to confirm.
How do I check that Metamod and CounterStrikeSharp loaded?
Type meta version in the server console to see the Metamod version, meta list to see CounterStrikeSharp in the list, and css_plugins list to see your plugins.
Will an update delete my plugin settings?
No. Updating CounterStrikeSharp does not overwrite your configuration files. Some plugins, such as MatchZy, replace their shipped .cfg files on update, so keep your changes in the override files.
Hosting for these games
Counter-Strike 2 hostingCompetitive, Wingman, Workshop maps and plugins
Team Fortress 2 hostingSourceMod and custom maps
Left 4 Dead 2 hostingCampaigns and Versus
Insurgency: Sandstorm hostingMods and mutators
Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.
All posts
TheGameHosting Team