Fengist's Forum Posts

  • Ok, so here's my basic idea for a game and I'm trying to decide if it'll work in C2/3 or if I need to slog through Unity.

    The game is basically going to be a moba. There will be a login/matchmaking server. Once a client readies up for a game and the matchmaker finds players it will create and start a game server. Clients are then transferred from the login server to the game server. Once a match has ended the clients are transferred back to the login server and the game server shuts down freeing resources (think LoL or Dota2). I definitely don't want this to be a p2p multiplayer. I want it server controlled.

    I think I know how this can be done using C2 with Ajax, PHP and MySQL. What I'd like to hear is how you'd approach this type of configuration using C2/3. In particular, how you'd handle the game server. Would you do an NW.js export and just have PHP copy and run the game server or ????

    Thanks

  • Tetriser Winds3d to model, export as .obj. DazStudio to animate. And, if you decide to work in 3D, I know for a fact the models look just fine in Unity.

  • Wings 3D

  • Fengist : https://www.scirra.com/tutorials/4848/how-to-get-admob-official-plugin-working-on-android-crosswalk

    Here is the "non-existent" tutorial.

    Kyatric Ok, it does exist. It's the same tutorial Ashley pointed me to THREE MONTHS AGO... which I followed the instructions for... and it didn't work. Read back in this thread and you'll see that. If you've updated that tutorial... splendid. But since it's taken SIX MONTHS to... maybe get an answer through an unofficial tutorial update that may or may not work properly this time... I've already paid someone for a solution that worked the first time.

    You'll forgive me being a bit perturbed, but rooting through tutorials and reading the same one over and over again to see if it's been changed is NOT how I expect to get support.

    Yes, close and lock this thread. I'm tired of getting pissed every time I look at it.

  • lol... and this is exactly why I gave up. 6 months after I start this thread, I'm referred to a non-existent tutorial and the thread is closed.

    Now you know why I'm using cranberry's plugins. Pretty sad.

  • I can understand the Chrome web not working. He plainly stated when it came out it was in testing.

    Not working on google play? Are you kidding? The biggest market out there?

  • LOL, I've pretty much given up on developing anything else with this software. The fact that all I got for support was... read the tutorial... told me Ashley doesn't really want spend any time fixing this.

    Last I tried, Chrome Web Store and IAP did not work.

  • Hi cranberrygame

    Just bought your plugins and the IAP worked great. Ran into one minor problem. I shut down and restarted my phone and while it was still loading I ran my app with the IAP plugin and got this error.

    java.lang.IllegalStateException: Can't start async operation (refresh inventory) because another async operation(refresh inventory) is in progress.
    	at com.smartmobilesoftware.util.IabHelper.flagStartAsync(IabHelper.java:821)
    	at com.smartmobilesoftware.util.IabHelper.queryInventoryAsync(IabHelper.java:613)
    	at jp.wizcorp.phonegap.plugin.wizPurchase.IAP$2.onIabSetupFinished(IAP.java:288)
    	at com.smartmobilesoftware.util.IabHelper$1.onServiceConnected(IabHelper.java:260)
    	at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1265)
    	at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1282)
    	at android.os.Handler.handleCallback(Handler.java:739)
    	at android.os.Handler.dispatchMessage(Handler.java:95)
    	at android.os.Looper.loop(Looper.java:145)
    	at android.app.ActivityThread.main(ActivityThread.java:5942)
    	at java.lang.reflect.Method.invoke(Native Method)
    	at java.lang.reflect.Method.invoke(Method.java:372)
    	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
    [/code:h1fq5zue]
    
    That's the report sent to the Google Play Dev Console.  I'm guessing this happened because the phone was still booting up and I ran the app at the same time.  But, it crashed the app.
    
    I ran the app again a few seconds later and no problems.
  • Ok, I got sick of waiting for a response and ditched my principles. I followed Reinarte lead and bought Cranberry's plugins. His IAP worked perfect the first time and it was no more difficult to set up in XDK than the official one was.

  • I think you're all missing a very BIG point. He shouldn't even have to consider pirating Cranberry's work. The official IAP should work. Period.

  • Ah, the cranberry plugin.

    I have a problem with paying one guy for a piece of software that claims to work and then having to pay another guy to get it to work. While his price is very, very reasonable... on principle the one I've already paid for should work. However, all I've gotten in the past four months is the directions to a tutorial.

  • .................. IAP ORDER ..................

    Start Layout -> Add products.....

    Request store listing

    On Store Listing Sucess -> Restore Purchases

    On Restore Purchases Sucess ->

    Has Product ".........."

    Boy, that would be nice. Unfortunately On Restore Purchases Success doesn't exist.

  • Bug 1 & Bug 2: Store available and store listing have to come back true in order to get these. When first starting up the project they don't always get returned immediately. I put in a loop where it would attempt to get the listing. If it failed, it would wait 2 seconds and try again. If it failed 5 times, it would assume that the store simply wasn't there and proceed. Yes it's an issue but I could find no other way to get it to work consistently.

    Bug 3: don't have this problem

    Bug 4: Correct AFAIK. I've tried with test mode on and off and makes no difference. If you want to do test purchases, you'll have to set up beta testers and add the email they use to log into google. Then, it will do the purchases but not deduct money from any account.

    Bug 5. I believe this has to do with Android caching the purchase info. If you cancel the purchase in the Google Dev Console it may take a while for it to get to the Android device. One test I haven't done is to cancel the purchase then turn the phone off and back on to clear that cache. Otherwise, it will eventually come back as false.

    Bug 6. I haven't tried an 'inverse' as I can't even consistently get the has product result on starting my app.

    Here's the thread I've been trying to get help on:

  • Try Construct 3

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

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

    Ok, I do have it working now but only partially.

    If I make the purchase, shut the app down and restart the app, Has product comes back true.

    If I turn the phone off, turn it back on and run the app, Has product comes back false even if it's been purchased. If I then shut the app down and run it again, Has product comes back true.

    It appears to me there is a delay in initially getting Has product to the app so that on the first run, it doesn't get the response before the app has finished starting up. When the response does arrive, my Android device seems to be caching that information so that when I run it again, it finds it in the cache and gets the proper response.

    Because Has product is a true/false and not an event that I can associate a trigger to, I've tried adding in delays to make certain that the store is available and that the store listing success comes back true. I assumed that if store listing success came back true then Has product would be in there. Not so.

    When/How is the response for Has product being retrieved? Is there any way to make certain the app has gotten an actual response for Has product?

    I could use a stored variable to record when the purchase was made but, this becomes a problem when a purchaser requests a refund or to cancel the purchase.

    As it is now, I can never really be certain from the app's point of view if they have or have not made the in-app purchase.