Unlink Namespace Madness
by rennie moffat · in iTorque 2D · 10/03/2010 (5:52 pm) · 4 replies
Hi there,
I have a question. I am getting the Unlinked Namespace error message. I have dealt with this before. In my previous case it was because I had given the same class name to a static and animated sprite. I have gone thru the level.t2d and there is no cross polynization of sprite, class names. Specifically, the error it is calling on "temple" which is an animated sprite. And again, after going thru the level.t2d, there is only one "temple", an animated sprite.
So essentially, from what I can tell, the problem is that I can play level9, the "bad level". Anytime I look to exit the level, (mainMenu, nextLevel, quit) I get BAD ACCESS EXC with these errors that repeat twice.
////in console this line is repeated twice.
Namespace::unlinkClass - cannot unlink namespace parent linkage for temple for t2dStaticSprite.
Namespace::unlinkClass - cannot unlink namespace parent linkage for temple for t2dStaticSprite.
Again, "temple" is an animated sprite, no other item named "temple" exists with in this level, or in the linking levels.
I am not exteremely hopeful for ideas to trouble shoot this but if you have any suggestions please let me know.
Thanks.
I have a question. I am getting the Unlinked Namespace error message. I have dealt with this before. In my previous case it was because I had given the same class name to a static and animated sprite. I have gone thru the level.t2d and there is no cross polynization of sprite, class names. Specifically, the error it is calling on "temple" which is an animated sprite. And again, after going thru the level.t2d, there is only one "temple", an animated sprite.
So essentially, from what I can tell, the problem is that I can play level9, the "bad level". Anytime I look to exit the level, (mainMenu, nextLevel, quit) I get BAD ACCESS EXC with these errors that repeat twice.
////in console this line is repeated twice.
Namespace::unlinkClass - cannot unlink namespace parent linkage for temple for t2dStaticSprite.
Namespace::unlinkClass - cannot unlink namespace parent linkage for temple for t2dStaticSprite.
Again, "temple" is an animated sprite, no other item named "temple" exists with in this level, or in the linking levels.
I am not exteremely hopeful for ideas to trouble shoot this but if you have any suggestions please let me know.
Thanks.
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#2
10/04/2010 (7:34 pm)
did you delete a datablock by error?
#3
:S
10/04/2010 (8:00 pm)
I am not sure. Perhaps. I am going through the level now. I have isolated a group of objects that may be causing it. The only thing of note, is that these objects, lets call them tankFort share 4 objects amongst them, however only 1 of the main tankFort objects can be "active" at anyone time. Meaning if tankFort A is active, B, C, and D are not active. So I can't see why the sharing of the objects would be a problem, especially since it did work earlier and other objects, in other levels, share objects in the same way.:S
Torque Owner rennie moffat
Renman3000
When I load a certain level, I get the EXC_BAD_ACCESS error and in XCode, an arrow points to the line
in the function below in the resManager.cc file
void ResManager::unlock (ResourceObject * obj) { if (!obj) return; AssertFatal (obj->lockCount > 0, "ResourceManager::unlock: lock count is zero."); //set the timeout to the max requested if (--obj->lockCount == 0) obj->linkAfter (&timeoutList); }