question

Larry T McBride avatar image
Larry T McBride asked

What are best practices for saving singleplayer game state?

I'm working on a cloud save feature for my game and the issue I am having is that the saved game JSON string is larger than then maximum of 10000 bytes to save to UpdatePlayerData. It started out as 37k and I've reduced it to 24k by removing unnecessary save values and converting int to bytes and such.

I need to save about 55 objects max so what would be the best practice to accomplish this using PlayFab's services? Is there a service that offers more than 10k? Could I split the save up into multiple JSONs?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
pfnathan avatar image
pfnathan answered

For standard practice for handling player data, please refer to;

https://community.playfab.com/questions/10755/optimizing-player-data.html

Please note that, we do not recommend dividing file to make smaller, it would be a bad practice for it will create sync issues between those split files. Best way to accomplish is to upgrading your limits, please refer to;

https://community.playfab.com/questions/3990/new-pricing-and-limits.html

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.