Browser Save File Questions

SaiScott

Ikishin Founder
Veteran
Joined
Oct 26, 2015
Messages
34
Reaction score
18
First Language
English
I have a few questions regarding how the save file works in the browser.

Where is the save file located? Does it get saved to the hosting server, or to the browser? Does clearing browser cache delete your save file?

Is there a way to integrate save file with forums? By this, I mean could I require a login to a forum to play, and also require the login to access your specific save data? What about forum name integration? Pulling your character's information to your forum profile? Points system integration?

Please note that these are more "is it possible?" type of questions, not "is there currently a script that allows it?". I'm sure MV is too new for scripts for this idea to have already been made, if even possible.
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Save files are saved in the browser, by default. The games run on the HTML5 standard, wich has been out for several years and is widely supported. It also states that browsers should have a way for websites to store larger amounts of data on the client than cookies allow. To give a little perspective, cookies can't get any bigger than 4KB (about 4,096 characters). The local storage system, however, generally ranges between 5 and 10 MB depending on your browser, and if you're on a mobile device or not. This is at over 1000x more space, even on the 5MB short end of the deal.

That said, yes, saves and such are stored to the browser on the web version of the game.

You can, yes, and it's a lot easier than it would be in older versions of RM. In fact, someone has set up a cloud save system already. If you go and find the topic, I'm sure you can find extra help for that there.
 

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
124
Save files are saved in the browser, by default. The games run on the HTML5 standard, wich has been out for several years and is widely supported. It also states that browsers should have a way for websites to store larger amounts of data on the client than cookies allow. To give a little perspective, cookies can't get any bigger than 4KB (about 4,096 characters). The local storage system, however, generally ranges between 5 and 10 MB depending on your browser, and if you're on a mobile device or not. This is at over 1000x more space, even on the 5MB short end of the deal.

That said, yes, saves and such are stored to the browser on the web version of the game.

You can, yes, and it's a lot easier than it would be in older versions of RM. In fact, someone has set up a cloud save system already. If you go and find the topic, I'm sure you can find extra help for that there.
There is actually a limit

DataManager.saveGameWithoutRescue = function(savefileId) { var json = JsonEx.stringify(this.makeSaveContents()); if (json.length >= 200000) { console.warn('Save data too big!'); } StorageManager.save(savefileId, json); this._lastAccessedId = savefileId; var globalInfo = this.loadGlobalInfo() || []; globalInfo[savefileId] = this.makeSavefileInfo(); this.saveGlobalInfo(globalInfo); return true;};That's 200KB before being compressed.

If it's in "web mode" it's saved to the browser local storage. If it's running game.exe/node-webkit, it's saved as a file in ./save/config.rpgsave
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
There is actually a limit

DataManager.saveGameWithoutRescue = function(savefileId) { var json = JsonEx.stringify(this.makeSaveContents()); if (json.length >= 200000) { console.warn('Save data too big!'); } StorageManager.save(savefileId, json); this._lastAccessedId = savefileId; var globalInfo = this.loadGlobalInfo() || []; globalInfo[savefileId] = this.makeSavefileInfo(); this.saveGlobalInfo(globalInfo); return true;};That's 200KB before being compressed.

If it's in "web mode" it's saved to the browser local storage. If it's running game.exe/node-webkit, it's saved as a file in ./save/config.rpgsave
That isn't necessarily a limit, it's a warning. If it was going to force you to stop, it wouldn't just output a warning and continue on, but you are correct in that it shouldn't be that bit. What I was referring to earlier in regards to storage sizes, I meant that the localStorage system is, by design, limited to between 5 and 10MB by the browser. The exact limit depends on the browser, and mobile browsers typically have the 5MB limit, while desktop browsers typically have 10MB.
 

SaiScott

Ikishin Founder
Veteran
Joined
Oct 26, 2015
Messages
34
Reaction score
18
First Language
English
Thank you for your quick response. Looking into it!

Have a nice day :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,881
Messages
1,017,227
Members
137,607
Latest member
Maddo
Top