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 Fabiano Shiiti Marumo · Oct 27, 2020 at 07:45 PM · dataTitle Data

There is a way to save data per demand as global variable that all players can access?

Hi,

I plan to store the player replay every time the player finishes a game. All these replays should be accessible to all players.

I have 2 ideas, but I am not sure if they are viable using Playfab, so I will describe them:

1 - When a player finishes, he stores the replay in their own player data. So with Schedule task, I was planning to update the Title Data from time to time with all players replay and reset these replays in player data.

2 - When a player finishes, he stores the replay in their own player data. But, in this case, I also, maybe by cloudscript, to save the player Id in a title data from all player that finished a level.

So, when a player need x replays, I get x randoms players ids and get theirs replays.

What are the possible problems using each idea?

Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Oct 28, 2020 at 01:30 AM

Two key things to bear in mind:

1. Title Data must never be updated as a direct result of a player action. It is only designed for infrequent changes, specifically made by the developer/publisher. Using a Task to update it once an hour or day would be fine, but the question then is, what is it using to collect the data needed for that update?

2. You can certainly share data between players via Player Data (or Entity File), but do bear in mind that a) if there are many requests for a single piece of data (like a popular player), there will be delays in responses, and you may get timeouts, and b) each read of the data will tick the relevant meter (Profile Read, for Player Data) based on the total amount of data read.

But a simple way to share data for replays would be by using a standardized naming scheme, using the player's PlayFab ID as part of the name. So if players can have 3 replays stored, the keys might be "Replay_1_[PlayFab ID]", etc. That way, you wouldn't need to update Title Data for this, and you could just have players use leaderboard queries around their own score to get a set of other player IDs to randomly pick from.

Comment
Fabiano Shiiti Marumo

People who like this

1 Show 2 · 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
avatar image Fabiano Shiiti Marumo · Oct 29, 2020 at 02:11 PM 0
Share

First, thanks for the Answer Brendan

I got your point.

But I am still in doubt about how to use the leaderboards.

For each level that I want to save a replay, will I have to create a new leaderboard?

Also, the limit of leaderboard in a free tier is 300, which is the same for a premium tier. Is that correct? (in other words, my limit for levels is 300?)

Last thing: When I get the leaderboard, I want the position the most randomly possible.

I checked this solution:

https://community.playfab.com/questions/38373/how-do-you-get-total-number-of-entries-in-a-leader.html.

Is this the only solution?

avatar image Fabiano Shiiti Marumo Fabiano Shiiti Marumo · Nov 03, 2020 at 09:48 PM 0
Share

@Brendan Do you know the answer?

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    News with Claimed Rewards 1 Answer

    Is it possible to get the sum value of a player statistic, eg total number of kills for all players 1 Answer

    Problem in login to playfab with android studio, Apk genrated withouterror but no data of players in playfab 1 Answer

    Setting player data through ue4 blueprints 1 Answer

    Adding / reading non-editable persistent title data in playfab 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