Rable's Recent Forum Activity

  • PMed you, matrixreal

    Looking forward to know what you found

  • Oh, awesome! I've been able to get everything right by using touch.XforID along with on Nth touch start/end.

    Thanks a lot, and sorry for the inconvenience!

  • Thanks a lot for your time on this capx. This is very interesting!

    Actually, in your capx,

    • Touch right side (keep)
    • touch left side (keep)
    • release right side
    • release left side

    produce the desired result : creates a red rectangle, then a blue rectangle.

    However,

    • Touch left side (keep)
    • touch right side (keep)
    • release left side
    • release right side

    Still produces two blue rectangles instead of blue, then red. So I'm afraid at the moment we still have to consider this as a bug.

    I tested it on iPad (preview over wifi), android 4.1.2 (preview over wifi and crosswalk export)

  • Negative,

    • Touch left side (keep)
    • touch right side (keep)
    • release left side
    • release right side

    produces the desired result. Following your logic, it should also produce 2 rectangle of the same color.

    Furthermore, the following codes :

    and this one (using IDs)

    produce the exact same result as the one in the first post.

    If you manage to have the correct behavior, could you share the event sheet, so that I could edit my post to say that this is not a bug (and know how to resolve my problem)?

    Thanks.

  • Thanks to newt for showing it was not a bug, why, and how to resolve the problem.

    Sorry for the inconvenience.

    -------

    Problem Description

    When using multi-touch (touching 2 points), releasing the second touch before the first one will cause bugs.

    Attach a Capx

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

    Description of Capx

    When releasing a touch on the right side of the screen, creates a red rectangle at a random position

    When releasing a touch on the left side of the screen, creates a blue rectangle at a random position

    Steps to Reproduce Bug

    • Touch left side (keep)
    • touch right side
    • release right side
    • release left side (also fails when inverting all the lefts for rights and vice-versa)

    Observed Result

    When releasing right, blue rectangle appears

    When releasing left, blue rectangle appears too

    Expected Result

    Red rectangle appears, then blue rectangle appears.

    Affected Browsers

    • Chrome: YES
    • Safari : YES
    • FireFox: untested
    • Internet Explorer: untested

    Operating System and Service Pack

    iPad : iOS 8.3

    Android 4.1.2

    Construct 2 Version ID

    r204.2

  • matrixreal

    Thanks for your continuous help. I really appreciate it!

    What you describe is very close to the workflow I made in my full game. The only difference is that the IDs are not added on the loading layout, but on the title screen layout (no possibility to make purchases on the title screen layout) and when request store listing is successful, I don't purchase a product but go to the shop layout (but I never reach the shop layout on iOS)

    As a reminder, all the IAP system works wonder on Android, and I'm using the exact same code on iOS, so I really, really believe my events are correct (unless iOS and Android have different requirements event-wise, which I doubt).

    Here is the assets & plugin list of my game :

    AdmobAds

    Audio

    AudioHelper (external plugin)

    Browser

    Game Center

    IAP

    Keyboard

    Touch

    Mouse

    LocalStorage (unused)

    Webstorage

    1 webfont (google font)

    24 text objects

    3 arrays

    About 200 other objects

    6 music (x2)

    about 50 sounds (x2)

    The only way for me to make "request store listing" successful in this code

    is to delete all sounds and use C2 IAP. Even when I do so, it doesn't seem much reliable (sometimes it gets ne response at all)

    If I wait 3 seconds between the "Add product IDs" and "request store listing", it doesn't change anything.

    If I only delete SOME sounds, it gets no answer

    If I create a first layout, wait 2 sec, then go to the layout of the above event sheet, it never gets a response, even when deleting all the sounds.

    If I use Phonegap IAP, I get a response : FAILED. Every time (even when removing all sounds).

    This just has no sense, I'm switching to another export method.

    EDIT : just to be 100% sure I'll make a last test with exactly the workflow you propose, but I believe it will fail, too.

    And FYI I opened a DTS incident on my Apple developer accoutn for this problem, here is Apple's reply :

    "Let me first state that I do not support the implementation of the Construct 2 SDK. I do however, support the use of the iOS StoreKit API. As such, I can respond to the use of the StoreKit APIs and you will need to investigate how these API’s are implemented in the framework you are using. If this is not possible, then I will have to refer you to the developer of Construct 2 who in turn can contact me via a DTS incident."

    So I don't think they can help either.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • matrixreal

    Ooookay... Thanks for the info, so I won't lose my time on trying to import my iap into Xcode.

    Actually I've got perfect performance with intel XDK. Well, the game don't even run on an iPhone 4S (iPhone 5 minimum) so it limits the performance problem, but on the devices it runs on, it runs perfectly.

    Now I eventually may be able to make the game to run on an iPhone 4S using Ejecta, so it's worth trying. However, I guess I read in a tutorial that Ejecta wasn't allowing interstitial ads. Is it true?

    Store listing is still unsuccessful, outside of very, very basic tests, and only with C2 IAP (Phonegap IAP always fails even on very basic projects in which C2 IAP succeed).

    I'll try to switch to another export mode (Ejecta) and see how it goes. Thanks for the reply!

  • Hi everyone,

    As Application Loader seems to mess with the IAP in my game, I would like to start using Xcode. However, I've been unable to find any tutorial explaining the basics of this program in combination with the XDK (I found only CocoonJS and Ejecta)

    Is there any tutorial out there that I overlooked?

    Or else could someone point me out the basics?

    Google seems to give only only Xcode 4 results, and I'm on Xcode 6.3.1

    Thanks!

  • matrixreal

    Thanks for the idea. I tested it and here are the results :

    C2 IAP without assets : success !

    C2 IAP with assets : no response

    Phonegap IAP without assets : failure

    Phonegap IAP with assets : failure

    Exactly the same than when I dont add the wait 3 seconds action.

    I also tried to add a first empty layout, then just go to the test layout (with the simple event sheet I showed) after 2 seconds. The results are :

    C2 IAP no assets : no response

    C2 IAP with assets : no response

    Phonegap IAP no assets : failure

    Phonegap IAP with assets : failure

    Now I'm thinking about something else : maybe is it mandatory to use Xcode to make the IAP to work? I never used it, I'm using Application Loader. Not sure it could be related to that...

  • Ashley

    You mean there could be an error in this code?

    These are the only events in my test project.

    The result I get from my tenths of hours of testing are driving me crazy. The above code can succeed or get no response depending on the circumstances.

    The most useful test I did was to export the above code with all the plugins & object I mentionned above, but without any sound (only music). The store listing succeeded in this export. But if I only remove half the sounds or so, it fails (get no response)... I tried to remove the biggest sounds, then I tried to export my complete game project without any sound. It all fails.

    Seriously, I don't know what to do right now. If someone wants to help me, please send me a private message and we can discuss about remuneration. I've lost more than 50 hours just exporting test files and have been trying everything possible and still have no clue of what's going on.

    Anyone hinting me about the problem will have his name in the credits of Healer Quest, too.

  • I performed new tests, and here is what I noticed :

    I deleted all layouts (but one) and all event sheets (but one) from my project, then I deleted all the conditions and actions from the remaining event sheet and all objects from the remaining layout. I reproduced exactly the second image in the previous post.

    Exported, the store listing STILL gives no response with C2 IAP (not failed, not success) (note : with Phonegap IAP the result is "fail")

    Then, I took the above mentionned capx and deleted ALL objects, plugins, music and sounds from the project, except IAP (C2), text and touch. And it worked out !

    So the conclusion is that there is something in my project which stops IAP from working correctly.

    Here is the list of what I am using :

    AdmobAds

    Audio

    AudioHelper (external plugin)

    Browser

    Game Center

    IAP

    Keyboard

    Touch

    Mouse

    LocalStorage (unused)

    Webstorage

    1 webfont (google font)

    24 text objects

    3 arrays

    About 200 other objects

    6 music (x2)

    about 50 sounds (x2)

    Any idea of what could be the problem? I don't have access to a mac before monday so I'm unable to make additional tests.

    Ashley , are you aware of this problem?

    Thanks!

  • Which version of Crosswalk is recommended at the moment?

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