[QUOTE=Rory;51377051]I'm making a map for my friends and I to kill time on Sunday nights, while trying to learn more about mapping. What I've done is set up a kitchen, where we can go out and kill something and bring it back. When you bring the prop_ragdoll (dead NPC) back to the kitchen and throw it on the stove, it spawns a cooking pan, and deletes the NPC body. This has caused a crash. If I remove the trigger_remove, it works perfectly fine.
I have also tried removing the filter so the trigger_remove will remove everything, and it still crashes. It only doesn't crash if I disable it, or remove it entirely.
[b]trigger_remove[/b]:
Name: RagdollDeath
Filter: ragdollsonly
[u]FLAGS[/u]
NPC
Physics Objects
[b]filter_activator_class[/b]:
Name: ragdollsonly
Allow: Allow entities that match
Classname: prop_ragdoll
Any ideas, it would be much appreciated. I couldn't solve the problem by testing it or googling it, so I figured I'd take it here.
What I've done so far:
[b]Suspect #1:[/b]
I suspected that the CLIENTS tag was checked, and in fact it was not.
[b]Suspect #2:[/b]
Singleplayer - Loaded the map on Multiplayer, still crashing[/QUOTE]
[b]Solved[/b]
Garry's Mod isn't happy when you trigger_remove entities that you are holding with the Physics Gun. Placing the NPC into a hole and pressing a button to remove it not only solidified what I was trying to accomplish, but stopped the crash.
I confirmed this by trying to do it with a prop_physics_multiplayer instead, and it was able to be deleted while holding the prop with the Physics Gun. Once I picked up a ragdoll, any ragdoll, with the Physics Gun and touched the remover, it crashed.
Solved and I hope this is useful for someone else!
Can you test Dev branch?
[url]http://wiki.garrysmod.com/page/Dev_Branch[/url]
If it also crashes there, care to post a map to replicate the issue?
I honestly have no idea what went wrong.
I just made the test map for you, to replicate the crash, and the test map worked perfectly fine. So, I went back to the problematic map I was making, and reverted all my changes back to where it was crashing. When I compiled and ran it, I was able to drop a ragdoll into the trigger_remove with no crash, in the exact same setup and fashion as it was when I made this original post.
I guess the supermoon that night screwed with my map or something, because it's working fine now.
Do you have .mdmp files from the day you crashed? Assuming it's GMod that crashed.
Indeed I do, there were five of them.
[url]http://puu.sh/skqVx/04ef40d1f2.zip[/url]
Not sure how to open them, so they're yours.
Yeah this crash should be fixed in the Dev branch, but not in the live version of the game. ( No betas )
Sorry, you need to Log In to post a reply to this thread.