Game Development Community

Where does available images get stored?

by Backman · in Torque Game Builder · 06/07/2008 (11:39 am) · 4 replies

Having a bit of a problem upgrading an old project of mine (don't really need to no), it keeps complaining about images not being available, or in TGB terms - 't2dImageMapDatablock Datablock is invalid!'

If I add an image (4*4 cells), where does TGB actually store that information of that image being there? I seem to have to add that image to my level (actually put it in the scenegraph somewhere) to get TGB to see it, but even at that it only seems to work half the time.

A little bit confused here..

[edit] Btw, I never had that problem before upgrading. :/

#1
06/08/2008 (5:29 pm)
In the managed folder in game the game folder, under datablocks.cs is where TGB adds new images to your game. Usaully you would not mess with this. Make sure TGB is closed before you edit out any images, because I think it will put them back when you run the game level or close TGB.

You may have to look in your levels folder .t2d for any levels that reference the missing image. This is probably where you problem is. What I have found is in the editor there will be an object with no image in my level. To find it turn on your bounding boxes in the scene dubug menu. ( I would try this frst)

Hope this helps...
Steve
#2
07/02/2008 (9:56 am)
Sorry for late reply, thanks a lot, got it working now!
#3
07/02/2008 (4:50 pm)
I've found that I have to edit managed/datablocks.cs quite a bit, as Torque (at least the Mac version) has many bugs where deleting imageMaps doesn't update datablocks.cs, and half the time changing certain settings, like the frame rate of an animation, also doesn't get saved. I've never had any problems editing it be hand.
#4
07/02/2008 (10:22 pm)
Hey Vern, do you have these issues consistently with the latest versions of TGB?