Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Did Persistent Data Saving in HTML ever arrive?

Years of Service
User Offline
Joined: 11th Jul 2016
Posted: 15th Feb 2022 15:34
I read in the forum this was talked about as a new feature back in 2019, It was said to be coming soon.
Has it it arrived on either classic or studio yet and where can I find guidance to implement it on my web based games?

Virtual Nomad
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 15th Feb 2022 15:58 Edited at: 15th Feb 2022 16:24
it was implemented as SharedVariables which uses cookies in HTML; i posted a working example on the help page, there.

something that became an issue after implementation was cross-site cookies which AGKPlayer.js doesn't provide for while sites like run the games in an iframe (and the game itself is hosted on another site) but thanks to tboy, the fix was easy for my 2020 lowrez jam game and continues to work without issue.

if you're self-hosting, you shouldn't have to make the change.

worth noting, as hosch mentioned in an earlier post today, "general cookie size" is limited to 4096 bytes so, depending on what you're trying to do, this may present an issue.

Login to post a reply

Server time is: 2023-05-29 10:36:33
Your offset time is: 2023-05-29 10:36:33