Game Development Community

FIX?: The Mystery of the Vanishing Graphics (aka Invalid Project Data)

by Jay Jennings · in Torque Game Builder · 09/18/2009 (4:37 am) · 5 replies

Using TGB 1.7.4 on a Mac w/Snow Leopard -- working through a tutorial and get to a stopping point. Save everything and quit TGB. Fire up the project later to work on it and see this error message:

Invalid Project Data

This project contains 7 invalid datablocks. This is
likely because a referenced image file
was deleted from the project directory. The invalid
datablocks are:

And then there's a list of the missing graphics.

Except none of the graphics have been moved -- they're all still there.

And here's where it gets weird (for me, anyway)...

I looked inside datablocks.cs and changed this line:

imageName = "~/data/images/castle.png";

...to this:

imageName = "~/game/data/images/castle.png";

Basically, just changed the path.

Now the project will load....

...but when I hit the Play button, the game comes up with a black screen -- none of the graphics show.

If I go back and change the datablocks.cs file to the original path, then the game will play.

So, the project will load when the path is:

imageName = "~/game/data/images/castle.png";

...but the game will only run when the path is:

imageName = "~/data/images/castle.png";

I'm too new at this to know where to look for the problem -- any tips would be GREATLY appreciated!

Jay Jennings

About the author

Make my living writing and selling ecommerce tools -- but I'd rather be writing games (of course). My family of four lives in 208 square feet and we may be in YOUR town next week.


#1
09/19/2009 (3:51 pm)
I have the same exact problem. I would post his as a new and name it TGB The great Glitch or somthing to get ppls attention.
#2
09/23/2009 (4:44 am)
This is *very* easy to duplicate - here's a 1 minute and 39 second video that shows the problem:

sonictoolkit.com/playvideo/?m=727

Is there a known fix for this? I'm not sure how to continue learning TGB when I can't reload a project. Oh, and the problem happens when I stop and then restart TGB -- it's not just a problem with the Reload Project menu option.

I *know* there has to be a fix for this because people are using TGB on Macs, aren't they?

Jay Jennings
#3
09/23/2009 (5:25 am)
I have encountered this myself in iTGB/T2Di. It hasn't occurred that frequently for me, but often happens when I'm resizing tiles or sprites I add. No clue what causes it - the Mac version of the builder has several other annoying issues (no drag & drop, can't use paths with spaces or international symbols).
#4
09/24/2009 (4:01 am)
Okay, I did some playing around and found what appears to be a fix for this -- whether I'm just lucky tonight because of the phase of the moon, I don't know.

We built the game initially in this location:

:Applications:TorqueGameBuilder:tgb:MyGame

It worked fine until we closed up shop one day and tried to reopen it later -- that's when we got the Invalid Project Data error message.

Tonight I moved the project folder to this location:

:Applications:TorqueGameBuilder:games:MyGame

Lo and behold, it works fine.

Everything loads, the game runs fine, etc. Looks like we're back in the saddle, yeehaw!

All you GG employees who had stopped working on T2D and T3D can go back to that now. =;)

Jay Jennings
#5
12/19/2011 (5:17 am)
Same problem for me. I develop on PC and use torsion, then push changes throw git to my MAC and see this issue.
What I need to change and rebuid in iTGB_1.5?