Ambix's Forum Posts

  • It's working perfectly now. Manual saving and loading works fine with the MobileAdvert plugin. I checked some more sprites and objects and set them all to no save. Probably there was still some sprite interfering with the save file.

    So thanks again for your help!

  • I'm back from testing.

    I removed the automatic save feature and added a save button instead. Sadly it didn't work.

    After that I deleted the MobileAdvert plugin and removed the corresponding events and now the manual saving and loading is actually working!

    Sadly I definitely need ads so hopefully I can get it to work somehow.

  • I now used the official example from Scirra for saving and loading on my android device which worked, this was the logcat output

    04-11 18:28:37.899 7686 7686 D SystemWebChromeClient: file:///android_asset/www/scripts/c3runtime.js: Line 2 : [Construct 3] Loaded state from storage (6493 chars) 04-11 18:28:37.899 7686 7686 I chromium: [INFO:CONSOLE(2)] "[Construct 3] Loaded state from storage (6493 chars)", source: file:///android_asset/www/scripts/c3runtime.js (2)

    I'm using the "on tap object" trigger and it's the only place where the game is trying to load.

    I tried to change my event a bit but it's still not loading correctly:

  • I ran Logcat, here's what it says while saving:

    SystemWebChromeClient: file:///android_asset/www/scripts/c3runtime.js: Line 2 : [Construct 3] Saved state to storage (63675 chars) chromium: [INFO:CONSOLE(2)] "[Construct 3] Saved state to storage (63675 chars)", source: file:///android_asset/www/scripts/c3runtime.js (2)

    Looks fine to me but the load is a bit weirder:

    04-11 17:25:33.009 32717 32717 D SystemWebChromeClient: file:///android_asset/www/scripts/c3runtime.js: Line 2 : [Construct 3] Loaded state from storage (63675 chars) 04-11 17:25:33.009 32717 32717 I chromium: [INFO:CONSOLE(2)] "[Construct 3] Loaded state from storage (63675 chars)", source: file:///android_asset/www/scripts/c3runtime.js (2) 04-11 17:25:33.024 32717 32717 D SystemWebChromeClient: file:///android_asset/www/scripts/c3runtime.js: Line 2 : [Construct 3] Failed to load state from storage: 04-11 17:25:33.024 32717 32717 I chromium: [INFO:CONSOLE(2)] "[Construct 3] Failed to load state from storage: ", source: file:///android_asset/www/scripts/c3runtime.js (2)

    Is the game trying to load two times in a row? First loading succeeded and then it fails? I pressed the load button only once.

  • But still thanks for trying to help me!

    This is what the console prints after the first save "Saved state to storage (77522 chars)". I don't know if that's too big.

    What else can I do if the save function is not working? Should I switch to local storage or use something else to save?

  • Yes, "Use loader layout" says no. On the preview everything works fine.

    I tried to let the game load by pressing a "Continue" button but it still fails when testing with an APK.

    Also when the load fails, I can no more watch Ads or buy In-App purchases, seems like the plugins crash on loading the save file.

    Sometimes the load actually works, but it's not loading everything, for example some global variables didn't have the same value when I saved the game and the whole game behaves very weirdly.

  • It used to be in my loader layout but I removed it. Now I don't have a loader layout. I save and load from my "Start Layout", which is the first layout that loads. Here's what it looks like:

  • Hello,

    in my game I use the basic save and load feature provided by the System object.

    Saving the game works fine, "on save complete" triggers. But when I exit the game and start it again, "on load failed" triggers immediately.

    I've tested it as a signed APK on two different devices.

    What can cause the game to fail loading?

  • Try Construct 3

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

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

    can somebody please tell me how to delete a test InApp-Purchase that is non-consumable from my device (android). I know how to cancel a test purchase from the play console, but my game still shows the item as purchased, even if I reinstall the game.

  • Try to use the product ID "android.test.purchased".

    Is it working? If yes there is something wrong in your Google Play Console. If it's not working there's something wrong in your code.

  • Thanks for the answers, it's working now. I exported as a signed APK. But there was also something wrong with my Admob Account. On the Admob Dashboard it showed the warning that I didn't add my address and Admob won't show ads (and the consent pop-up apparently) until I add my address.

    Did you add the consent pop-up to your project or is it supposed to display automatically,as part of the plugin?

    It should display automatically if you use the MobileAdvert plugin and configure it in your Admob Account because AFAIK the Consent Dialog is not coming from Construct but from Admob.

  • Hi,

    it's the first time I tried to use the MobileAdvert plugin. I read the documentation and set up my Admob account the way it's described there.

    But when I export as a Debug APK and try to run it on my device, the consent Dialog is not showing up when launching the app. Also the interstitial ads won't work for me.

    I included a screenshot from my config:

  • Hi,

    thanks for linking me to your Plugin Collection. It seems very useful to solve alot of my problems.

    I might need to sleep a night or two on it before making the decision to buy :)

  • Hello,

    I'm looking for the best way to let the User restore his save file or play on another device.

    The documentation says "JSON data to the server with the AJAX object and storing it in a server database".

    Well, I have an online server with MySQL Database but no idea how to do this in Construct.

    Is there an example or another way to save easily online?

  • Hi,

    can you see which Event Group is activated and deactivated during runtime?

    Like in the debugger for example?