Black screen in level if running outside VC#
by Ales Potocnik · in Torque X 2D · 07/10/2009 (3:27 am) · 3 replies
Hi all,
doen anyone have a suggestion about this wierd problem.
When i run the game from VC# studio it runs nicely, the GUI build, after i push the start level button the HUD builds and i can see my charachters and interact with them.
The same goes if i deploy it to XBOX. ALL NICE AND GREAT SO FAR.
BUT if i run the exe on my PC in my release folder the GUI loads and shows, then i choose the start level/game option and when everything loads i get the HUD (which has a lot of info from health, timer, .... and it all coresponds to the player object) but the level ITSELF is invisible / BLACK SCREEN. I can MOVE tho and i hear the sound on collision and all i just can't see anything? I rebuilt it a houndred times, even put it on different PCs and is the same?
I have not tried to package it as a xna creator club game, but that should not be required?
thanks for your help,
greetings.
doen anyone have a suggestion about this wierd problem.
When i run the game from VC# studio it runs nicely, the GUI build, after i push the start level button the HUD builds and i can see my charachters and interact with them.
The same goes if i deploy it to XBOX. ALL NICE AND GREAT SO FAR.
BUT if i run the exe on my PC in my release folder the GUI loads and shows, then i choose the start level/game option and when everything loads i get the HUD (which has a lot of info from health, timer, .... and it all coresponds to the player object) but the level ITSELF is invisible / BLACK SCREEN. I can MOVE tho and i hear the sound on collision and all i just can't see anything? I rebuilt it a houndred times, even put it on different PCs and is the same?
I have not tried to package it as a xna creator club game, but that should not be required?
thanks for your help,
greetings.
#2
The problem was that i had a PreferredBackBufferHeight set to 800 and PreferredBackBufferWidth to 1280 but my display does not support that resolution --> the strange thing is when i RUN it from VS it works. I just changed it to 1280x720 like on the xbox360 and now it works when i run the .exe from my release folder.
thanks anyway.
07/10/2009 (8:45 am)
Well thanks for you try :), but either i didn't make it clear enough (english is not my mother tongue) or you didn't get it, but i somehow found the problem. The problem was that i had a PreferredBackBufferHeight set to 800 and PreferredBackBufferWidth to 1280 but my display does not support that resolution --> the strange thing is when i RUN it from VS it works. I just changed it to 1280x720 like on the xbox360 and now it works when i run the .exe from my release folder.
thanks anyway.
#3
***EDIT*** Never mind.
07/10/2009 (8:49 am)
I presume when you run via VS, it is the debug version. Just to confirm, if you run the program directly from the exe in the Debug folder, does it work there, too?***EDIT*** Never mind.
Torque Owner David A Young
TorqueX won't fail if it can't find the artwork to load up.
You can also set a debug point and debug on the xbox360 to see what it's doing.