garrysmod-issues
garrysmod-issues copied to clipboard
Some entities are removed without calling hooks.
Details
We've been working on some GLua optimizations when we saw that NetworkEntityCreated is called for some entities: Player [NULL] and Weapon [NULL].
EntityRemoved is not called for these. IsValid returns true.
Steps to reproduce
- I don't fucking know. We're still trying to figure this out.
@robotboy655, found the issue - x64 branch with Chromium. Even ents.GetAll() returns invalid entity.
Also, we need any function to check if Entity exists only on CLIENT.
Update: ents.GetAll works fine, but EntityRemoved isn't called for Weapon [NULL] or Player [NULL]
I cannot reproduce anything of the sort.
Here's me joining a dedicated server:
Clientside only entities always have EntIndex of -1. Same for serverside only entities.
I don't know how. But there ARE entities that are called with NetworkEntityCreated multiple times and are NOT called with EntityRemoved
Uh i had sth like this before. I think it was caused by somehow invalidating the entities without removing them. But i cannot for my life remeber what caused it in detail
Does this happen in Singleplayer without any addons loaded? If yes what addon causes it?
Uh i had sth like this before.
I think it was caused by somehow invalidating the entities without removing them.
But i cannot for my life remeber what caused it in detail
Does this happen in Singleplayer without any addons loaded?
If yes what addon causes it?
That's happening in the multiplayer, haven't tested it in singleplayer yet.
gmod_hands is one of these entities which are created but not removed.