Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles

How to save data?

A topic by Defentures created Oct 11, 2018 Views: 193 Replies: 6
Viewing posts 1 to 5

Hello!

How I can save data on itch.io ? Cookies, Local storage is bad idea,  cause uploading a new build of your game changes the path it lives on.

So what to do?

Admin(+2)

We don't have a really good solution for this right now, but we are considering providing some of kind of API that does server side storage, or adding an option for games to re-use existing path. How much storage do you see yourself using?

Hi! it's enough for me to have a player login. So I can use PlayFab to store data.

As I understand now I can't get player login from my webGL game running on itch.io.


If I will not use PlayFab, I need 20-30kb per player to store all saves on itch.io.

(1 edit)

I'm buildinga service to help solve this problem and could use some input. It would allow the game to see state/status information in an external service to be returned later. The general idea is things like crashes, using multiple devices, and across updates.It would work with anything you can serialize into JSON data. If needed, I could look at expanding the scope but initially just looking at JSON based data structures.


Not trying to peddle my service so much as trying to  judge if there is a need and if this will help fill that need.

https://atomicstat.us

(+1)

You can use Firebase (and they have a free tier to get started) but you won't have the benefit of integration with itch.io's login system.  Users will have to create a new account, specifically for your game.

I already use PlayFab to save data. But I don't want  users to create a separate account. Very convenient to use one user name in itch.io and game. And login user in PlayFab automatically. That's why integration with itch.io's login system will useful for me.

Yes, what's really needed is for Itch to provide a signed token giving the user's account ID (and possibly other details if the user agrees to share them).  I know there is a way to use such a token with Firebase and probably there is with PlayFab too.

A related problem is that there is no way for an HTML game to know if the user has paid.  I will soon be uploading a new version of Gwen which will be chargeable after a short taster.  It interfaces with PayPal entirely on its own because while I could set the game page to accept payments, there is no way for the game to be notified of them.