Game Development Community

Preference and resolution problem

by Crystal Noir · in Torque Game Builder · 07/23/2008 (8:21 am) · 5 replies

Hi all :)

I am testing TGB with the trial version and I have some questions about prefs files and resolution.

I've searched everywhere but I don't find answer that works for me.

On a projet, I want it to start with a particular resolution. By default, game starts with 800X600 resolution.

I want it to start with 1024 X 768 resolution directly.

In my search, I've found this :

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

I try to code it in the default preference file but it doesn't work :( That's change nothing. In an other search, a topic talk about a prefs.cs file. I don't have this file...only the default preference file.

So my question is : How can I said to the engine to launch the project with the resolution I want directly ?

and in some case, how can I call the options.gui Gui in the games ? (the first question is more important for me).

Thx in advance :)

PS : sorry for my bad english, i am not an english user ;)

#1
07/23/2008 (9:29 am)
I'm not at my workstations, but look for an xml file (I think it's "Configuration.XML") in the project directory adn edit it there and in your scripts.

Should do the trick!

'Patrick
#2
07/23/2008 (9:34 am)
I've already tried this, but when I launch the project, the engine set this file to the default (800 x 600) again...

another idea ?
#3
07/25/2008 (1:51 pm)
It should be in common/commonConfig.xml in the game's build directory.
#4
07/25/2008 (2:07 pm)
What resolution are you running your OS in on your computer?
#5
07/27/2008 (1:42 am)
1680 X 1050 ^^ (I've tried on an other PC which has a resolution of 1280 X 1024 and it's the same thing ^^ )

Look at this topic, it's very strange finally :

http://www.garagegames.com/mg/forums/result.thread.php?qt=77376

This topic show you every tests I've done, some results are strange. I wrote this new topic to ask the question to the TGE users, because when I read the documention, it seems to be similar with TGE (to switch the resolution I mean of course). :)