Game Development Community

Error - The specified mode is not supported by this device

by Steve D · in Torque Game Builder · 08/18/2010 (9:16 pm) · 3 replies

Hello everyone, I did a forum search but didn't find any results this message. If a user of TGB gets this, what does it mean exactly and what is the solution? Is it because the TGB is trying to load up a resolution it can't support? Or does it have to do with using opengl vs directx?

Someone reported to me that my game starts up, they hear the music playing but then they get this message. If they hear the music playing that means the scripts are being executed but it's not displaying properly, any ideas guys? Should I just initially default my game to a lower resolution and let the user change it from there?

#1
08/19/2010 (6:16 am)
Starting low is the safest. Most 2D games try 800x600, or even 1024x768. Only a few netbook models don't support them, with 7" screens at 1024x600 and 800x480 for older models. Try making an 800x600 resolution screen adjusted with borders on the side to fit the first, and 640x480 for the second. I'm pretty sure a user getting resolution trouble is using an older Asus Eee or similar.

Also start windowed, no matter what, always! If the resolution is too high, at least windowed mode lets them see enough to adjust resolution, if you ensure the vital parts fit within the 640x480 upper left section of the screen.

I'm not sure if TGB stores a resolution list anywhere, but it should be easy enough to add. You can then ask for largest and find a best fit. A bit of work, but something you only do once and re-use for all your projects :)
#2
08/19/2010 (2:41 pm)
Thanks Ron, I've re-coded the startup resolution to go to 1024x600 which is the minimum I designed the screens for. I tried to design for 800x600 a while back but there just wasn't enough room.

Going to answer your email now!
#3
08/20/2010 (11:35 pm)
The resolution list is actually accessible by script:

getResolutionList("OpenGL");

or

getResolutionList("D3D");

Will do the trick. I think they're TAB separated?

-Tim