Where are saves stored without wifi?

0 votes
asked Mar 11 by ygmantell (360 points)
If I want to send my game (.html) around in an email lets say, because it's its own self-contained file, it will work without internet, right?  In that case, where are saves stored without internet?  Does the player have to use the "save/load to/from disk" option?  If so, is there a way to have it automatically do this so my game doesn't require internet?

Thanks!

1 Answer

0 votes
answered Mar 11 by Chapel (46,530 points)
The data goes to the browser's storage cache, which is on your computer, not on the Internet. You don't need to use the import / export options.
commented Mar 11 by ygmantell (360 points)
So if the player doesn't have internet, they can save an load.  However, if they clear their browser cache, all save data is lost?  is there any way around this?

Thanks!
commented Mar 11 by Chapel (46,530 points)
Yes. That's what the (SugarCube only) import / export options are for.
commented Mar 11 by ygmantell (360 points)
Got it.  (So I assume this works on mobile too).  Is there any way to have it default to using local storage?

Thanks
commented Mar 11 by Chapel (46,530 points)
What do you mean? The save feature uses local storage, and you can export to and import from disk. There is no "default", really. It always uses local storage, and when you export, it's still in local storage, but you also get a copy on disk.
commented Mar 11 by ygmantell (360 points)
Got it.  I must have misunderstood. My apologies!  Thanks!
...