Game Development Community

Fish Demo Tutorial problem

by Kitwana Akil · in Torque Game Builder · 06/30/2006 (2:45 pm) · 4 replies

I'm having a problem with the Fish Demo Tutorial - Part 8, Config Datablock.

I have typed in the code, saved it, restarted TGB, selected FishDatablock from the datablock config drop down, selected an animated sprite, placed it on the level, saved the project, and played the level. Well after checking and double and triple checking the code and the settings the second fish that I put in the level just sits in the same spot when I play the level. I checked the sceneobject settings, scripting settings, worldlimit settings, and dynamic field settings and everything seems to be right. However the fish won't move. Any help would be greatly appreciated.

I'm using Mac OS X 10.4.7 for my operating system if that matters.

About the author

Recent Threads


#1
06/30/2006 (3:24 pm)
Have you opened up your console and checked for any scripting errors? I think the ' key works for this on Mac as well (someone correct me if I'm wrong).

You also should have a console.log file in the same place as your executable (again, if Mac is different someone please correct me!), you can open that in a text editor to view the log after you've exited TGB.
#2
06/30/2006 (4:36 pm)
Stephen, thanks. I checked the console and found this:

creating path MyFishDemo/managed/persistent.cs
creating path MyFishDemo/Data/levels/MyFishLevel.t2d
Compiling MyFishDemo/managed/persistent.cs...
creating path MyFishDemo/managed/persistent.cs.dso
Loading compiled script MyFishDemo/managed/persistent.cs.
Executing MyFishDemo/gameScripts/game.cs.
Error, cannot unlink namespace parent linkage for FishClass for t2dStaticSprite.
Executing MyFishDemo/Data/levels/MyFishLevel.t2d.
Error, cannot unlink namespace parent linkage for FishClass for t2dStaticSprite.
Error: cannot change namespace parent linkage for FishClass from t2dStaticSprite to t2dAnimatedSprite.
Executing MyFishDemo/managed/persistent.cs.
Error, cannot unlink namespace parent linkage for FishClass for t2dStaticSprite.
Loading compiled script MyFishDemo/managed/persistent.cs.
Compiling MyFishDemo/Data/levels/MyFishLevel.t2d...
creating path MyFishDemo/Data/levels/MyFishLevel.t2d.dso
Loading compiled script MyFishDemo/Data/levels/MyFishLevel.t2d.
Error, cannot unlink namespace parent linkage for FishClass for t2dStaticSprite.

Anyone have any idea what this is trying to tell me? Thanks.
#3
07/04/2006 (4:28 pm)
It seems like you are trying to use a t2dAnimatedSpriteDatablock for a t2dStaticSprite. Make sure you're using an Animated Sprite, not a Static Sprite.
#4
07/08/2006 (12:39 am)
Thomas, Thanks. I had a Static sprite selected. After selecting the correct animated sprite everything works fine now. Thanks to both you and Stephen for your help!