Fullscreen/Windowed mode problems

Started by The Creator, Fri 20/01/2012 18:15:01

Previous topic - Next topic

The Creator

I'm triying to compile an exe version of the game, but i'm having some weird problems.

The game runs at fullscreen by default, it would be pretty cool if i could set the game to run in a windowed mode, since i'm using a 16:9 monitor, if i use the fullscreen mode, the game gets streched.

I've seen that after compiling it into an exe, you have an additional exe called winsetup, from here you can set the game to windowed mode and it works just fine; but i'd like to force the game to run in windowed mode since the first time (without having the user changing into windowed mode) or at least to run at full screen but without stretching the stage, with a black box around it and centered.

monkey0506

The game will run in windowed mode depending on the CFG file. All winsetup does is update the CFG file. Compiling does not overwrite the CFG file. So as long as your CFG file has it set to windowed mode then your game will run windowed, even "the first time".

The Creator

I'm sorry for the newbie answer, but i have no idea what a CFG file is.

Snarky

It's just the configuration file. The point is that you can run winsetup and set the settings you want before you distribute it, and it'll start out that way for all players.

Khris

In winsetup there's on option to add widescreen borders. This should allow playing at fullscreen without the screen being stretched.

Regarding the cfg file:
If you look in your game's Compiled folder, there's a file in there called "acsetup.cfg". You can open that with a text editor to look at it. It's plain text used to store all of the game's settings.

Btw, I practically never trust the supplied config file. Very often it is set to 320x200 full screen (which would actually work for me, being on XP). Only on very rare occasions is it set to x3 windowed for low-res games, the best way to play them windowed.

The Creator

I've already checked the box for the widescreen borders and it's still running streched =x.

One thing i noticed is that when i saved the winsetup and error window from windows 7 appears telling me that "this program could have been saved with errors" or "this program couldn't save properly" or something like that. After selecting that it should be saved with the default configuration or something like that, the message hasn't appeared again.

I've opened the .cfg and this are it's content:

Quote[sound]
digiid=-1
midiid=-1
digiwin=1096302880
midiwin=-1
digiindx=0
midiindx=0
digiwinindx=0
midiwinindx=0
[misc]
gamecolordepth=32
defaultres=4
screenres=1
letterbox=1
defaultgfxdriver=DX5
gfxdriver=D3D9
titletext=Frangato Setup
windowed=0
refresh=0
gfxfilter=None

If i check or uncheck the box, the windowed property changes from 0 to 1, but it doesn't change anything if a check or uncheck the widescreen borders one =X

Khris

If I uncheck widescreen borders, this line is added to the bottom:
sideborders=0
But yeah, if that option doesn't prevent your screen from appearing stretched, how much good is it :)

I can't test any of this because I still have a 4:3 CRT.

Gilbert

Quote from: monkey_05_06 on Fri 20/01/2012 18:19:15
All winsetup does is update the CFG file.
To be more exact, winsetup.exe does not even update the CFG file. All it does, instead, is to launch the game executable with the option '--setup', which runs the setup interface of the game, in turns updating the CFG file.

Therefore, it is not necessary to include winsetup.exe in your game, provided the CFG file is pre-updated to some "optimal" settings suitable for most players (like people mentioned), and that you give clear instructions on how to change the settings (say for example, use another wrapper launcher).

monkey0506

winsetup.exe calls the anonymously named internal setup file that is embedded into the game engine. So for all intents and purposes winsetup is the program that's doing it. :P

Gilbert

No, as you don't really need winsetup.exe for running that so called configuration programme, it is NOT the one that actually does it.

SMF spam blocked by CleanTalk