Scenes opening blank, not fully opening.
by Daniel Pezzotta · in Torque Game Builder · 06/30/2009 (11:14 am) · 3 replies
Hi all -
I'm experiencing a problem using TGB that I can't seem to see what causes it. For some strange reason, every now and then when I go to open a level (.t2d), the editor goes black and the scene (.t2d) never opens.
I could open a brand-new scene I created just fine, but then when I go to open the original one, it does not open. No error messages at all. Just a blank black screen.
Has anyone ever seen this? We can't figure out what is corrupting the scene if anything at all. ?
Thank you!
I'm experiencing a problem using TGB that I can't seem to see what causes it. For some strange reason, every now and then when I go to open a level (.t2d), the editor goes black and the scene (.t2d) never opens.
I could open a brand-new scene I created just fine, but then when I go to open the original one, it does not open. No error messages at all. Just a blank black screen.
Has anyone ever seen this? We can't figure out what is corrupting the scene if anything at all. ?
Thank you!
About the author
#2
05/09/2010 (7:22 am)
Daniel, this is probably caused by a problem in your script code. I usually have a few iterations on a new project where I get a blank screen for this reason. For example the script isn't making things happen in the order or way you think it will. Unless you have an actual error in the script you will not see anything in the log file. Look through the script code and trace the execution from start to the point where the scene is displayed. Not much but hopefully it helps.
#3
Believe it or not, the problem was SPACES in Names!!!! Under the SCRIPTING pane, our students were naming their objects with spaces at times. This would mess up the game project on startup.
You may think it's too late to fix it after it crashes, but it's not. Here is a little helper list I made for my staff:
PROBLEM:
--- For some unknown reason, a student tries to open his/her Torque level and nothing appears – the level won’t open!
REASON:
--- Already tested on several “corrupt” games: they named an object in their game with SPACES!!!! The program cannot parse this when it opens.
RESOLUTION:
--- 1) Open up their project folder and navigate to the level file that won’t open in TGB.
--- 2) Right-click the level file and select OPEN.
--- 3) Select “Choose Application from a List.”
--- 4) TURN OFF the check mark that says “Always use this application.”
--- 5) Navigate down the list to NOTEPAD and open with Notepad.
--- 6) Once file is open, scroll through all of the objects listed until you find the object they added and named with a space in its name. Shorten the name to make it ONE word only.
--- 7) Save and close this Notepad document.
--- 8) Continue as usual to open the Level in TGB. Voila! This should do it!
05/09/2010 (10:24 am)
It's so funny to finally get some action on this thread. Sorry I never posted again after we figured it out. Believe it or not, the problem was SPACES in Names!!!! Under the SCRIPTING pane, our students were naming their objects with spaces at times. This would mess up the game project on startup.
You may think it's too late to fix it after it crashes, but it's not. Here is a little helper list I made for my staff:
PROBLEM:
--- For some unknown reason, a student tries to open his/her Torque level and nothing appears – the level won’t open!
REASON:
--- Already tested on several “corrupt” games: they named an object in their game with SPACES!!!! The program cannot parse this when it opens.
RESOLUTION:
--- 1) Open up their project folder and navigate to the level file that won’t open in TGB.
--- 2) Right-click the level file and select OPEN.
--- 3) Select “Choose Application from a List.”
--- 4) TURN OFF the check mark that says “Always use this application.”
--- 5) Navigate down the list to NOTEPAD and open with Notepad.
--- 6) Once file is open, scroll through all of the objects listed until you find the object they added and named with a space in its name. Shorten the name to make it ONE word only.
--- 7) Save and close this Notepad document.
--- 8) Continue as usual to open the Level in TGB. Voila! This should do it!
Torque Owner Robert Carroll