Game Development Community

Switching to full screen crashes (1.4)

by Craig Courtney · in Torque Game Engine · 10/02/2005 (7:51 pm) · 5 replies

Fresh checkout from CVS and compiled with xcode 2.1 under Tiger (10.4.2) on a first revision 20" iMac G5. When I run starter.fps and select options and then switch to a full screen resolution the engine crashes to desktop once I hit apply. The resolution switches on the display but the game immediately crashes with out display the game screen and the resolution is reset to the desktop.

Here is the relevant snipet from the console.log
Basic mouse capture enabled.
gadnok/client/scripts/optionsDlg.cs (128): Unknown command onAction.
Cleaning up the display device...
Killing the texture manager...
Making sure the rendering context is not current...
Deleting the rendering context...
Destroying the window...
>> Attempting to change display settings to fullscreen 1680x1050x32...
Could not find valid pixel format
Failed to set up AGLFullscreen support.
Creating new Fullscreen window...
Successfully set up AGL support with DSp Fullscreen [1680 x 1050 x 32 : 0Hz]

The weird thing is if I run the demo application it switches to full screen resolutions with out a problem. I'm still getting my feet wet with torquescript so I have not been able to pinpoint what's different between them. Everything else seems to run fine except for the execute through finder bug reported here.

#1
10/03/2005 (5:53 pm)
The crashlog itself would be helpful.
I'm not quite sure what would be causing this, but I've got a few guesses...
Can you post the crashlog?
#2
10/03/2005 (8:08 pm)
It crashed for me also :(

this is everything in the console around where it crashed

starter.fps/client/scripts/optionsDlg.cs (128): Unknown command onAction.
starter.fps/client/scripts/optionsDlg.cs (128): Unknown command onAction.
starter.fps/client/scripts/optionsDlg.cs (128): Unknown command onAction.
Setting screen mode to 800x600x16 (fs)...
Killing the texture manager...
Making the rendering context not current...
Deleting the rendering context...
Releasing the device context...
Destroying the window...
Changing the display settings to 800x600x16...
Creating a new full-screen window...
Acquiring a new device context...
Pixel format set:
16 color bits, 24 depth bits, 8 stencil bits
Creating a new rendering context...
Making the new rendering context current...
#3
10/03/2005 (10:03 pm)
You can find my crash report log here. Hope this helps.
#4
10/15/2005 (11:15 am)
I cannot get it to run in fullscreen on a new Powerbook 15" with the fancy graphics card. It runs in window mode, however.

tone
#5
10/17/2005 (11:49 am)
Ok, this is a known bug in Torque. It's not Mac specific. A fix is on the way.

Ref this thread: www.garagegames.com/mg/forums/result.thread.php?qt=34409