Jump to content

Object in view


Alienhead
 Share

Recommended Posts

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

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

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 ! :)

 

 

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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 .....

alot.jpg

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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.

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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.

  • Like 1

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...