Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Fri 25/03/2011 21:21:28

Title: Determining the native resolution of an AGS game from it's executable.
Post by: Calin Leafshade on Fri 25/03/2011 21:21:28
I'm trying to find a way to establish the native res of a game from its exe.

I assume this must be stored somewhere in the exe but I suck when it comes to hex editors and stuff like that.
Anyone with some expertise want to give it a go?
Title: Re: Determining the native resolution of an AGS game from it's executable.
Post by: monkey0506 on Fri 25/03/2011 21:28:10
What do you need this information for? I'm guessing that you're hoping to find some way of reading this information programatically? Coz winsetup.exe can tell you the native resolution of a game if that's really all you need..
Title: Re: Determining the native resolution of an AGS game from it's executable.
Post by: Calin Leafshade on Fri 25/03/2011 21:32:11
Specifically I need it for nexus.

I need to establish (programatically) the native resoluion in order to interpret the scaling mode. 2X scaling means something different to a 1024x768 game than a 320x200 game.
Title: Re: Determining the native resolution of an AGS game from it's executable.
Post by: TomatoesInTheHead on Fri 25/03/2011 21:44:29
Isn't this the "defaultres" setting in acsetup.cfg, with 0 being 320x200, 1 being 320x240, and so on?
Title: Re: Determining the native resolution of an AGS game from it's executable.
Post by: Calin Leafshade on Fri 25/03/2011 21:48:48
no i dont believe so.

And besides I need to get the information from the executable because i cant guarantee that acsetup.dat will exist.