Hi There.
Here's a question mainly for TGC, but am open to comments and idea from anyone
I am trying to see if there may be a simpler method of doing this as opposed to the lengthy and (in my opinion) not that easy to follow instructions provided with the product.
In the AppGameKit Docs about "Publishing With AppUp" there are the following lines
*You will find a line commented out using the custom function 'pfnApproveApp'
*Comment this line in and comment out the one below it to prepare the application for Debug mode
*You can leave the string 'agkplayerrequiresprotecting', but you can change for better protection
*If you change it, the returned 'iPasswordValue' will also change, so account for this in the IF
which is fine when creating the Debug AppUp version; but later on when it explains how to get the App GUID and to use that:
*Return to Visual Studio and insert the GUID to replace the one that is already there
*Once done, compile the project again and again copy the resulting exe to your final agk app folder
*When you run your app this time, you will notice the 'software debugger' report Not Authorised
*This error is normal and means you are not launching from within the AppUp store itself
*You have now finished protecting your final agk app and are almost ready to create an MSI installer
does this mean:
(1) that the iPasswordValue will be the same?
(2) it will be different, but it doesn't matter?
(3) it will be different, but will not actually be able to be returned to us to know what it is?
I assume it has to be (1) because it seems that unless it is the same, then it will always be not approved...
Anyway, that's my introductory question, which leads me to the main question - and that is:
Because it seems that this is just creating a new "Interpreter" that has the AppUp validation included, and it seems it continues to use the same bytecode ".byc" file in the media folder, can't we get a pre-compiled version of this "Interpreter" that picks up the GUID, password string, and iPasswordValue values from constants defined in the bytecode?
All we need then would be a simple tool that would return the iPasswordValue to us that we'd need to use when given the GUID and password string.
Is this not possible? I must be missing something, as it seems very possible to me...
BTW, I'm asking all this because (a) I don't have Visual Studio on my PC and don't want to install it, and (b) the current method just seems overly complicated and hard to follow (although after my 6th full read-through, I believe I get what to do if I had to do so).
EDIT: Just to help move things along...
I've attached the small utility I mentioned above to retrieve the iPasswordValue using the AppUp debugger and a user entered password.
You will also need the "appupplugin.dll" file from the AppGameKit to be in the same folder as this utility; You can find it in the apps\interpreter_appup folder.