datablocks managed but images missing.
by rennie moffat · in iTorque 2D · 07/15/2010 (5:22 pm) · 5 replies
I have a major issue that has been reoccurring for a few days now.
Previously, regarding images being visible on screen, during game run time, everything was fine. Recently, I shipped out my images to be re saved at lower memory amounts saving myself room. Everything is great, pics came back looking just as good, no degradation and saved 90% memory. Great.
I took the new images folder and replaced it, with the old one. All of a sudden some items were no longer showing up in game play. All the file names are identical as no imagemaps are missing. My datablock are managed. Is there any logical explanation, possibility anyone can think of?
As I side note I even replaced the old images folder back in, and the same problems occur. If anyone has any suggestions on how to trouble shoot this I would love to hear. If it means rebuilding levels from scratch tho I will cry. Just a warning.
Previously, regarding images being visible on screen, during game run time, everything was fine. Recently, I shipped out my images to be re saved at lower memory amounts saving myself room. Everything is great, pics came back looking just as good, no degradation and saved 90% memory. Great.
I took the new images folder and replaced it, with the old one. All of a sudden some items were no longer showing up in game play. All the file names are identical as no imagemaps are missing. My datablock are managed. Is there any logical explanation, possibility anyone can think of?
As I side note I even replaced the old images folder back in, and the same problems occur. If anyone has any suggestions on how to trouble shoot this I would love to hear. If it means rebuilding levels from scratch tho I will cry. Just a warning.
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
Well the images are PNG, and not PVR. At least that's how they were sent back to me.
The objects are showing in the log, as objects, I am not sure how to check for images. Will look through.
07/15/2010 (5:29 pm)
Thanks Scott, Well the images are PNG, and not PVR. At least that's how they were sent back to me.
The objects are showing in the log, as objects, I am not sure how to check for images. Will look through.
#3
t2dAnimationDatablock::onAdd() - ImageMap Datablock is invalid, cannot create animation! (UNKNOWN!)
game/data/levels/datablocks/emptyLevel_datablocks.cs (0): Register object failed for object templeFloatCellsAnimation of class t2dAnimationDatablock.
Executed /Applications/T2D_iPhone_1_3/MyProjects/TempleRacer/projectFiles/game/data/levels/datablocks/emptyLevel_datablocks.cs. Took 48 ms
This templeFloatCellsAnimation is my main character, however, he shows up on many but not on others. I have checked rechecked triple checked level_datablocks.cs. .... Not sure, one thing this does say is that it is looking/on(?) the emptyLevel_datablock.
07/15/2010 (5:36 pm)
Ok, So I look ed through the log and found this....t2dAnimationDatablock::onAdd() - ImageMap Datablock is invalid, cannot create animation! (UNKNOWN!)
game/data/levels/datablocks/emptyLevel_datablocks.cs (0): Register object failed for object templeFloatCellsAnimation of class t2dAnimationDatablock.
Executed /Applications/T2D_iPhone_1_3/MyProjects/TempleRacer/projectFiles/game/data/levels/datablocks/emptyLevel_datablocks.cs. Took 48 ms
This templeFloatCellsAnimation is my main character, however, he shows up on many but not on others. I have checked rechecked triple checked level_datablocks.cs. .... Not sure, one thing this does say is that it is looking/on(?) the emptyLevel_datablock.
#4
What was wrong, I think I had an error (or two) in my levelDatablock that I had not seen through the level builder console, When I looked in the running console tho (is there a difference) I noticed the error, simple syntax.
:::)()(
07/15/2010 (5:44 pm)
Ok, I think I found it, one sprite is still missing but my main guy has shown up on the level he was missing from. What was wrong, I think I had an error (or two) in my levelDatablock that I had not seen through the level builder console, When I looked in the running console tho (is there a difference) I noticed the error, simple syntax.
:::)()(
#5
07/15/2010 (6:25 pm)
the loading logic of the game is different than the editor. the game for example ignores the managed datablocks totally it only uses the level datablocks for example
Torque Owner Scott Wilson-Billing
MeYuMe
Also, I assume you are using PVR now? If so, please make sure that the name of the image in your datablock does NOT include the PNG suffix.