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.

Caution!
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.

Comments
Forsete
Forsete

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
Hezus

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
Jason_Voorhees
Jason_Voorhees

reupload :)

Reply Good karma Bad karma+1 vote
Qwertyus
Qwertyus

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
Jason_Voorhees
Jason_Voorhees

im using the latest version of Echoes mod and I'm still getting this error. I tried changing t from 2048 to 3072 , still crashing
3072 to 10000 , still crashing here :https://youtu.be/fBQKi6vGX8U?t=5284

Reply Good karma Bad karma+1 vote
Youtuberfan153
Youtuberfan153

Same Crashing At The Same Point, What A Shame :(

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Jason_Voorhees
Jason_Voorhees

it was 2000 , I changed it to 2048 yet its still crashing and giving me this error , the only thing I was able to play was the long jump tutorial and I finished it successfully.

Reply Good karma Bad karma+1 vote
Hezus Author
Hezus

If this trick doesn't work for you then you are most likely not running a legitimate version of Half-Life. You need to buy it on Steam and make sure you have all the latest updates.

Reply Good karma+1 vote
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.

Tutorial
Tags
Anti, Climax, Half, Life
Browse
Tutorials
Report
Report
Share
Related Games
Half-Life
Half-Life First Person Shooter