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

OnEntityCreated missing entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-14-2016 , 05:32   OnEntityCreated missing entities
Reply With Quote #1

It seems that in sourcemod 1.8 and perhaps some later versions of 1.7, OnEntityCreated does not work properly. When multiple plugins use this callback, it stops firing.

If I have say, 3-4 plugins using it, and print out all of the classnames, while firing a bunch of rockets in TF2, It won't detect the rockets every once in a while... This happens with all entities.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-15-2016 , 09:28   Re: OnEntityCreated missing entities
Reply With Quote #2

not sure if this helps, but I mostly am doing SDKhook spawn in onentitycreated.
I have confirmed that this happens on diffrrent servers, with different configurations.
It happens in 1.8, and at least the more recent 1.7s.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 12-15-2016 , 18:21   Re: OnEntityCreated missing entities
Reply With Quote #3

I saw this also.
__________________
Fearts is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 12-15-2016 , 23:17   Re: OnEntityCreated missing entities
Reply With Quote #4

Could it be that one of the plugins kills the event after it handles it? I'm guessing not, since it only happens once in a while, but it is just a thought...
__________________
ThatOneGuy is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-16-2016 , 02:47   Re: OnEntityCreated missing entities
Reply With Quote #5

No, the entity is not being killed.
Something happens so that onentitycreated skips entities. I think its something broken in SM where it does not pick up the spawn or just does not fire the forward
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 12-16-2016 , 14:48   Re: OnEntityCreated missing entities
Reply With Quote #7

No I'm not using that ext.
__________________
Fearts is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 12-17-2016 , 01:29   Re: OnEntityCreated missing entities
Reply With Quote #8

Quote:
Originally Posted by friagram View Post
No, the entity is not being killed.
Something happens so that onentitycreated skips entities. I think its something broken in SM where it does not pick up the spawn or just does not fire the forward
Sorry, let me rephrase that more clearly. I wasnt asking if the entity was being killed. I was asking if it is possible that one of the plugins is returning Plugin_Stop to the event or the like, or something else that might kill the hook for any plugins after it.
__________________
ThatOneGuy is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-17-2016 , 02:12   Re: OnEntityCreated missing entities
Reply With Quote #9

Quote:
Originally Posted by ThatOneGuy View Post
Sorry, let me rephrase that more clearly. I wasnt asking if the entity was being killed. I was asking if it is possible that one of the plugins is returning Plugin_Stop to the event or the like, or something else that might kill the hook for any plugins after it.
OnEntityCreated doesn't have a return if that's referring to.
Mitchell is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 12-17-2016 , 02:22   Re: OnEntityCreated missing entities
Reply With Quote #10

Quote:
Originally Posted by Mitchell View Post
OnEntityCreated doesn't have a return if that's referring to.
Ok. Just bouncing ideas.
__________________
ThatOneGuy 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 09:27.


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