Raised This Month: $51 Target: $400
 12% 

ED_Alloc: no free edicts. Can you help me please ? *-*


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 12-30-2010 , 15:45   ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #1

Hello, I made a plugin to create boxes. But it crashes when I put a lot of boxes. Why does it happen? Help me please *-*.
The error is:
ED_Alloc: no free edicts.
What does it mean?
How do I fix it?
Bimbo1 is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 12-30-2010 , 15:57   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #2

Source Engine has a 2048 Limit on entities created. You went spawned the 2049th one and CRASH.
__________________
"I give sopport and knolage in making extractions"
"MASTER(D) - dun0: are you mocing me?" -Master the grate

Plugins
Godmode Until Attack | No Block Team Filter
Extensions
Rcon Hooks
Samantha is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 12-30-2010 , 16:11   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #3

Is there any way to change it?
Bimbo1 is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 12-30-2010 , 16:22   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #4

You could try using CreateEdict() before you use CreateEntityByName to reduce the amount of crashes though make sure you aren't spawning too many. The limit is hard coded at 2048 you can't make it bigger.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 12-30-2010 , 16:27   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #5

And if I want to spawn a lot of entities? I want to spawn much more than 2048.
Bimbo1 is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 12-30-2010 , 16:38   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #6

Not possible.
__________________
"I give sopport and knolage in making extractions"
"MASTER(D) - dun0: are you mocing me?" -Master the grate

Plugins
Godmode Until Attack | No Block Team Filter
Extensions
Rcon Hooks
Samantha is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 12-30-2010 , 16:38   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #7

You can't. Period. You can spawn as you walk through the map but it's single player solution.
__________________
FaTony is offline
Chief149
Member
Join Date: Sep 2010
Old 01-03-2015 , 23:18   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #8

I am having a similar issue, but this is the result of Source Engine attempting to make a '2049th' entity when there are less than 2048 entities in total. 500 less to be exact.

Think of every entity being in an array, indexed from 0 to 2047. When an entity gets destroyed or killed or deleted, the index in the array where it was once located is set to NULL or 'blank'. What the server is doing is attempting to access index 2048 (entity 2049) which results in a crash. However, it ignores the fact that there are over 500 other indexes that could hold a new entity.

Basically Source Engine is made up of the most shitty code ever created.

Last edited by Chief149; 01-03-2015 at 23:18.
Chief149 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-04-2015 , 03:41   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #9

You are gravedigging a post from 2010
Also, when entities are destroyed, they are flagged to be reallocated and are... The lowest most index will be used that is tagged free (generally).
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 01-04-2015 at 03:43.
friagram is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-04-2015 , 21:23   Re: ED_Alloc: no free edicts. Can you help me please ? *-*
Reply With Quote #10

Quote:
Originally Posted by Chief149 View Post
Basically Source Engine is made up of the most shitty code ever created.
Have you looked at the code? It was designed to be as fast and as efficent as possible, im sure Source2 will solve alot of the issues everyone has with the engine alot with introducing many, many more bugs.
Mitchell is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode