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

astracat111

Astra Cat
Veteran
Joined
Jun 16, 2015
Messages
207
Reaction score
117
First Language
English
Primarily Uses
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.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,546
Reaction score
3,717
First Language
Java's Crypt
Primarily Uses
RMMZ
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 :)
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
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!
 

astracat111

Astra Cat
Veteran
Joined
Jun 16, 2015
Messages
207
Reaction score
117
First Language
English
Primarily Uses
Oh very nice. Thanks guys that answered my question.  :D

What if a user uninstalls their browser?
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Oh very nice. Thanks guys that answered my question.  :D

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.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,517
Reaction score
3,221
First Language
Binary
Primarily Uses
RMMZ
That does not make XHR the illogical choice. Nor AJax the logical one. :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,107
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
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.
 

shylor

Veteran
Veteran
Joined
Dec 23, 2012
Messages
29
Reaction score
7
First Language
English
Primarily Uses
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 :D 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
 
Last edited by a moderator:

Maebius

Veteran
Veteran
Joined
Oct 29, 2012
Messages
40
Reaction score
2
Primarily Uses
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.  :)
 

kennysaurs

Amazing Person
Veteran
Joined
Oct 21, 2015
Messages
56
Reaction score
14
First Language
English
Would save files be deleted if they were to 'clean' up their browser? 
 

jernimen

Warper
Member
Joined
Mar 6, 2016
Messages
1
Reaction score
0
First Language
English
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,193
Members
137,772
Latest member
Kirakirna
Top