Baffling issues with building an exe
by Stephen Triche · in Torque Game Builder · 07/06/2006 (2:07 pm) · 5 replies
I have my game setup to run at a resolution of 1024x768.
Everything I specified in both the editor and in script (as far as I knew o_O, apparently not) was for this resolution.
When I run a level through the editor, the game runs at the proper resolution.
When I comment out the four lines in main.exe to circumvent the editor, the game runs at the proper resolution.
However, when I "build project" and create an exe version of the game, it runs at a higher resolution than I want.
Upon reading the console log I see the following
Setting Screen Mode to 1280x1024x32
No where did I ever specificy anything like 1280x1024, everything was 1024x768
What are some possible reasons for this? I'm having trouble pinpointing the culprit.
Everything I specified in both the editor and in script (as far as I knew o_O, apparently not) was for this resolution.
When I run a level through the editor, the game runs at the proper resolution.
When I comment out the four lines in main.exe to circumvent the editor, the game runs at the proper resolution.
However, when I "build project" and create an exe version of the game, it runs at a higher resolution than I want.
Upon reading the console log I see the following
Setting Screen Mode to 1280x1024x32
No where did I ever specificy anything like 1280x1024, everything was 1024x768
What are some possible reasons for this? I'm having trouble pinpointing the culprit.
#2
07/07/2006 (1:41 am)
Your screen resolution is a preference. When you do a "build project" your preferences are cleared. The first time the built project is run, it does some kind of resolution to determine the biggest acceptable "windowed" resolution supported by your desktop. If you want to force a particular resolution you're going to have to actually force it. Otherwise a clean build will always revert to calculating the largest acceptable windowed resolution. The reason it's different on every computer is due to every computer having a different desktop resolution.
#3
How do I force it? Every file, guil object, 2dSceneWindow etc...everything in code was specified as running at 1024x768.
Also, the point of the packager is to make distributable versions, isn't it? Why will it only work on the computer it was made on? Is there something I did/didn't do?
07/07/2006 (8:50 am)
I see.How do I force it? Every file, guil object, 2dSceneWindow etc...everything in code was specified as running at 1024x768.
Also, the point of the packager is to make distributable versions, isn't it? Why will it only work on the computer it was made on? Is there something I did/didn't do?
#4
07/07/2006 (9:19 am)
Once you run it once, there will be a prefs.cs created in managed (I believe this is where it is). You can change it in there before you build your install application or zip it up (whatever your choice of distribution is).
#5
I think better documentation is definitely needed in the area of the packager and how the system of files it leaves behinds works (which i'll now go reiterate in suggestions :p).
07/07/2006 (9:53 am)
Ah okay, thank you so much.I think better documentation is definitely needed in the area of the packager and how the system of files it leaves behinds works (which i'll now go reiterate in suggestions :p).
Torque Owner Stephen Triche
Default Studio Name
It seems to run at different resolutions or window sizes on every computer.
I get error messages if I try to build an OSX version.
"An Error was encountered that the packager cannot recover from. Build aborted."
The game also will only fully work on the computer that the game was made in. While the splash screens and title seem to work all right on other computers, anything involved after startgame() is fairly broken.
=(