question

gamingbigfoot avatar image
gamingbigfoot asked

Best practices to migrate from Player data to entities

I want to make sure I do this as intended. For my soon to be shipped game, we have everything structured with Player Data, but would love to migrate to the new system, so keep consistency, since we are now planning to add guilds with the new entity group feature.

My question is:

  • How would I migrate multiple key-value pairs (over 15, some of over 1600bytes) that I currently have in Player Data, to the new entity system? (Keeping in mind that Objects allow 3 of 100bytes each, and Files only 1)
Player Data
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

·
brendan avatar image
brendan answered

The entity data system is very different from player data, and has different requirements, so not all uses of player data you may have had to date would really map well. And since your data is going to be unique to your game, there really isn't a one-size-fits-all solution to this. To make use of the entity data system, you'll want to re-evaluate what data you need to save, how often, and in what format. Because you can save any arbitrary data type (including binary) as a file, that may allow you to optimize your data somewhat. But if your data model simply can't be converted, you can just leave it as player data - we won't be disabling this functionality for existing titles.

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.