The wretched invisible bug happens to my server about 1-2 times daily (always when lots of people are on, sadly).
I've found many references to it, but nothing that has helped me.. unless I missed something:
[url]https://facepunch.com/showthread.php?t=1350845[/url]
[url]https://github.com/Facepunch/garrysmod-issues/issues/1968[/url]
Is anyone able to tell me the exact cause of this so I can try and reduce the amount of times it happens on my server?
Also if you create an emitter for an entity like so:
[lua]
function SWEP:Initialize()
self.emitter = ParticleEmitter(self:GetPos())
end
[/lua]
Will this emitter automatically be removed when the entity is removed, or will it sit around somewhere in memory? If so, should I remove emitters attached to an entity when that entity is removed?
You should remove the emitter when the entity is. Use [url]https://wiki.garrysmod.com/page/Entity/DeleteOnRemove[/url]
[QUOTE=code_gs;50921161]You should remove the emitter when the entity is. Use [url]https://wiki.garrysmod.com/page/Entity/DeleteOnRemove[/url][/QUOTE]
Thanks, I will definitely do this for all entities that create emitters like this. Hopefully that helps reduce the problem.
[B]Edit:[/B] Can't remove emitters like that :/
Has anyone else been able to fix this?
It's a pretty bad issue on my server.
Have you tried reinstalling Garry's Mod?
[QUOTE=Dan41550;50980639]Have you tried reinstalling Garry's Mod?[/QUOTE]
Stop suggesting that. This is a common engine error that reinstalling won't help.
[QUOTE=code_gs;50980789]Stop suggesting that. This is a common engine error that reinstalling won't help.[/QUOTE]
Just report him for spam, he is replying to every thread in this section with that reply.
Sorry, you need to Log In to post a reply to this thread.