PlayMaker Help & Tips > Android Help

Android LVL

(1/3) > >>

Damian:
Well time to finish the game. So far i have not bother so much about this, but I guess I need to.
Its no problem for me to sign the app and that kind.
What i did find out that Unity3D dont do any automatic check on the license.
So it would be very good if I could use a FSM for this so I could just set it up and use it on all places I need.

This code should work with android( have not checked it yet)


--- Code: ---function Start(){
   //Put this code where you want your game to check for the crack and do something
   //Like in your main menu
var shameOnYouPicture : GUITexture;   //use a picture with a written message that shames the cracker :P
    shameOnYouPicture.enabled = false;


   if (iPhoneUtils.isApplicationGenuine == false){
     shameOnYouPicture.enabled = true;
     StopEverything();  // a custom method for examples that handles stopping the game;
   }
}
--- End code ---


So how should I do this with playmaker?
Maybe we need an action for this, but I have no clue how to fix it.
But I guess this is one problem for all that develop on android and want to sell the stuff on the market.
So it should be a very good action script for playmaker.
Like checking if its genuine.
If its not then show a "bad" picture and then exit the program.
Can it be done???

giyomu:
Well simple way, will be to just code a playmaker action that check this, and send an event based on waht you get, from there you do what you want.

Should not be hard to code, looking a simple code action already in as reference.

Damian:

--- Quote from: giyomu on August 04, 2011, 08:53:40 AM ---Well simple way, will be to just code a playmaker action that check this, and send an event based on waht you get, from there you do what you want.

Should not be hard to code, looking a simple code action already in as reference.

--- End quote ---

No it should not be hard to do.
It shall check this first: iPhoneUtils.isApplicationGenuineAvailable
Just to see that the app has been added the right way so it has that status.
Then if that is true it should check the other code.

If its genuine you should be able to send it to an event.
Well it can send a event on all values for then you can do what you want.
So i guess its much simpler then i did think first. lol

Damian:
mm almost forgot this.
Only this is left so I can release my game.
I wish I could do it my self for I know its an simple thing to do.
Hope someone can fix it today  ::)

qholmes:
Did you get this working?

You would need to find the Android functions that you need to check. Then it would be easy to write you an action.

Q

Navigation

[0] Message Index

[#] Next page

Go to full version