GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Consumable IAP - NOT being consumed

AJaymzAJaymz Posts: 164Member, PRO
edited December 2014 in Miscellaneous

I have a consumable IAP (a Bomb). Works perfect in IOS, but on Android, the IAP is NOT being consumed, therefore when player clicks to buy a Bomb (after buying the 1st time), it automatically gives it to them. I have everything as it is in IOS, but some reason it's not consuming. I do have everything up to date, and am using the "managed" and not "unmanaged" during publishing the IAP. I read that it should be "managed" and in PurchaseTable it's clicked that it is a "consumable". Can I manually change the Table Cell Value of collumn 5 in the PurchaseTable to "unpurchased"? instead of using the consume iap attribute???

Comments

  • gingagaminggingagaming FREELANCE GS DEV Posts: 1,581Member, PRO

    Can you post a screen shot of your rules so we can take a look for you.

  • AJaymzAJaymz Posts: 164Member, PRO
    edited December 2014

    @gingagaming

    I have quotes ( " " ) around "purchased". does that matter? I think it didn't work when I left them out and I put them in and it worked on IOS.

    It's checking collumn 5 in PurchaseTable.

  • AJaymzAJaymz Posts: 164Member, PRO
    edited December 2014

    The purchase IS going through so I know the " " around "purchase" works. Because it's changing the Game.IAP attribute I have. Just not consuming the item. It's treating it like an Un-consumable.

  • gingagaminggingagaming FREELANCE GS DEV Posts: 1,581Member, PRO

    Ok, so Im not 100% sure it would break a rule but you should be quoting values in numbers like 0.03 rather than .03, so change them, all of them in these rules, secondly, remove the "purchase" and then open up the expression editor (e) and click remove expression, followed by the red X. Then type in purchased without any marks. This should then work.

  • gingagaminggingagaming FREELANCE GS DEV Posts: 1,581Member, PRO

    @AJaymz said:
    The purchase IS going through so I know the " " around "purchase" works.

    The purchase isnt made with the "purchase" part. the purchase goes though when you click the actor and run the rule BUY ITEM.

    The rules then look in table cell value, purchase table, row 1, column 5 for the word PURCHASE but you are searching for "PURCHASE" which will never be found.

    It should work in iOS either, but if it does, your luck. Either way, the "" are the issue. (from what I can see...)

  • AJaymzAJaymz Posts: 164Member, PRO

    @gingagaming‌ Thanks, I'll give it a shot. And yes I guess I'm lucky with IOS because all of this is how it is published and I've sold quite a bit of Bombs, and I've bought a couple for testing myself. Works great there.

  • AJaymzAJaymz Posts: 164Member, PRO

    @gingagaming Nope, it did not work. I did everything you mentioned. It works on Adhoc on my Iphone. But not for Android. It keeps giving free Bombs. In Google Play Store, it should be "managed" and not "unmanaged" correct? I'm out of ideas.

  • AJaymzAJaymz Posts: 164Member, PRO

    Other things I've tried just for the heck of it:

    • Created new Product ID and IAP for the Bomb.
    • Tried Unmanaged instead of Managed.
    • Wrapped some things in rules where the IAP Buy Item attribute would fire before checking collumn 5 of PurchaseTable (got stuck in a buying loop on that one somehow)
    • Tried kicking my laptop (just kidding....not quite that aggravated yet...it takes a bit)

    No matter what I try... It's treating it like an Unconsumable instead of a Consumable.

  • colandercolander Posts: 1,610Member

    Submit a support ticket and see what GS has to say, it may be a bug. I am having problems with Android too see bug #566.

  • gingagaminggingagaming FREELANCE GS DEV Posts: 1,581Member, PRO

    Try this:

    on BOTH the buy item behaviour and the consume item, delete the product ID and the open the expression editor (e) then use the drop down to enter a Table cell value.
    Put in the following: purchase table row (enter your row number),(enter your column number)

    (see image)

  • AJaymzAJaymz Posts: 164Member, PRO

    @gingagaming I'll give that a try. May be a day or two before I can start experimenting again.

    @colander, yes I've had that problem too back in November. I had to create an Adhoc with the Consume Item attribute and the Request Purchase Data at the beginning of my game for the Item that was still pending. I am able to re-use that item now for my test account. It was stuck in purchase mode when I backed out of game after purchase (pretty much what Android is doing with everything no matter what).

  • AJaymzAJaymz Posts: 164Member, PRO

    @gingagaming Well, I did your idea of putting in the Table Cell Value from the expression editor in the Buy Item and the Consume Item. It worked on Adhoc for Iphone, but it didnt work for Android. when I click Buy Button, it just makes my button press noise and does nothing. All 4 of my consumables same exact thing. Wonder if it IS a problem with tables in Android. I did send a bug report with my version of Gamesalad and all, and I got back an email saying they couldn't duplicate results. Don't know. But thanks for all your great ideas!

  • colandercolander Posts: 1,610Member

    As far as I am aware there is no way or at least no easy way to test an Android ad hoc build. You need to use a "Live App Testing" on Amazon and Alpha or Beta builds on Google Play.

  • AJaymzAJaymz Posts: 164Member, PRO
    edited December 2014

    @colander that is with it live on Google Play. I don't have access to my sisters Android all the time. Everyone around here has IOS devices it seems. So Ive been publishing it and doing updates. then unpublish it if don't work. Probably not the best way to do it, but my sister only Android person I can get a hold of over the phone to test it. I need to invest in cheap android device lol

  • gingagaminggingagaming FREELANCE GS DEV Posts: 1,581Member, PRO

    All i can suggest remotely and especially if you keep unpublishing it. Is make a display box in the store and point it to the purchase table, column 5 for each consumable you have. See whats purchased and what isn't. All should be not purchased, but if you can find the current state, we might be able to solve it. You could also add the following rule to the display box, when touch is pressed consume all the items (one by one) and see what happens when you comsume the items.

  • AJaymzAJaymz Posts: 164Member, PRO

    @gingagaming thanks for all your suggestions. Will definitely try this weekend sometime.

  • AJaymzAJaymz Posts: 164Member, PRO

    @gingagaming I did as suggested about displaying column 5 for the IAP. After purchasing it once, it displays "purchased" (without the quotations). So it looks like it really isn't consuming. It's staying purchased.

  • dchen34dchen34 Posts: 1Member, PRO

    @AJaymz I've been running into the same problems with having the consuming part being recognized (especially since I am placing the Request Purchase Data in individual button calls because I am placing my item purchases on the same screen as high scores). I fixed it by starting over from scratch and making these three key changes:

    1. Used a timer after the expression to confirm text of purchased (after 0.03 secs) for the Buy Item command. I feel like having Request Purchase Data and Buy at the same time may lead to buys before data is called (not sure if that's technically true).
    2. Changed the Consume Item timer to EVERY 0.03 secs, rather than AFTER. This way we continue to try to consume even if Google's purchase screen is in the way or pausing our consume action.
    3. Direct type code whenever possible/Use expression editor as little as possible - I directly type the word purchased without quotes. Also, I'm not sure if you are coding in Change Table Values based on previous Table Values. I had done this before and changed it to referencing a game attribute instead that I constrained to the table values (kind of like a loop, that only runs once).

    Hope that helps, got me through weeks of stress. Cheers!

Sign In or Register to comment.