Window size at start

Started by plaet, Tue 04/06/2024 23:36:05

Previous topic - Next topic

plaet

Hello,

can I somehow set the game to start in a certain window size?
Preferably in my resolution.
But the window always starts in the largest possible size and not in my resolution?

Khris

In the editor, press F7 to make sure the game is built, then choose "Run Game Setup" from the "Build" menu.
Check "Start in windowed mode", then pick an appropriate scale factor for "Windowed scale".
Now click "Save and Run".

eri0o

Do you mean the game start when testing in the Editor, when running an AGS game on the computer or for anyone running your game for the first time?

plaet

I mean for anyone running the game for the first time.

It's working with the game setup. There is an option "None (original game size)".
But the editor in default setup has not this option.
And if i compare the acsetup file before and after, there is no difference.
Where it is saved?
And in the default setup in editor its still on stretch. But still working

Khris

The modified acsetup.cfg is in C:\Users\[username]\Saved Games\[gamename]\

plaet

But this means that i can't define a window size for starting the game for First time for new Users?

eri0o

Can you describe the monitor I have?

Khris

When you run a published game for the first time, AGS uses the acsetup.cfg in the game folder afaik.
So yes, you should be able to set a window size.

But like eri0o is hinting at, you should leave that up to the user.

Can you tell us what resolution your game has and what your end goal is here?

Crimson Wizard

Theoretically, you can edit acsetup.cfg in your game's package by hand before distribution, and put any wanted values, even those that are not present in Default Setup. See here: https://adventuregamestudio.github.io/ags-manual/EngineConfigFile.html

The reason why certain options are not in DefaultSetup, as Khris and eri0o noted above, is that normally it's up to the player to select the size of the window. The maximal scaling (whether max proportional stretch or a max integer factor) is considered to be the a good default, and that is what majority of game developers and players expect.

I'm also curious about your use case; what is your game's native res, and why do you want to enforce the starting window size in game res?

plaet

Thank you all for your answers.
Helped me a lot.

The reason was that i wanted to show the User that the graphics Look better in a smaler window.

I agree With you all.
The User has to decide which size he want.
Wanted only Show that it maybe Looks better in a smaler window. Then he can Decide if he goes bigger or Not. :)

SMF spam blocked by CleanTalk