Game Development Community

TroubleShooting help please

by Ronald J Nelson · in Torque Game Engine Advanced · 04/20/2008 (11:00 pm) · 2 replies

I am using TGEA 1.03, wouldn't matter though the early attempt I did with 1.7 had the same issue. In my game I am using the menuMission resource. Most everything works fine with one little nuisance.

For some reason right at the beginning of the loading screen I get a pink flash. No errors display in the log and Debug doesn't catch it either. Which means of course where ever my problem is there is not an assertion or error message to work with.

Well I need to know if there is some way I can add one to call out whenever the pink screen pops up?

Of course it is possible, but where the heck would I even put it?

There has to be a point in the code where the engine is told to show the pink screen. If I could just add some sort of message at that point I could echo the crud out of my script until I found the problem.

Thanks in advance.

#1
04/21/2008 (7:22 pm)
I believe the pink screen happens whenever a pushDialog or setContent call is made to an invalid GUI. That sort of thing is usually in the console log, but it's not normally marked as an "error." If you're using Torsion (I highly recommend it, BTW) I would a breakpoint at a point where I know things are okay, then follow the code statement by statement and look for something unusual.
#2
04/21/2008 (7:54 pm)
Thanks Mark, I found the error. Something that wasn't a real issue in TGE is definitely one in TGEA. The menu mission script actually called to set the canvas to the menu mission, then to the loading gui and then back.

Since the menu mission was not fully set up when it was first loaded there was the pink screen.

Works great now and thanks again.