question

bhester avatar image
bhester asked

Custom date Leaderboards

Hi,


We are currently looking at moving over our back-end to PlayFab and want to double check it can do some of our leadebroard setup.We have 3 main types:

A normal global leaderboard which should work fine.

A Weekly League of 100 players, which needs to update each week and give a prize. In our current system, when a player logs in we usually check the date and if it has gone on to a new Week, then we have the player check their leaderboard placement and set it up so that it shows the update in game and awards some goods.

And a Tournament that sometimes runs over a week, with a different qualifiers on Monday/Tuesday/Wednesday, Round 1 played over Thursday and Friday and then for anyone that reached the final they are then moved on to the Weekly Round. The Winner of a weekend round will also be awarded prized. Each leadebroard round also contains a pool of 100 players and is partitioned.

Previously we have had a leaderboard for each partition of players, and as they were filled a new leaderboard ID and partition was created and these were based on a date.

leaderboard.21-07-26.partion_1 - 100 Players (Full)

leaderboard.21-07-26.partion_2 - 100 Players (Full)

leaderboard.21-07-26.partion_3 - 60 Players (not full)

Would this approach be something viable in PlayFab or are we going to hit any leaderboard limits (or other issues) quite quickly?

Leaderboards and Statistics
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

As you said, our current leaderboard feature can support the global leaderboard well. But there is no good support for the child leaderboard. The child leaderboard feature will be included in the Leaderboard v2 that hasn’t been public yet.

According to your description, you need to create the leaderboards dynamically for the 100 players’ league, is it right? Does the player's score need to participate in the rankings of the global leaderboard and the child leaderboard at the same time? Since we don’t support the child leaderboard now. Currently, you can only create the leaderboards separately for every tournament. For every title, the maximum number of the leaderboards can be created is 300. It means you can create 300 tournaments at most at the same time (assuming you needn’t reserve a global leaderboard). We also don’t provide such features like the partitions of the leaderboard.

PlayFab Leaderboard can be reset weekly, and reward players after every reset. When you create a PlayFab leaderboard, you can set the reset frequency for it as Manually, Hourly, Daily, Weekly or Monthly. If you configured the Prize Table, it could reward players after the leaderboard reset. For more information about Resettable Leaderboards and Prize Table, please check the documentations -- Using resettable statistics and leaderboards - PlayFab | Microsoft Docs, Using Prize Tables - PlayFab | Microsoft Docs.

2 comments
10 |1200

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

bhester avatar image bhester commented ·

Thanks for the info and links. Will take a look over those.

Yes, we currently have 1 Global and then usually run a Weekly Tournament and a Weekly League. All scores in these leaderboards work separately and wouldn't be children of any others.

Weekly Tournaments and Leagues are split in to 100 Users each.
So if there are 10,000 people who join both the Weekly Tournament and League, that would be 200 different leaderboards needed I believe?

10,000 / 100 (each leaderboard) = 100
100 x 2 (Tournament and Leagues) = 200

And if we had 20,000, this would rise to 400 quite easily and then be out of scope for the PlayFab leaderboard limits then?

We would also require the ability to store a players leaderboard position or check it when the game next runs. I expect if we are attempting to recycle leaderboards within the 300 max, then that wouldn't be possible either, same with the leaderboards that reset on a freqency. Is there any way to store the players position in that leaderboard or query it in the future.

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang bhester commented ·

>> And if we had 20,000, this would rise to 400 quite easily and then be out of scope for the PlayFab leaderboard limits then?

Yes, the default limit of our leaderboard is 300. By default, the 400 will exceed the limit. The users in our Enterprise Plan can request the upgrade of the limits. But our leaderboards can't increase too much.

>> Is there any way to store the players position in that leaderboard or query it in the future?

If you want to check the previous leaderboards, yes, we support retrieving the last previous leaderboard using the API GetLeaderboard. To retrieve the previous one leaderboard, you need to provide the leaderboard version as Version field in the request body. For example, if the latest version is 9, you can set the Version as 8.

0 Likes 0 ·

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.