Browser Save File Questions

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.
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.
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
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.
Thank you for your quick response. Looking into it!

Have a nice day 🙂

Original thread: https://forums.rpgmakerweb.com/threads/browser-save-file-questions.47715/