my dear screen resolution
by ev · in General Game Discussion · 05/20/2003 (4:10 pm) · 11 replies
hey,
i just picked up the engine last week. i think its great man. before re, i was building my game and writing it from the ground up using directx...making everything object oriented and hiding all the nasty directx code. i had aspirations of what my mini game engine would be when it was finished, then i picked up this reaction engine, and it was just that! with just a few lines of code, i can do anything, load models, create cameras, create lights, man its awesome!
im also writing a library for some network support that will make it super easy to take your game online...
anyways, enough of my stories, this post is about the screen resolution. after dabbling in much more complex issues trying to modify this engine to have capabilities of other things that i would like(particle effects, network code, etc..), i have blown many brain cells in my head on a much more UN-complex issue. how do i change the bloody screen resolution in fullscreen mode?!?!? if you take it fullscreen, it goes into 640x480 screen res. ive looked for every instance of where it says '640' or '480' in the engine files, changed them to '800' or '600' but it does nothing! ive built and rebuilt and cleaned and rebuilt the entire sdk many times, but to no avail, the 640x480 screen res still haunts me! where is that damn thing?!
i asked in the reaction chatroom and heard only 640 was supported, then i downloaded the chain reaction demo and noticed, it too was 640 with no option to change. 'no!' i said, 'it cant be true! it just cant!'
i really hope this is not the case cuz, with all due respect, if you got an engine that can do all these nice things, but cant even change sreen resolutions, thats not very righteous!
-very worried
i just picked up the engine last week. i think its great man. before re, i was building my game and writing it from the ground up using directx...making everything object oriented and hiding all the nasty directx code. i had aspirations of what my mini game engine would be when it was finished, then i picked up this reaction engine, and it was just that! with just a few lines of code, i can do anything, load models, create cameras, create lights, man its awesome!
im also writing a library for some network support that will make it super easy to take your game online...
anyways, enough of my stories, this post is about the screen resolution. after dabbling in much more complex issues trying to modify this engine to have capabilities of other things that i would like(particle effects, network code, etc..), i have blown many brain cells in my head on a much more UN-complex issue. how do i change the bloody screen resolution in fullscreen mode?!?!? if you take it fullscreen, it goes into 640x480 screen res. ive looked for every instance of where it says '640' or '480' in the engine files, changed them to '800' or '600' but it does nothing! ive built and rebuilt and cleaned and rebuilt the entire sdk many times, but to no avail, the 640x480 screen res still haunts me! where is that damn thing?!
i asked in the reaction chatroom and heard only 640 was supported, then i downloaded the chain reaction demo and noticed, it too was 640 with no option to change. 'no!' i said, 'it cant be true! it just cant!'
i really hope this is not the case cuz, with all due respect, if you got an engine that can do all these nice things, but cant even change sreen resolutions, thats not very righteous!
-very worried
About the author
#2
well i knew about the ini file. but these values only work for windowed mode. you can start the application at 800x600 in windowed mode, but as soon as you fullscreen that bad boy, it goes back to 640x480 screen resolution.
i read your reply and im still kinda in the dark becuase when you alt+enter into fullscreen mode the ini values are subdued by a 'greater power' and its back to 640. what is this greater power and how can i kick its ass?!
how can i go into fullscreen mode, and have a resolution other than 640x480?
thanks chris.
05/20/2003 (6:42 pm)
hmmm,well i knew about the ini file. but these values only work for windowed mode. you can start the application at 800x600 in windowed mode, but as soon as you fullscreen that bad boy, it goes back to 640x480 screen resolution.
i read your reply and im still kinda in the dark becuase when you alt+enter into fullscreen mode the ini values are subdued by a 'greater power' and its back to 640. what is this greater power and how can i kick its ass?!
how can i go into fullscreen mode, and have a resolution other than 640x480?
thanks chris.
#3
I'm on it right now. It will be fixed in the next release. Send me an email and I'll send you the fix when it's done.
chrismcole@yahoo.com
05/20/2003 (7:21 pm)
Doggonit you're right! Look at that, a bug!I'm on it right now. It will be fixed in the next release. Send me an email and I'll send you the fix when it's done.
chrismcole@yahoo.com
#4
Grab the newest version and test out the full screen toggle, it should now work properly.
WARNING: DO NOT UNINSTALL VERSION 1.0.0.0!
05/21/2003 (5:46 pm)
The newest patch (version 1.1.0.0) fixes the toggle resolution bug - or at least it did with my limited tests... (I've been freaking out about the uninstall bug and didn't test the resolution bug thoroughly.)Grab the newest version and test out the full screen toggle, it should now work properly.
WARNING: DO NOT UNINSTALL VERSION 1.0.0.0!
#5
thanks chris for the awesome support.
05/21/2003 (8:31 pm)
the screen resolution problem was fixed in the 1.100 release. thanks chris for the awesome support.
#6
Doh!
05/21/2003 (8:38 pm)
Let's just hope I didn't lose all my support with that brain dead uninstall bug.Doh!
#7
05/21/2003 (9:43 pm)
I blame it on a poorly designed Registry :)
#8
i downloaded and installed today on november 22. can anyone let me know if its just me?
11/22/2003 (5:44 pm)
Is it just me or did this break again in v1200??i downloaded and installed today on november 22. can anyone let me know if its just me?
#9
I (sort of) fixed this by replacing line 288 in OS_Device::CreateWindow
Which is SetWindowCoordinates (wd.x, wd.y, wd.w, wd.h);
with RestoreWindowCoordinates(); which restores the window coordinates/size from the ini file instead of overwriting them with the defaults.
10/22/2004 (12:54 pm)
In the latest version you can download from the GG site, the INI file will be overwritten with the defaults in the engine.I (sort of) fixed this by replacing line 288 in OS_Device::CreateWindow
Which is SetWindowCoordinates (wd.x, wd.y, wd.w, wd.h);
with RestoreWindowCoordinates(); which restores the window coordinates/size from the ini file instead of overwriting them with the defaults.
#10
I vaguely remember there being a problem where under certain circumstances a zero width or height would be written to the ini file, causing RE to crash in an annoying to track down way next time it ran. Not sure if that was just some rubbish code on my part or if it's what you mentioned. Seems worth looking into at least.
T.
10/22/2004 (4:15 pm)
Matt,I vaguely remember there being a problem where under certain circumstances a zero width or height would be written to the ini file, causing RE to crash in an annoying to track down way next time it ran. Not sure if that was just some rubbish code on my part or if it's what you mentioned. Seems worth looking into at least.
T.
#11
I just got mine few weeks ago. hehe.
10/23/2004 (11:23 pm)
Nice to know that there are people still working with Reaction Engine ;-)I just got mine few weeks ago. hehe.
Torque Owner Chris Cole
First off, you'll want to check out the first few examples, especially Example 3 - G3D Graphics. In this you'll be able to size the window to whatever size you wish. This example uses the UpdateDevice method to recache all the textures and surfaces.
If however you want to start the window initially larger than 640x480, then you will need to go into the ini file associated with the application and modify the HRES and VRES label under the DISPLAY group.
BTW Noticed that if you use either of the Device_OS->SetW or Device_OS->SetH methods they will be overridden by the ini values. I have just changed this. So in the next version of the engine, to be released in a day or so, explicitly setting the width or height will overwrite the ini values. (Which is probably more intuitive)
Sorry if there was some mystery about all this.
Chris