Half-Life: Anti-Climax is my take on the "battle you have no chance of winning" the G-Man offers you once you decline his job offer at the end of the Half-Life campaign. Is there truely no chance to win or can you lead Gordon to victory and freedom?

Post tutorial Report RSS Fixing ED_alloc: No free edicts

How to easily fix 'ED_alloc: No free edicts' for your MOD.

Posted by on - Intermediate Client Side Coding

If your map is large and contains a lot of entities, chances are you'll run into the 'ED_alloc: no free edicts' error. This error means that there are no more free slots to load entities into. By default there are (only) 900 free slots but there are ways to increase this limit.

Method 1:
You can add a launch parameter to your game:

-num_edicts 1500

This will increase the limit to 1500 slots and most likely solve your problem. However, this creates a problem with the shipping of your MOD, since you'll have to instruct everyone to manually add this line. Luckely, there is a better way to do this:

Method 2:
In your MODs root directory there is a file called 'liblist.gam'. Open it with Notepad and add the following line:

edicts "1500"

This file is shipped by default with your MOD, so it will prevent possible problems with players who do not know how to use launch parameters.

Some sources claim you can add infinite amount of slots with these command lines, but I'd advice not to use more than your map really needs. You should probably not set it higher than 2048, since that is the limit of the entity index. Creating more than 2048 entities will most likely crash the game.


Damnit, I wish I knew about this trick before I released my own MOD. Had to delete tons of entities.

Might be useful in the future though, thanks. :)

Reply Good karma Bad karma+3 votes
Hezus Author

That's too bad, indeed. Afaik this feature has been around since 2004 but never was common knowledge amongst modders.

Reply Good karma+2 votes

Sometimes mapper rashly uses scripting tricks, which lead to limitless increasing of entities on a map after saving/loading a game. So the quantity of entities may get increased over 2048 after some save/loads and cause a crash anyway. It was a problem in earlier versions of Echoes mod. Also, in Xash3D you can set edicts limit up to 4096.

P. S. Increasing the edicts limit is supported only by Steam HL, not by WON.

Reply Good karma Bad karma+3 votes
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Send Message
Release date
Mod watch
Anti, Climax, Half, Life
Related Games
Half-Life First Person Shooter