Log In  

So I've seen Pico-8 cartdata (mostly saved games and scores) is stored in the session, so when you close your browser the data dissapears. It's a shame because games like Low Mem Sky benefit a lot from saving feature, and with no way to play on Android other than using the web browser, is it possible to force the storage to be copied to a persistent area on my phone and then load it when opening the browser and the cart again?

Maybe a Chrome extension (does Android support that?) could do the work?

I'm not an expert in IT so I have no idea how Android manages session Storage on its browser or if it's even possible to hook a script that reads, copies, then inserts the data again when needed.

Another idea I had is if it would be possible to make an APK with a webviewer that could store the webview data on its own way, making it persistent, but again, I have no idea.

I would like to know if any of that is possible, and if so, please someone point me in the right direction, I'm willing to put effort on studying ways to do it and doing it myself, but I need a starting point.

I'm a junior web developer (3 or so years experience with plain JS, TS and some frameworks, but not high level) and sysadmin, so I have no problem reading docs and hitting my head against a wall until I do what I need, but please, tell me which wall should I start hitting first

P#119265 2022-10-18 20:08

So I've seen Pico-8 cartdata (mostly saved games and scores) is stored in the session, so when you close your browser the data dissapears

I don't think this is true. As far as I know, cartdata for HTML export games stores in local browser storage. It definitely works this way on desktop, and on Android, I played one of my games on the BBS, closed Chrome, rebooted my phone, went back in and my high score was still there.

P#119267 2022-10-18 20:35

Then the problem must be on my end, outdated browser or something because everytime I close Chrome or kill the process the data is lost

Quick edit: The same happens both on Android and on Windows PC

P#119312 2022-10-19 15:44 ( Edited 2022-10-19 15:45)

It's weird that it happens to you on multiple platforms, unless your Windows machine is Windows 7 or something similarly ancient. Not sure what to tell you on that.

P#119324 2022-10-19 18:48

Through the browser, it uses the indexed db API.

> This screenshot is from firefox dev tools.

I'm not 100% sure on the internal implementation, maybe it will fallback to simple session storage if the browser doesn't support, but I've not run into this issue before.

P#126532 2023-03-03 00:02

[Please log in to post a comment]