[request] Test if save exist condition

From the Asset Store
Template for a generic save / load system, fully documented in comments and video
  • Hello Ashley

    I have a problem with my game which use the savegames, when i save the game, i post some data into the webstorage like save name, and that save is exist, it works fine everywhere, except apple's WKWebView, i guess you know that it has some troubles with a webstorage, like clearing it randomly or when user goes out of memory, so when it clears, save stays, but data from webstorage that tells that save exist is gone, so users can't load their savegames anymore.

    So i thought, if it's not very hard for you, you can just add a condition to a System's Save & Load section? Something like "Test if savegame exist"? It's gonna be a lot better than this webstorage tricks. As i understand, it's an Apple's WKWebView bug, something about cookies and local storage, nobody knows when it'll be fixed, so you are my last hope.

  • If it's an Apple bug then hopefully Apple will fix it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If it's an Apple bug then hopefully Apple will fix it.

    The problem is not only in the bug, i just thought it's a lot easier to put a condition to test for saves existing, than to create a check system based on webstorage. As for bug, yeah, but it will take months, it looks like they don't really care about their WKWebView, so maybe in worst case they wait before next major iOS release (9?) before fixing tons of bugs in it, who knows.

  • FYI none of our official export options support WKWebView right now, in particular because it has bugs that prevent Cordova supporting it, so it sounds like you're using an unsupported export process anyway?

  • to be honest, even without the Wkwebview bug itself, a condition to test if a save exists, and an action to delete a save are still something people can expect to find by themselves rather than having to build it with the webstorage (some people say it is not hard, true, but it is just troublesome and feels like a feature incomplete, the same way being unable to reset persistents objects was).

  • FYI none of our official export options support WKWebView right now, in particular because it has bugs that prevent Cordova supporting it, so it sounds like you're using an unsupported export process anyway?

    Waaait, i'm using wkwebview based ludei's webview+ in r192 description you said it's supported.

    [quote:cmevmwkz]CocoonJS Webview/Webview+ is Ludei's Cordova-compatible build system.

    Even if it's unsupported, i'm not talking about a bug, i'm talking about a missing features.

    a condition to test if a save exists, and an action to delete a save are still something people can expect to find by themselves rather than having to build it with the webstorage (some people say it is not hard, true, but it is just troublesome and feels like a feature incomplete, the same way being unable to reset persistents objects was).

    Yes ! That's what i wanted to say, using webstorage just looks like overkill.

  • Ashley

    to be honest, even without the Wkwebview bug itself, a condition to test if a save exists, and an action to delete a save are still something people can expect to find by themselves rather than having to build it with the webstorage (some people say it is not hard, true, but it is just troublesome and feels like a feature incomplete, the same way being unable to reset persistents objects was).

    I could use exactly that feature in the game I'm working on at the moment (save exist and delete save). I think it would match the current high abstrations level of Construct 2, and I imagine that a lot of small game hobbyists could use it too.

  • Attached is a simple example of webstorage use , for basic save/load/clear operation - in case some people revisit this thread looking for something like this...

    Cheers,

    thegrind

    [attachment=0:kyn5vvhx][/attachment:kyn5vvhx]

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)