How can I create a save game system that works in a game exported as html5?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By anonymous

Hey,

Been searching the Q&A here, asked in the IRC and done some websearches.
I would assume this to be a basic enough question…
However, I seem to be unable to find out where to even begin.

:bust_in_silhouette: Reply From: stubbsy345

Saving is much the same in HTML as in the other exports. Just make sure as you save you file to a location in ‘user://’ and not ‘res://’ as the res base cannot be changed in exported games.

However, I believe this is stored in the user’s cache, and if they clear their cache then they will also clear their save. As with all online games you would need to set up a server to send and save the players save file to, that is, unless you are using a website such as kongregate, that handles all of that for you through their API.

Thank you for providing such a detailed answer.
That is much appreciated.

anonymous | 2018-07-05 20:01

:bust_in_silhouette: Reply From: anonymous

Adding to stubbsy345’s answer about data being stored in the user’s cache, which indeed, it is:

For any future readers, as of 3.2 the page url has changed to Exporting for the Web — Godot Engine (latest) documentation in English

jf | 2021-01-05 21:21