Page 1 of 1

Projectile getting "deleted" to soon

Posted: Thu May 03, 2007 9:52 pm
by nicolasc

Code: Select all

(EE)::coord/p_node.cc:90:Node same as last that was tried to be deleted. FORCE reparent to NULL of 0xa40e5610
(EE)::coord/p_node.cc:90:Node same as last that was tried to be deleted. FORCE reparent to NULL of 0xa40e6478
(EE)::coord/p_node.cc:90:Node same as last that was tried to be deleted. FORCE reparent to NULL of 0xa40e4390
(EE)::coord/p_node.cc:90:Node same as last that was tried to be deleted. FORCE reparent to NULL of 0xa40e6320
I am getting this out whenever a weapon was fired in the VS. I thought that the PNode-deleting problem was solved. I also created a very long lag, between hitting ESC an leaving the level.

Any idea were to look? projectile.{cc,h} and sub-classes seem fine.

cheers
nico

Posted: Thu May 03, 2007 10:59 pm
by beni
Since the bug occurs with every weapon it's natural to assume that the error is inherited. But if projectile looks fine, the error has to be in WorldEntity or PNode. Wouldn't we experience a lot more problems when those two classes would contain this error?
Today you said that every projectile you program is basically a lot of copy paste. Not that I question your abilities, but couldn't there be a major mistake while copy-pasting? Something you spread into all those projectile sub-classes?

It's what I think is the most probable place to look for a error: the sub-classes. I didn't have the time to look through them, so you may be right and projectiles are all free of errors.