Game Development Community

Losing Images - datablock

by Damian · in Torque Game Builder · 04/16/2006 (8:48 pm) · 4 replies

2 bugs ... I think ...
1. Occassionally I have noticed that the datablock.cs file becomes empty, so I have to keep a backup copy ... obviously it checks for images and recreates itself at startup ???
2. Even though the image is in the datablock.cs on the mainscreen (where you can add, edit images ect) they are missing or there are blank images ... I notice this bug when there are more than say 7 images loaded ... is it a memory problem ?
3. I add an image and it shows in the static sprites, shutdown and restart and they disappear (yes they are in the datablock)
3. lastly, having done the strategy tut, I changed the default image (tilemapimagemap) to one I created ... it does not show this image. says invalid datablock. But I can load the image using seperate code. (but it is one of the images I have problems with regarding no 2&3 ...
Cheers
Damian

#1
04/16/2006 (8:56 pm)
I have seen dissapearing images, when the sprite object's name is the same as the imagemap name. Could that be what you are running into?
#2
04/16/2006 (9:12 pm)
Thanks, that was part of the problem ... also I noticed that the name I entered was changed in the datablock from the one I entered ... i.e save as carrierImage changed to carrierImage0 ... but now I know I can rectify ... thanks for quick response
Damian
#3
04/16/2006 (9:13 pm)
No problem - I just ran into the same bug you did, I guess. :-)
#4
04/16/2006 (9:53 pm)
Damian, something else I have noticed is that if I do Debug menu > Stop Debugging (using Codeweaver editor ), then the game's persistent.cs and datablocks.cs usually don't get written by the Level Builder, which can wreak havoc with the images. So it seems to be best to do File > Quit from within the LeBelVuilder

Alex