Hi I want to implement leaderboard for my game. I just implemented google play leaderboard. But the question is I want Daily and weekly leaderboard. And I need to reset from google play console daily and weekly.
#Thank you.
You can reset the value in draft leaderboard only , daily/weekly as needed ,
in the Google Play Console, click the button labeled Reset leader board progress at the bottom of the form for that event.
To reset leaderboard data programmatically, call the Management API Scores methods.
link https://developers.google.com/games/services/common/concepts/leaderboards
Related
I am new to google game play leader-board service. I am creating a Round based gamed where each round last for 2 minutes. All the players globally are playing same round simultaneously. At the end of each round I submit scores to the google play leader-board service. Now how can I get highest scorer among all the players who played that particular round? I want to show leaderboard for that particular round.
Thanks
The Google Play Game Services leaderboards need to be defined before publishing the application, so for only 1 day of gaming, you would need 1800 leaderboards, and then you would need to use the management API to reset the leaderboards every day. I don't think it is a good fit for your requirements.
Have you looked into using Firebase? https://www.firebase.com/docs/web/quickstart.html
You can still use GPGS for achievements, events and quests, and even leaderboards for the daily, weekly, and all-time scores.
I am working on Google play game service
I have integrated code for real time player and its working.
Now i want to know some more feature that
I did not found after searching on Google are below
1. When user won the game it should update wining counter by one.
2. What is the ranking of user according to country
3. How to get user detail of opponent.
It sounds like you want to check out Leaderboards https://developers.google.com/games/services/common/concepts/leaderboards
You can create (currently) up to 70 leaderboards (maybe one for the country/regions of your players).
At the end of your game, you can update the user's score. The server keeps track of daily, weekly, and all time leaders. There is also the concept of Public and Social leaderboards so that may be a way to see the opponent's standing.
I am developing an android game with Google Play Game Services implemented in it. I'm using leaderboard from game services. Every week I want to award users with highest ranking with some gifts. Is there any way to get users email or different channel to contact user, so we will be able to determine where we should ship the gift?
Yes, but it is not a documented feature. You can use Games.Leaderboards.loadTopScores to get top scores. When you have a LeaderboardScore object you can use score.getScoreHolder().getPlayerId() to get his Google+ id. Then open https://plus.google.com/PUT_ID_HERE/posts and you can contact that player via Hangouts.
I want to set a leaderboard just like the stackoverflow user reputation listing page does.
https://stackoverflow.com/users?tab=Reputation&filter=week
Everytime a user starts a new game his score will be added to his previous game score. Means the score will be accumulated. When i set a new highscore google play will update all three leaderboards(daily, weekly and alltime). The alltime part is OK. But the daily and weekly leaderboard values must be calculated seperately. Can i select which time period to be updated or at least disable the daily and weekly leaderboards?
Here is issue on google code:
https://code.google.com/p/play-games-platform/issues/detail?id=59&colspec=ID%20Type%20Status%20Priority%20Platform%20Summary%20Stars
I've done some tests while integrating the new Google Play Games with fake scores, now I need to reset the leaderboards before publishing my game!
I found this REST API:
https://developers.google.com/games/services/management/api/?hl=en#Scores
But this seems to be related only to web games, not Android games:
"Use the Google Play game services REST API to set and retrieve game services data from your web game"
Thanks!
I ended up switching all my leaderboards in the Developer Console to use "lowest scores are best" instead of the previous "highest scores are best" and this seems to have reset the old scores that were saved. It's a bit of a hack but very useful. You could probably switch back again and everything would still be cleared.
Updating the answer as it is now possible to reset the leaderboard during development.
You can only reset player progress data for your draft leaderboards.
To reset leaderboards in the Google Play Developer Console, click the
button labeled Reset leaderboard progress at the bottom of the form
for that event. To reset leaderboard data programmatically, call the
Management API Scores methods.
Reference: https://developers.google.com/games/services/common/concepts/leaderboards#resetting_a_leaderboard
Reset Test Achievements and Leaderboard Scores
As of Sep 9 2013 (From the Public issue tracker for the Play Games platform):
Issue 9: reset leader board / achievement data.
If you are still in test phase, you can reset your Achievements by deleting your account from the Test list in your developer console and adding it again.