Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [Tier 1] Get command line parameters

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Mar 2017 21:59
Is there anyway to get parameters that may be passed to a Tier 1 AppGameKit App?
Xaby
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 29th May 2017 08:32
This could be a "solution" for testing and running on your own PC.

Writing a Batch-File. Putting your files or what you want, to the Batch, and the Batch writes the parameters (in this example only the first %1) in a file. And when starting your AppGameKit executable, you could open that file and read the parameter.

Batch:


I know, this could cause demage, if not used carefully.
Xaby
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 29th May 2017 17:58
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 3rd Jun 2017 23:52 Edited at: 3rd Jun 2017 23:53
for cross platform, make a chain loader that feeds the next by placing args in a control file.
The initial loader could be made in xyz dev tool, so you don't need to ship another "huge" player just to chain.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Jun 2017 00:58
Good idea!

Login to post a reply

Server time is: 2024-04-19 09:33:26
Your offset time is: 2024-04-19 09:33:26