Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Spynorbays · Jul 29, 2021 at 12:23 AM · Player DatadataTitle Data

What method should I use to store and update map data?

My game is multiplayer with a single map consisting of many cells with their own coordinates and variables. Those cells can be owned by players and updated when needed. (Clients will get the map information from Playfab and update it on their side once every minute or so, doesn't need to be real-time)

The problem is that I'm not sure what method should I use to store the map information in Playfab.

I have the idea of making a leaderboard of players with their owned cells and these cells' variables as the value. Then updating the corresponding leaderboard value when a player makes a change on the cell. (Then iterating through the leaderboard to get the whole map information)

That's the best idea I have on how to implement this but I'm not sure if there is a better and more optimized method.

Is there a better way of storing and updating global information like these?

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Spynorbays · Jul 29, 2021 at 12:32 AM 0
Share

Just realized you can't have JSON as a leaderboard value so my idea won't work; but the question is still relevant.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Jul 29, 2021 at 08:48 AM

If about a dozen or fewer players will share one map, you can consider using Shared Group Data and CloudScript to implement it. This document -- Using Shared Group Data - PlayFab | Microsoft Docs contains the example of the turn-based multiplayer asynchronous games. If all players of your title will share one map, as you said, it will be the global variable of the title. Currently, PlayFab doesn’t provide the feature to handle the global variables. For this case, we would suggest you use the external cache, such as the Azure Cache for Redis, to handle such global data.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    What happens after I overstep the free limit of updates per user 1 Answer

    GetUserData vs GetPlayerProfile ? why Different 1 Answer

    Amount of data max storage for persistent turn based game 1 Answer

    How to acces other player's data values using EntitId(Player ID (title)) 1 Answer

    Is it possible with PlayFab to host the data only in the EU / a certain country (not the US)? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges