question

whitershores avatar image
whitershores asked

Where to store Minecraft-like world data?

I am building a game where many players will be able join publicly available worlds, where the game state would need to be stored in a persistent manner.

Use-case is very similar to Minecraft: An authoritative server model where players do not have direct access to the world state. Only parts of it are sent to each player, and they alter it as they play. (Eg, mining blocks etc.) No player necessarily 'owns' the world. When the last player leaves, before the server would shut down, it would save the last world state, so if players would like to visit it again, it could be restored to how it last was.

There were a few similar, older threads a few years back about similar questions. However, I would like to know what is the current best practice to accomplish something like this?

Player Dataentitiesdata
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

·
Sarah Zhang avatar image
Sarah Zhang answered

Currently, the workaround for such a case is still to let one player own the world. PlayFab Multiplayer Server can provide the non-persistent server sessions for multiplayer players to access. You can use an external cache or the server’s own cache to handle the temporary data of the server session. Then you can store the user-generated content in the room owner’s player entity data when the last player left.

Besides, as PlayFab Roadmap says, the new feature User-Generated Content (UGC) will come in the future. Currently, this feature has no exact estimated time of arrival. Please keep an eye on our Roadmap and Release notes for the latest updates.

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.