Josh Posted May 25, 2022 Share Posted May 25, 2022 Can you tell me what script and what function controls the deletion of the enemies when they are killed? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 25, 2022 Share Posted May 25, 2022 Actually, I think the problem is with the bullet decal or particles... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted May 25, 2022 Share Posted May 25, 2022 Okay, this error is being caused by the bullet being inserted into a table called "onewayout" I do not know what is done to objects in this table, but this is the cause of your problems. bul1.lua Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted May 25, 2022 Author Share Posted May 25, 2022 1 hour ago, Josh said: Can you tell me what script and what function controls the deletion of the enemies when they are killed? Script: General. Deletion code starts at line 20 ( garbage collection ). Thanks for having a look though ! Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Alienhead Posted May 25, 2022 Author Share Posted May 25, 2022 1 hour ago, Josh said: Okay, this error is being caused by the bullet being inserted into a table called "onewayout" I do not know what is done to objects in this table, but this is the cause of your problems. bul1.lua 5.04 kB · 1 download Yes. Posted Monday at 12:48 PM ..... Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted May 25, 2022 Share Posted May 25, 2022 Okay, so you are all good then? What was the official cause? Was the entity getting inserted into the table multiple times perhaps? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted May 25, 2022 Author Share Posted May 25, 2022 1 hour ago, Josh said: Okay, so you are all good then? What was the official cause? Was the entity getting inserted into the table multiple times perhaps? Yup good to go, cause was due to parenting and releasing, something got whacky. I did a follow up on it here - https://www.ultraengine.com/community/topic/60996-possible-cause/ Thanks for a having a look. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted May 25, 2022 Share Posted May 25, 2022 Probably the same entity was getting added to that table twice at different times. It gets deleted once, and then you have an invalid pointer that will crash if you try to call Release() with it. Or another entity could be created that uses that same memory address, and you are accidentally deleting that object instead of the one you were expecting. This would explain why the vertex skinning was going wacky, it must have deleted a bone so there was no valid data for that slot. In Ultra it's impossible for issues like this to occur because of the shared pointers it uses for everything. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.