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.

AppGameKit Studio Chat / A question about the External Command commands

Author
Message
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 17th Sep 2024 14:34
I'm trying to implement Apple App Transparency Tracking in my app.

I'm wondering if the External command commands only work in a compiled project?

I have tried it when using the player but it never works.

I don't know whether the code is wrong, or if it is the case that they only work when compiled, not through the player.

Thanks as always

=PRoF=
GemGames
6
Years of Service
User Offline
Joined: 31st May 2018
Location: Edmonton, Alberta, Canada
Posted: 2nd Oct 2024 18:25
I am not familiar with the External command, but possibly are you referring to the AppGameKit Plugins feature?

https://www.appgamekit.com/documentation/guides/14_plugins.htm
https://forum.thegamecreators.com/search?q=plugin&type=threads&boardid=

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Oct 2024 17:50
No. I'm not.



This is the example code to activate Apple App Transparency Tracking provided by Lee on the AppGameKit Repo readme.

The commands don't seem to be documented anywhere, and I am currently unable to compile from the Mac.
GemGames
6
Years of Service
User Offline
Joined: 31st May 2018
Location: Edmonton, Alberta, Canada
Posted: 3rd Oct 2024 18:34
The closest thing I found is the RunApp() command, documented here:

https://www.appgamekit.com/documentation/Reference/Core/RunApp.htm

I can't seem to find any documentation on these either (ExternalSDKSupported(), ExternalCommand() and ExternalCommandInt()).

Just a theory, but is it possible in the example that the 3 External functions are function names that were composed elsewhere either in the example file itself or in another Source File (.agc file), and not part of AGK's built-in commands?

Are there possibly any additional code listing files in the AppGameKit Repo whose code defines or refers to any of those 3 functions? Sometimes authors of example files create their own function names which initially at first glance appear to be built-in native AppGameKit commands, when really they are functions that the author of the example has composed. Ideally the definition of those functions is included in the example code, but sometimes it is omitted leaving the reader to wonder what their definition is or how they work internally.
GemGames
6
Years of Service
User Offline
Joined: 31st May 2018
Location: Edmonton, Alberta, Canada
Posted: 3rd Oct 2024 18:59
Not sure if these would be helpful for your implementation, but there is also GetAppRunning() and TerminateApp() related to RunApp(). These both work on the Mac platform, in addition to Windows and Raspberry Pi platforms.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Oct 2024 19:08
All I know is what Lee put in the readme.

Quote: "How to Implement Tracking Transparency
App tracking transparency was implemented a few years ago using the external command functionality. Here's how to use it:"


And then the code snippet I shared above.

I thought I would try and answer this while I wait for the Mac version of AppGameKit to get sorted, so I am ready to compile with it when I can.
GemGames
6
Years of Service
User Offline
Joined: 31st May 2018
Location: Edmonton, Alberta, Canada
Posted: 3rd Oct 2024 19:10
I just noticed now that the autocomplete feature of AppGameKit Studio does show "ExternalSDKSupported(String sdk)" in its popup menu, along with several additional named ExternalCommand functions. But when I press <F1> for the help system on this function name, as you mentioned there is no documentation available for it. That this function shows in the autocomplete popup seems to indicate that it is actually a native, core AppGameKit function and not a programmer's defined function as I had theorized in my previous post:

GemGames wrote: "Sometimes authors of example files create their own function names which initially at first glance appear to be built-in native AppGameKit commands, when really they are functions that the author of the example has composed."
GemGames
6
Years of Service
User Offline
Joined: 31st May 2018
Location: Edmonton, Alberta, Canada
Posted: 3rd Oct 2024 20:12
https://github.com/TheGameCreators/AGKRepo (just for reference to the readme file)
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 4th Oct 2024 13:25
i don't think it will work in the player unless something changed since THIS.

Login to post a reply

Server time is: 2024-11-21 08:40:33
Your offset time is: 2024-11-21 08:40:33