Game Development Community

Screen Resolution

by Edward Gardner · in Torque Game Engine · 09/02/2001 (5:44 pm) · 4 replies

Ok, how do I force it? OR even change it?

I have poked in clientdefaults, and having issues changing it. Figured it's best to ask before I make a mess...

#1
09/02/2001 (8:36 pm)
Hi,

As you know,
v12\example\base\prefs\clientPrefs.cs

Edit the following:
$pref::Video::resolution = "800 600 32";

This is horz res., vert res., color-depth.

You can also switch to either DX or OpenGL in the file, as well as Windowed/FullScreen.

Other useful video prefs:
$pref::Video::allowD3D = "1";
$pref::Video::allowOpenGL = "1";
$pref::Video::displayDevice = "D3D";
$pref::Video::fullScreen = "1";
$pref::Video::preferOpenGL = "1";

David
#2
09/03/2001 (7:36 am)
Yeah, that doesn't actually seem to have an affect.

That .cs file never gets compiled as DSO, so I was guessing I missed something.

-edit-
ignore me, I found it, was editing the wrong pref.

Now how do I set the gui editor's resolution? Or should i just edit the gui script manually to tweak position :)
#3
09/03/2001 (12:15 pm)
Hi Ed,

Take a peek through the clientPrefs.cs file...

$pref::Editor::screenResolution = "800 600 32";

I haven't tried this one yet though...

You can also change a bunch of the Editor properties in there.

David
#4
09/03/2001 (12:39 pm)
Yeah, I saw that, but that's the mission editor, no?

I guess I will continue to play with the gui file for f10, see if I can get a screen to work, otherwise it's manual editing :)