Game Development Community

Changing screen resolution

by Jason Coggins · in Torque Game Builder · 03/11/2006 (8:52 am) · 7 replies

How do I change the screen resolution in of the games I create with TGB (I am specifically wanting 1024 x 768)?

I also noticed that the T2D applications itself does not have minimize and maximize buttons on the window. It would be nice if these were added.

Jason

#1
03/11/2006 (9:35 am)
For a quick change of res, when you run T2D ( GB :) ) go to File-> options

not sure if this is what you were asking for though
#2
03/11/2006 (10:01 am)
What I want is to have the games I am creating automatically play at a resolution of 1024 x 768 on the game player's screen while they are playing the game.

Jason
#3
03/11/2006 (10:24 am)
In the common/preferences folder, add this to your defaultPrefs.cs file:

$pref::Video::resolution = "1024 768 32";

There is also this line already in there:

$pref::Video::windowedRes = "800 600";

which I tried as is once and also changed to "1024 768" but I didn't notice a difference changing it. Also, between changes and in the same folder, I deleted the prefs.cs file that gets created after the game is run once. Not sure if this is the easiest way to force a resolution on someone, but it works.
#4
03/13/2006 (5:53 pm)
Unfortunately, this never worked for me. I not only tried changing defaultPrefs.cs but also prefs.cs and neither worked.

Jason
#5
03/14/2006 (6:34 pm)
I have found a way to change the screne size inside the Torque engine. If you click on the "FILE" menu and then select "OPTIONS" you will see a box with an AUDIO tab. If you click it there is a button that has a listing of different resolutions that you can use to select the resolution. Also clicking the fullscrene box will cause it to be displayed at full screne. Unfortunately a resolution of 1024 x 786 is not one of the resolutions listed.

I do not know if the resolution selected this way will be the resolution of the game when it is built as a finished product.

Jason
#6
03/14/2006 (10:02 pm)
Quote:Unfortunately a resolution of 1024 x 786 is not one of the resolutions listed.
I noticed that too. I wonder why this is? I know my graphics card is capable of much higher resolutions than what is listed in the menu.
#7
03/15/2006 (9:02 am)
Jason,

Not sure why the method I showed above is not working, have you tried it on a fresh install of T2D? As for the options menu, it's a nice way for the end user to customize things like audio/video, but the defaults upon running the game for the first time are defined from defaultPrefs.cs. (which for me is 800 x 600)

Not sure why you don't get 1024 x 768 as an option, I have it. Although I do notice my LCD's native resolution of 1280 x 1024 isn't listed, it only goes up to 1152 x 864. I guess that is what fullscreen is for though?