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.

Post comment Comments
Forsete
Forsete - - 619 comments

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 - - 561 comments

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 - - 19 comments

reupload :)

Reply Good karma Bad karma+1 vote
Qwertyus
Qwertyus - - 2,505 comments

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+4 votes
Jason_Voorhees
Jason_Voorhees - - 19 comments

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+2 votes
Youtuberfan153
Youtuberfan153 - - 1 comments

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

Reply Good karma Bad karma+2 votes
Lucho_Due
Lucho_Due - - 5 comments

me pasa lo mismoo pudiste encontrar solucion?

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,447 comments

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

Jason_Voorhees
Jason_Voorhees - - 19 comments

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 - - 561 comments

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
lukkasz323
lukkasz323 - - 166 comments

You know that's ********, right?

Reply Good karma Bad karma0 votes
Hezus Author
Hezus - - 561 comments

No, it's definitely not ********. Half-Life has been updated regulary ever since Steam was introduced (even last in 2019). The update that made this edicts fix posssible was added in 2004. If you play an illegally downloaded version of HL, you'll most likely do not have the required update but the old WON version (1.1.1.0) that predates the fix.

Reply Good karma+2 votes
georgewolfbite
georgewolfbite - - 43 comments

Wish this worked for source games. Any time i tried it on one of those it wouldnt work.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,447 comments

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

Guest
Guest - - 689,447 comments

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

Guest
Guest - - 689,447 comments

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

Guest
Guest - - 689,447 comments

I have this problem with Black Mesa and I can categorically state that I paid for this game through Steam. It's full of bugs and keeps crashing. I am very disappointed. When it works, it's great.

Reply Good karma Bad karma-1 votes
Hezus Author
Hezus - - 561 comments

This tutorial is about Half-Life (Goldsrc engine). Black Mesa runs on the Source engine (Half-Life 2). You can't use this for Black Mesa.

Reply Good karma+2 votes
Guest
Guest - - 689,447 comments

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

Etalikor5462
Etalikor5462 - - 6 comments

To launch this mod, you must have a newer version Half-Life. I tried launch this mod on the version from the year 2005 and this mod reported this error message ED_alloc: No free edicts. Then I tried launch this mod on the version from the year 2020 and the mod worked. So if you have this error message, you must have a newer version Half-Life, it is all, have a nice day.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: