Page 1 of 1

Passing arguments to the generated exe files

Posted: Sat Sep 05, 2009 1:43 pm
by goldenxp
Hello all.
I'm glad to have found this amazing tool. Thanks for making it.
I'd just like to know if there's a way of sending data to the game exe before it runs.
What I really want to have at the end of the day is a custom launcher for a game, where you can have your own logo and define resolution and graphic settings before running the game. I know about ShowOptionsDialog but I'm not sure if it can be customized.
I'm not sure if this is possible. Any guidance is appreciated.
Thank you

Posted: Sat Sep 05, 2009 2:12 pm
by Kjell
Hi,

Unfortunately there is no way to customize the launcher from within the editor. However, ZGE is open-source, so in case you're comfortable with Delphi / Pascal, you can adjust the launcher in the source.

While I'm personally not a big fan of having a launcher up front of PC games ( I prefer having a separate configuration tool ), I do agree that there should be some improvements in this area still .. and have mentioned this a couple of times on the forum already ( briefly here and here ).

With the current build I prefer just using the "Use Desktop Resolution" ScreenMode.

K

Posted: Sat Sep 05, 2009 2:17 pm
by VilleK
Hi and welcome!

What Kjell said, but let me just add this:

With a Windows resource editor such as http://www.angusj.com/resourcehacker/ you should be able to edit the option dialog in your final exe-file. Obviously it's a bit of work to do this every time you create a exe-file you want to distribute and I'm not sure if it allows you to add a custom logo, but currently it's the only way I'm afraid unless you are prepared to use the ZGE-source code and make your own customizations.

/Ville

edit: you can edit the dialog in "player.bin", this makes every zge-generated exe have the updated dialog.

Posted: Sat Sep 05, 2009 4:07 pm
by goldenxp
It seems working with ZGE source might be the way to go. Thanks for the help and the welcome too. I hope I can be more involved and make a positive difference to the community.