iAP not loading in ad hoc.... how to properly load it?

3xL3xL Member Posts: 676
edited May 2012 in Working with GS (Mac)
i have a NON consumable iAP. in itunesconnect i called it "unlockfullgame".


so i have a boolean attribute "game.unlockfullgame"

ok fine. right? both names are spelled correctly. ok...

i created a test user and everything works well. it does save too. HOWEVER when i exit the up and CLOSE it from the MULTITASK bar (double tapping the home button) and then Reopen the game, my iAP doesn't load.

this is crazy cause i have a behavior on the first scene that goes..

-Load attribute-
key: unlockfullgame attribute: game.unlockfullgame

as u know, nonconsumables save automatically.. but why isn't it loading after i'm doing this correctly?

Answers

  • 3xL3xL Member Posts: 676
    i reinstalled everything on my device and still no avail. any ideas?
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Ok let me try to understand,
    You are using iAP for unlocking the full game right?
    So if you are using unlockfullgame as the global attribute to trigger the full game mode, you might need to save that attribute after the iAP process(eg. save attribute game.unlockfullgame to "unlock status"). So everytime you load the game use load attribute key "unlock status" to unlockfullgame

    From my understanding the global attribute that you declared for the iAP process to trigger(which is unlockfullgame) will most likely not retained the previous trigger.
    Hope i got this right :P
    Cos on my own game i'm also using that method to unlock full version.
  • 3xL3xL Member Posts: 676
    Hmm.. I think I know what u mean.

    Have another attribute that actually unlocks the game IF the IAP is "true"?

    But doesn't the game.unlockfullgame attribute do that? I figured I just load that attribute in the beginning and it should be fine.

    Can you elaborate a tiny bit my good man? :)
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    From what i have found with my own implementation, the attribute that is used for the iAP process will trigger after the process but will also reset after you restart the game. So i have a additional save attribute of the iAP status that is meant to load during the start of every game.
  • 3xL3xL Member Posts: 676
    hmm.. yea i get what you mean. and its not working within the viewer. let me try through ad hoc.
    heres what i did.

    on the success screen (after purchasing the iAP i have this.
    save attribute
    attribute: game.unlockfullgame key: unlockstatus

    and in the first scene, i have,

    load attribute
    key: unlockstatus attribute: game.unlockfullgame
  • 3xL3xL Member Posts: 676
    ok i fixed it.

    the issue was that i had to load my iAP on my VERY FIRST scene. where my logo is at. i was actually loading the attribute from the second scene (title menu). lol
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    glad it all works
  • 3xL3xL Member Posts: 676
    Thanks for the help :)
Sign In or Register to comment.