(solved) Save and load into scene var in multiplayer. Publish to gdelveop

How do I…

I am using the save and load from json in 2 scenes.
first in front of the lobby to save a char data into a structure var called chosenchar. Second in the game scene. But even if it works in preview, if i publish to gdevelop / or html5. It wont work and doesnt find any data. Any idea what i can do?

What is the expected result

Save in scene a to chosenchar struct var. Load in scene b from json to scenevar chosenchar. Should work even if u close and open the browser.

What is the actual result

In multiplayer published to gdevelop site, it wont even load a saved data into the scene var.

Related screenshots

Saving in Scene a (pre lobby)

Loading in Scene b (game)

It works in preview, from the gdevelop editor. But not if published.

Anyone have save and load from JSON working when published to gdevelop? I get success: error.
do i need special logins/rights? any way to debug this issue?

I personally haven’t used it before, but I know others on the forum have. Hopefully someone will respond to it soon and help you! :smile:

I read more about the JSON to Storage. Its only working on desktops (win/linux/mac). I think the preview builds a desktop preview, thats why it works and the publish to gdevelop/html5 is not working.

If anyone wants to store scene / global vars to a file and reload it, here is a useful thread to do this. I could solve it this way: