Rable's Recent Forum Activity

  • Hi,

    I make a new thread to recenter on my current problem with the store listing. This is the very last step I need to fix before publish my current project.

    Can someone give me an explanation why in this capx the store listing never get a reply (not success, not failed)?

    This is a part of my full project, but this is the first layout played (just as a test)

    And why this project sees the store listing always being successful, even without login in?

    This is a new project that I created, but I exported to the same folder, using the same intel-XDK project, with the same build options (adhoc), tested on the same device with the same way of login to a sandbox account.

    In my normal (non test) code of the same project, the store listing fails (using phonegap IAP instead of C2 IAP)

    For more informations about the problem, see this thread :

    Thanks in advance.

  • I would think so too, but try for yourself :

    Here is the capx : https://www.dropbox.com/s/pq2y1jc2deupg ... .capx?dl=0

    Try preview over wifi (or export via Intel XDK, I tried both)

    Normal behaviors :

    touch left : blue square created

    touch right : red square appears

    touch left (keep), touch right (keep), release left (blue square appears), release right (red square appears)

    touch right (keep), touch left (keep), release right (red square appears), release left (blue square appears)

    Problematic behaviors :

    Touch left (keep), touch right, release right (BLUE square appears), release left (BLUE square appears)

    Touch right (keep), touch left, release left (RED square appears), release right (RED square appears)

    ... ????

    Sounds like a multi-touch bug, or is it the normal behavior? Ashley , any input on this?

    I also tried using touchIDs but I had no better result :

    On any touch start --> Touch.x<half canvas size --> set variable to touch.touchID

    On any touch end --> touch.touchID = variable --> do something

    Something like that. Doesn't work either.

    I'm using v.202

    Is there any way to do that which could work?

  • Hi,

    I have a problem with the Touch plugin, using multi-touch.

    I'm working on a multiplayer single-screen project and I want to detect when a touch is released, if it was on P1 side or on P2 side. For this I use

    On any touch end

    Touch.X<(half canvas size) --> do something

    Touch.X>(half canvas size) --> do something else.

    It works fine except in one situation : If player 1 start a touch (keep it pressed), then player 2 starts a touch and release it before P1 release his touch. In this case, the game reacts as if Player 1 had just released, not player 2.

    It also do it vice-versa, if Player 2 starts a touch (keep it pressed) then player 1 start a touch and release it before player 2 release, the action that should be played when player 2 release is played (should be player 1)

    I've exported my game to Android via crosswalk and it doesn't work better than on preview with wifi on iPad.

    Any idea? Or any other solution I might use?

  • I'm still struggling with the store listing problem.

    From the last tests I've made, in the following capx :

    the store listing is always successful! It doesn't either wait for me to log on with my sandbox account! As long as I am connected, the Store Listing immediately success. Actually it doesn't even wait for me to touch the sprite!

    In my second test, I took the exact same capx, but added a first layout with a sprite object. Touching the sprite objet leads to the above layout.

    On this layout the only difference is that I checked 2 has product conditions then (on the same level, not as a sub-event of the "has product" ) I set text to "success" and go to layout 2

    In this case, the "Request store listing" never has a reply. i.e. it never succes and never fails.

    So that's about it. I'm still unable to find the correct way to check if the store listing is succesful or not. Depending on the way my event are placed it may succeed, fail or never get an response. Even if I put "request store listing" at the start of layout, on the first layout, in some other tests, the store listing never has a response.

    Does anyone knows what are the exact requirements to have the store listing succeed?

    cranberrygame ? Ashley?

  • I made an additional test using C2 IAP plugin instead of Cranberrygame's. The behavior is different.

    When I start the game, I get the following message (translation from french, could be slightly different in english):

    Connect to the iTunes Store.

    If you have an Apple ID, please connect.

    (environment : Sandbox)

    Cancel Purchase

    I touch "cancel" (I'm afraid that "purchase" may disable my sandbox account, I've read a few things about that)

    Then I have another message :

    "index.html

    IAP error (only reported in test mode):

    restore failed with code 4983503

    THEN I got the message that my sandbox account connected to the game.

    I closed the game, reopened it, and everything was exactly the same.

    Then I disconnected from my non-sandbox account in the device's settings an re-run the game

    I've been prompted to enter my sandbox account, which I did, and the game connected correctly to the sandbox environment.

    So I tested if the store listing was successful, and... the store listing request actually never got a response... Neither "on store listing success" or "on store listing failed" triggered.

    So I made a new test to see whether or not "is store available" triggers, and it triggered both for C2 IAP and Phonegap IAP.

    Conclusion :

    C2 IAP :

    Store available

    Store listing never get a response

    Phonegap IAP :

    Store available

    Store listing always fails.

    I'm currently making a blank project with just the store listing actions and conditions to see if a basic test works or not.

    EDIT :

    I copied and pasted my "add product IDs" action in a new project which is as follow :

    Only one layout, with one event sheet :

    at the start of layout :

    add product IDs

    Request store listing

    On store listing success : set text to "success"

    On store listing failed : set test to "failed"

    Then I exported the project as the newest version of Healer Quest in XDK then in App Loader, tested it in sandbox mode...

    And it succeeded!!!!!!

    Incredible! I guess the conclusion is that the only thing problematic is the way my events are dispatched into the code. Even thought it works on Android, it seems like iOS has further restrictions. I'll try to make further changes to my code in order to make it work.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • From the last test I made, "is store available" triggers. What does it implies?

    Does it mean that I can use the "purchase" action without needing to have the store listing to success? (and without running the risk of having my users buy something and not receiving it, like I had on Android before I was using store listing)

    I'll triple check the product IDs tonight, but as the IDs are the same than in the Android version, and it works fine on Android, I don't have much hope...

    Maybe I'll retry the C2 IAP plugin rather than cranberrygame's.

  • aquinn matrixreal

    Ok, I just tried both your solutions. I first created a deactivated group with the following events :

    add product IDs

    wait 2 sec

    Request store listing

    wait 2 sec

    Deactivate the group

    in another part of my code I have

    • On store listing success --> do something
    • on store listing failed --> do something else

    And the store listing always fails...

    Then I created another Capx that redirects the player to a "Shop Listing" layout when he clicks on the shop button

    The layout is empty and the dedicated event sheet is as follows :

    trigger once :

    Add product IDs

    wait 2 sec

    Request store listing

    On store listing success : do something

    on store listing failed : do something else

    The store listing also always fails... (((

    I'm really lost, I'm completely unable to make the store listing to succeed.

    You can confirm that I have to enter the product ID in Construct, and not the Apple ID, right? (i.e. "potions" rather than 89456456484864 or whatever)

    Still need to try this "is store available" thing...

  • I'm also using the Phonegap Game plugin from Cranberry game, exporting using IntelXDK, and it's working fine on Android. The only problem I had was when I tried to export a decimal number to a leaderboard.

    But when I used the following processus :

    • Set (number variable) to (non-decimal number)
    • submit score of (number variable) to leaderboard (whatever)

    it worked perfectly. Just avoid submitting a score that is defined in the submit score action

    for example :

    submit score of (3*whateverVariable-(10/whateverOtherVariable)) to leaderboard

    didn't work for me.

    Put the result of the calculation into one variable and export it.

    I never had problems with achievements.

  • aquinn

    Just checked, my sandbox account is working properly. No doubt.

    matrixreal

    Thanks for the ideas!

    In my case, I request Store listing only when touching the "shop" object rather than at the beginning of the layout, or when touching the object to purchase.

    I'll try to put these events in a disabled group as you suggest. Sounds like it could fix my problem.

  • aquinn Thanks a lot for the reply! This is very, very useful!

    The sandbox tester account is definitely created in iTunes Connect, but I am accessing iTunes with my main Apple account (this (non-sandbox) address appears in the device's settings, when touching "iTunes Store and App Store"). Should I log in to iTunes with my Sandbox account? (I guess I heard this may delete the sandbox account, but I'd like to be sure this first step is done correctly)

    The only thing I can see that is different from what you tell me is that I'm not launching the store listing at the start of layout, but when touching a button. Actually the "store listing success" condition is used to launch the shop layout. That's how I'm doing it on Android.

    I did it this way because accessing the shop without "store listing success" resulted on Android in some people purchasing IAP and not receiving what they paid for... :-/

    I'm already displaying a text when store listing is successful or failed, that's how I know it always fails.

    However, I did not use the "is store available" condition to know if it is available. That's an interesting thing to try, and I'll do this as soon as possible!

    I'll also try to create a new layout + event sheet to get the store listing, just in case it NEEDS to be at the start of layout on iOS.

    Thanks again!

    EDIT : One thing that I didn't tell is that back in January, I had approval from Apple, and released the game (in Belgium only) for a few hours, to check if everything was working. And IAP weren't working (despite Apple's approval!), so I deleted it from the store in order to fix it. This leads me to think that my problem is probably not (only?) a sandbox account problem.

  • aquinn Maybe I was unclear on that point, but I already created a different account based on a new email address, which was not used by any Apple account, as specified on Apple's website, and created a sandbox account based on this email.

    I struggled a bit to create a,d activate it, but I'm confident that it should be a test account that I specified in iTunes Connect. Is there a way to check this?

    I'll still try to create a new sandbox account based on a new email adress and see how it goes.

    Did you manage to have store listing success in january? Because i'm stuck on this problem since janurary! And I could tell you I had the exact same behavior back in january (store listing failing).

    Thanks!

  • hazneliel

    Thanks for the tip. It's great news that IAP are working fine in your game! Congratulations!

    Could I ask you how you did it? What was the problem you had with the previous version when it was not working?

    Do you still request the store listing? Is it successful by now?

Rable's avatar

Rable

Member since 6 Aug, 2014

None one is following Rable yet!

Connect with Rable

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies