My main concern with HTML5 gaming is the ability to save/load...

I love the idea of HTML5 games, the ability for a player to play a game right from pretty much any device with a modern mobile or desktop browser, but what concerns me is the idea of saving and loading.

I'm not sure if it already has this built in, but the best idea would be to create a save file on the users local hard drive I would think.
I love the idea of HTML5 games, the ability for a player to play a game right from pretty much any device with a modern mobile or desktop browser, but what concerns me is the idea of saving and loading.

I'm not sure if it already has this built in, but the best idea would be to create a save file on the users local hard drive I would think.
When you run the game on a browser, the save files are stored on the browser local files, not online 🙂
I love the idea of HTML5 games, the ability for a player to play a game right from pretty much any device with a modern mobile or desktop browser, but what concerns me is the idea of saving and loading.

I'm not sure if it already has this built in, but the best idea would be to create a save file on the users local hard drive I would think.
Save files, the configuration (the options you select in the options scene on the main menu), and other global data are all stored using HTML5's localStorage system. This is widely supported and a standard way to store data. it makes no easily visible file on the end-users computer (it's stored amongst their browser's files), but it is saved. No need to worry about that!
Oh very nice. Thanks guys that answered my question.  😀

What if a user uninstalls their browser?
you would do this with ajax
Oh very nice. Thanks guys that answered my question.  😀

What if a user uninstalls their browser?
Well, in that odd circumstance, the data would be lost, but the only thing you can do to circumvent that is put a lot of time and money into building a secure login system and a server to store EVERYONE'S save data. Not worth it. People rarely uninstall browsers, anyway.
you would do this with ajax
Or the more logical XMLHttpRequest
Or the more logical XMLHttpRequest
I believe AJAX is just a friendly interface that uses XHR underneath.
That does not make XHR the illogical choice. Nor AJax the logical one. 🙂
That does not make XHR the illogical choice. Nor AJax the logical one. 🙂
I believe AJAX is just a friendly interface that uses XHR underneath.

AJAX is not a system, it is an abbreviation for Asynchronous JavaScript And XML. AJAX is XMLHttpRequest.
I have not explored it, or when it's available, but I do recall seeing comments about allowing cloud saving.  It may or may not be in this context.

I would prefer, when answering support requests, that you first look at options that are available in the engine as-shipped, before looking at alternatives that would require extra plugins or packages or extra effort on the developer's part.  For all we know the option is there (not just for this request but others as well), and nobody has discovered it in the first 5 minutes of using the engine.  It is very disheartening for people to ask how to do something, and be told they will have to do all this extra work, when maybe they really don't have to at all.
Yeah, once our team gets started we are going to start working on an API for saving and loading so players can play from anywhere. Super excited 😀 It is good to know they are in local storage right now though. I was also worried about that.

Here is what it looks like for HTML5/Canvas. I am not sure what it is encoded with. I tried Base64, but did not get solid results.

local storage.png
watching this topic with interest.  I'm no coder, but was also hoping some sort of SQL or "online" storage will be possible eventually, for non-coders like me.  🙂
Would save files be deleted if they were to 'clean' up their browser? 
First time I heard about RPG Maker MV last October, I looked at overview and tech specs and features.  I found out I can export to html5.  I looked up for file save and found answer here.  I will find out what directory save data is stored.  If I find it, I would be able to copy it and back up to disk and cloud.


You may want to find out yourself too then you can leave your comment here.


Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/my-main-concern-with-html5-gaming-is-the-ability-to-save-load.46346/