CS 1.6 Server Errors and How to Fix Them

Common Counter-Strike 1.6 server errors explained: start-up errors, crashes like PF_precache_model_I and SZ_GetSpace, AMX Mod X plugin errors and player errors.

7 min read Last checked 1h ago 3 views
In this guide 7 sections
  1. 1Where to find the error
  2. 2The server doesn't start
  3. 3The server crashes
  4. 4AMX Mod X errors
  5. 5Errors players get
  6. 6Before you ask for help
  7. 7FAQ

Most CS 1.6 server problems print an exact message before they happen. This guide lists the common ones, grouped by when they show up (at start-up, as a crash, from AMX Mod X, or when players join), with what each means and how to fix it. Use Ctrl + F to find your error.

Where to find the error#

Before you fix anything, read the full message. It's in one of these places:

WhereWhat's there
The server consoleEverything, live. Scroll up to the last lines before the crash
cstrike/logs/Server logs (only with log on in server.cfg)
cstrike/addons/amxmodx/logs/AMX Mod X logs: L…log for everything, error_….log for plugin errors

Useful commands in the server console:

bash
meta list      // Metamod plugins and their status
amxx plugins   // AMX Mod X plugins and their status
amxx modules   // AMX Mod X modules
version        // engine version (shows ReHLDS if installed)
On Linux, the crash closes the console

hlds_run restarts the server after a crash, so the message flies by. Start it inside screen (see part 1) and scroll back, or add -condebug to the start line to save the console in cstrike/qconsole.log.

The server doesn't start#

"dlopen failed trying to load … steamclient.so" (Linux)#

The engine can't find Steam's library. Link it from SteamCMD and start again:

bash
mkdir -p ~/.steam/sdk32
ln -s ~/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so

"error while loading shared libraries" (Linux)#

The 32-bit libraries HLDS needs aren't installed. On Ubuntu or Debian:

bash
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32gcc-s1 lib32stdc++6

"Couldn't allocate dedicated server IP port 27015"#

Another program already uses that port, usually a server you started earlier that's still running. Stop it, or start this server with another port: +port 27016.

The cstrike folder is empty or files are missing#

SteamCMD didn't download everything; this is a known bug with HLDS. Run the download command with validate again until nothing more downloads. Then install ReHLDS again, because validate can put back the original engine file.

The server closes right after you install ReHLDS#

Two usual causes. The server isn't the steam_legacy branch (ReHLDS only works with the pre-25th-anniversary HLDS): download it again with -beta steam_legacy. Or the CPU has no SSE3, which happens on very old or badly set-up virtual machines.

"meta" is an unknown command#

Metamod isn't loading. In cstrike/liblist.gam, the gamedll (Windows) or gamedll_linux (Linux) line must point to the Metamod file, and the file must be there. Restart after the change. Full steps: install AMX Mod X.

The server crashes#

Crashes in CS 1.6 almost always come with a FATAL ERROR or Host_Error line. The words after it tell you the cause.

Host_Error: PF_precache_model_I … over the 512 limit#

The full message looks like this:

text
Host_Error: PF_precache_model_I: Model 'models/xyz.mdl' failed to precache because the item count is over the 512 limit.

The engine can load at most 512 models (and sprites) per map. Every plugin that adds models (player skins, weapon skins, hats, zombie classes) uses some of that space, and big maps use a lot by themselves.

Fix: remove plugins or skins you don't need, or use a map with fewer models. The model named in the error usually isn't the problem: it's just the one that came after the limit was reached.

ED_Alloc: no free edicts#

There are too many entities (players, weapons on the ground, effects, map objects) at once. It happens on very big maps and on mods that create many objects.

Fixes, in this order:

  1. Make dropped weapons disappear sooner: with ReGameDLL, lower mp_item_staytime in game.cfg (for example 30).
  2. Remove plugins that create many effects or objects.
  3. Raise the limit with -num_edicts 2048 on the start line.

SZ_GetSpace: overflow … on Server Reliable Datagram#

text
FATAL ERROR (shutting down): SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram

A plugin sent more data to players at once than the engine can handle, or sent it to a player who had already left. It's a plugin bug, not a server setting.

Fix: look at which plugins you added or changed most recently and turn them off one by one (put ; in front of them in plugins.ini) until the crash stops. Then send the error to the plugin's author, or look for a newer version.

Hunk_Alloc: bad size#

The server ran out of memory while loading something big, often a mod with huge config files (zombie classes, many models). It can also happen when there are extra or wrong files in cstrike/dlls. Keep only the game library (mp.dll / cs.so) there, and trim the mod's configs.

Segmentation fault (core dumped) (Linux)#

A general crash. The line itself doesn't tell you the cause, so look at what the console printed just before it:

  • It crashed right after a plugin or map loaded: that plugin or map is the cause.
  • It crashes when someone joins or dies: a plugin that runs at that moment is usually the cause.

Remove recently added plugins one at a time until it stops. ReHLDS and ReGameDLL fix many old crashes, so install them if you haven't (part 1, part 4).

AMX Mod X errors#

First, type amxx plugins in the console. Every plugin has a status: running is good; bad load, failed or debug mean a problem. The reason is in addons/amxmodx/logs/.

"Plugin uses an unknown function (name "…") - check your modules.ini."#

text
[AMXX] Plugin "amx_super.amxx" failed to load: Plugin uses an unknown function (name "get_speak") - check your modules.ini.

The plugin needs a module that isn't on. Open addons/amxmodx/configs/modules.ini and remove the ; in front of the module it needs (the plugin's description says which; in the .sma you see it in the #include lines, for example #include <fakemeta>). Restart the server: modules only load at start-up.

"Module/Library … required for plugin. Check modules.ini."#

Same cause, but the message names the module directly. Turn it on in modules.ini, or install it if it's not in addons/amxmodx/modules/. For reapi, see ReGameDLL and ReAPI.

"Plugin file open error (plugin "….amxx")"#

The file named in plugins.ini isn't in addons/amxmodx/plugins/. Check the exact name, including upper and lower case on Linux, and that you uploaded the .amxx (not the .sma).

"Run time error … debug not enabled!"#

The plugin hit an error while running. To see where, add debug after its name in plugins.ini:

addons/amxmodx/configs/plugins.iniini
my_plugin.amxx debug

Change the map. The next error in the log shows the exact function and line. Send that to the plugin's author.

"Couldn't load library" or bad load for a plugin that should work#

The .amxx file may be damaged: FTP programs in ASCII/text mode break binary files. Upload it again in binary mode. Also check that the plugin was compiled for your AMX Mod X version; if you have the .sma, compile it again for your version:

AMXX compilerCompile .sma to .amxx online, for AMX Mod X 1.8.2 to 1.10.Open

meta list shows "badf"#

The path in addons/metamod/plugins.ini points to a file that doesn't exist. Check every letter of the path, and that the file is the one for your system (.dll on Windows, _i386.so on Linux).

Errors players get#

"Server is enforcing file consistency for …"#

The player has a changed file (a custom model or sprite) that the server checks. The player fixes it by removing that file. As the server owner, you can stop the check in server.cfg:

cstrike/server.cfgcfg
mp_consistency 0

Leaving it on is fairer: it stops players from using models that make enemies easier to see.

"LAN servers are restricted to local clients (class C)"#

The server runs in LAN mode. Set sv_lan 0 in server.cfg and add +sv_lan 0 to the start line.

Non-Steam players can't join#

By default only Steam clients can connect. To let non-Steam players in, install Reunion: see part 1.

Missing textures, black sky, or slow downloads#

Players didn't get all of a map's files, or they download slowly without FastDL. See maps and FastDL.

Before you ask for help#

If none of this fixes it, post on the forum with:

  1. The exact error, copied from the console or the log (not retyped).
  2. Your system (Windows or Linux) and what you run: version, meta list, amxx plugins.
  3. What you changed just before it started.

With those three, someone can usually tell you the cause in one reply.

FAQ#

Where are CS 1.6 server logs?#

Server logs are in cstrike/logs/ (turn them on with log on). AMX Mod X logs are in cstrike/addons/amxmodx/logs/; plugin errors go to the error_….log files there.

How do I find which plugin crashes my server?#

Turn plugins off in groups: put ; in front of half of the custom ones in plugins.ini, restart, and see if it still crashes. Keep halving until one plugin is left.

Does ReHLDS fix crashes?#

It fixes many engine bugs and exploits that crashed the original HLDS, so it's worth installing. It doesn't fix bugs inside plugins.

Was this guide helpful?
Thanks for the feedback!
Stuck on a step?Ask other server admins on the forum. Say which guide and which step.
Ask on the forum