Game Development Community

Error with namespace linking

by Oliver Rendelmann - DerR · in Torque Game Builder · 07/09/2006 (10:17 am) · 4 replies

Hiya,

I get some weird errors with setting up classes for my entities. I have the super class "Entity" and the classes "Obstacle", "Player" and so on. I get the following errors when running my game:

Quote:
Error, cannot unlink namespace parent linkage for Entity for t2dAnimatedSprite.
Error: cannot change namespace parent linkage for Entity from t2dAnimatedSprite to t2dStaticSprite.

For each obstacle I have in my level. The obstacles are static sprites alright, most other entities are animated sprites. Is that a problem? And if so, how do I fix it? Do I have to make obstacles as animated sprites even though they are just static(boulders, trees and so on)?

#1
07/09/2006 (5:41 pm)
I've been getting around that problem by using config datablocks and setting the class and/or superclass there.
#2
07/09/2006 (5:44 pm)
I'm doing the same. :/

Right now I deleted all FULL image blocks that need to be entities and recreated them to be a 1x1 CELLed image of which I created a still animation that I use for my entities. Not nice but I hope this will work...
#3
07/09/2006 (6:23 pm)
Somewhere the wires are getting crossed. It appears you're trying to assign a class associated with a static sprite to an animated sprite. Or perhaps the other way around, those messages can be cryptic without any context ;)
#4
07/10/2006 (11:28 pm)
Usually that's when the engine complains about a class being assigned to two different types of objects, like Ben has said.