Passing arguments to the generated exe files

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
goldenxp
Posts: 5
Joined: Fri Aug 28, 2009 12:48 am

Passing arguments to the generated exe files

Post 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
User avatar
Kjell
Posts: 1924
Joined: Sat Feb 23, 2008 11:15 pm

Post 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
User avatar
VilleK
Site Admin
Posts: 2371
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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.
goldenxp
Posts: 5
Joined: Fri Aug 28, 2009 12:48 am

Post 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.
Post Reply