Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rmonic79 on Fri 12/06/2015 17:21:57

Title: [SOLVED] Customize winsetup
Post by: rmonic79 on Fri 12/06/2015 17:21:57
hi guys, another question,is it possible to customize the options of winsetup.exe? We want less options for our game.
thanks.
Title: Re: [HELP] Customize winsetup
Post by: Snarky on Fri 12/06/2015 17:48:04
No, it's not possible. You would have to write your own application to read/write to the cfg file, but I'm guessing that's beyond your technical capability.
Title: Re: [HELP] Customize winsetup
Post by: rmonic79 on Sat 13/06/2015 15:54:26
we have time until the final release. Any suggestion about what we need and know to try to do it?
Title: Re: [HELP] Customize winsetup
Post by: monkey0506 on Sat 13/06/2015 18:44:12
The CFG is a plain-text INI-formatted file. Just simply create a Windows application in C#, Java, etc. and utilize an existing INI library to read/write the keys/values. It's actually very simple to do. You could even create such a thing in AGS using RickJ's INI module, but that would be rather silly and frustrating as the setup "game" would share the config file with the actual game.

A typical CFG file looks something like this:

Code (ini) Select
[sound]
digiid=-1
midiid=-1
digiwin=1096302880
midiwin=-1
digiindx=0
midiindx=0
digiwinindx=0
midiwinindx=0
threaded=1
[misc]
gamecolordepth=32
screenres=1
defaultgfxdriver=D3D9
gfxdriver=D3D9
titletext=Project Setup
windowed=0
antialias=1
refresh=0
gfxfilter=None
game_width=1024
game_height=768
[language]
translation=English
[graphics]
driver=D3D9


Most things are pretty much self-explanatory. You can toy around with the winsetup if you're not sure what something does or if it seems to not be working. You can also reference the source code (https://github.com/adventuregamestudio/ags/blob/16a46177f33e8150f6680adcb1e282cdcc6ff73c/Engine/main/config.cpp) (but, of course, that's written in C++...). At some point, someone should probably create a wiki entry for all of the config options. Shouldn't take long to document.... hmmm... (roll)
Title: Re: [SOLVED] Customize winsetup
Post by: rmonic79 on Thu 18/06/2015 12:21:53
thank you :)
Title: Re: [SOLVED] Customize winsetup
Post by: Monsieur OUXX on Fri 19/06/2015 14:53:54
I just had an idea of a Setup AGS "game" that would open with the exact same graphical parameters as the game itself (necessarily, since they share the same config file). That would feel like these old setup.exe files from MS-DOS times, like the one of the original Command&Conquer, that was in 320x200 (if you've never seen it, search it in youtube, it's deadly!). To make it even cooler, there could be a short intro sequence to the Setup "game" where it starts with a white command prompt on a blackscreen, and a short cutscene shows the command "setup.exe" being awkwardly typed in. :D
Title: Re: [SOLVED] Customize winsetup
Post by: selmiak on Fri 19/06/2015 15:47:50
^^^^ this is great

it also makes me wonder if people in 10 years from now, when there are no more loading times whatsoever will artificially slow down systems to show one of these retro circle loading gif...
(http://preloaders.net/preloaders/25/Snake.gif)
Title: Re: [SOLVED] Customize winsetup
Post by: Monsieur OUXX on Mon 22/06/2015 16:06:39
Quote from: selmiak on Fri 19/06/2015 15:47:50
it also makes me wonder if people in 10 years from now, when there are no more loading times whatsoever will artificially slow down systems to show one of these retro circle loading gif...
(http://preloaders.net/preloaders/25/Snake.gif)

That has already been done when Windows95 replaced DOS. Computers started being so fast that there was an utility called "MosLo" to slow down games and stuff.
(quick google search: this software still exists for Windows 7!!! I have no idea why someone would need something like that on Win 7)