question

yusuke avatar image
yusuke asked

About the scoreboard reset time

The ranking reset frequency is set to "every day".

So I am distributing the game in Japan.

I would like to reset the ranking at 0:00 every day, but it will be reset at 9:00 AM Japan time.

Is it possible to change this time?

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

·
Citrus Yan avatar image
Citrus Yan answered

Daily, weekly, and monthly leaderboard resets occur at 00:00 UTC, which is 9 AM in Japan, that’s why your leaderboard was reset at 9 AM. If you want to reset leaderboard at a specific time, please use Scheduled Task and the Admin API call IncrementPlayerStatisticVersion to reset the leaderboard at a specific time using CRON expressions, this thread could be helpful: https://community.playfab.com/questions/39408/leaderboard-reset-time.html

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.

yusuke avatar image yusuke commented ·

「POST https://titleId.playfabapi.com/Admin/IncrementPlayerStatisticVersion


I registered in the AZURE function, how can I call it from a scheduled task?

Please tell me the detailed method to call the AZURU function from the cloud script.

Should I add it to the revision part?

I'm not good at writing code, so if you can, please give me the code to call IncrementPlayerStatisticVersion from a cloud script.

Thank you for your cooperation.


0 Likes 0 ·
Citrus Yan avatar image Citrus Yan yusuke commented ·

This thread shares a sample Azure Function code that resets the leaderboard:

https://community.playfab.com/questions/48099/call-incrementplayerstatisticversion-from-azure-fu.html

Once the Azure Funciton is deployed, register it with PlayFab following this doc:

https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/quickstart#create-an-azure-function

After that, configure in the Sceduled Task page to run this Function every day at 15:00 UTC (0:00 in Japan),

0 Likes 0 ·
sampletask.png (54.3 KiB)

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.