Hi, I made a build of my game for Windows and one for WebGL, the Windows version works well, in terms of saving and loading there's no issues when clicking "Continue" on main menu, the autosave loads fine. In the WebGL version, I do the exact same and it never loads. The music keeps playing which is correct, but nothing happens, the screen just goes black. I'm not sure what images to show, here's the actionlist when clicking the continue button and the actionlist in the pause menu when clicking the button to go back to main menu. Let me know if there's anything else I should include to understand this issue.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Can you access the Options menu? Try changing the volume, then closing and re-opening - are the changes retains?
We'll need to see what kind of error message gets output when the screen goes black - on WebGL, this ought to show in your browser's Javascript console:
https://docs.unity3d.com/6000.3/Documentation/Manual/webgl-debugging.html
Hi, so I checked the console, sorry about not thinking about that earlier, and it's "Could not load autosave - file does not exist". As you can see in the images of the actionlists I sent you, it should exist, since I'm making a new game, then clicking the "back to main menu" button, which triggers the saving, and then clicking "continue", which should load it (and, again, this works well in the windows build). I'm not sure what might be happening.
I tried that in-game, since my main menu doesn't have an options menu, if that's what you meant, and it did keep the changes in volume when reloading the page and starting over.
What's your AC version, and does the Console output a message when the Autosave is saved?
version is 1.82.5 and yes it does, here's the log:
10 may webgl.framework.js.br:10 Could not save PlayerPrefs data under key MembrilloHidMySocks_0. Exception: UnityEngine.PlayerPrefsException: Could not store preference value
at UnityEngine.PlayerPrefs.SetString (System.String key, System.String value) [0x00000] in <00000000000000000000000000000000>:0
It may be a case of the save-file being too large. On WebGL, AC saves data to PlayerPrefs, which has a 1MB file-size cap.
How large are your save-game files typically when saving on PC?
You're right, the PC save is a bit over 1.3 MB, is there anything I can do about this?
You might get it down by remove unnecessary Remember components (if any), but you can also try checking Compress save files? in the Settings Manager. Old save files won't work with this checked, however.
Yay checking "Compress save files?" worked! Thank you so much! I'm curious, what does that option do? Like will this have any noticeable consequences in the game?
It just compresses the raw save data before storage. I'd recommend testing on different browsers, but you should be fine so far as in-game consequences go.