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
Related
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
I am unable to understand how does google Quests API (Games.Quests) decide which quest to be open in different time zones and when.
https://developers.google.com/games/services/common/concepts/quests#quest_basics
In the above link it says
Schedule Specifies when players will be able to accept and participate in quests. When you enter the dates and time values, Google Play games services uses your local time zone but stores the values as UTC. Players will see these values appear in their local time zone in the Google Play Games app and in the default Quest list UI. You can also set up a quest as a repeating event on a weekly or monthly basis.
But unable to understand how schedule works.
For example : If as a Developer I have set time according to India (+5:30 UTC) and set that a quest will end on 12:00 am. Then when will the quest end in Mexico (-6:00 UTC)?
Note : The Quests list(with time & state) in Google Play Games app (as said above) remains the same even on changing device's time or time zone.
As stated by #Xaver, Goggle does all the heavy lifting for you. When you create a quest for the game and enter the dates and time values, Google Play games services uses your local time zone but stores the values as UTC as stated in the document. Google Play games will show this in the local timezone of the user.
For example you set the end of the quest in 12:am in India, then in Mexico it will end 12:30 PM.
The image is provided by
https://www.timeanddate.com/worldclock/converted.html?p1=54&p2=155 and it will help you understand more how the timezone works in Google Play Games Quest timezone.
Hope this helps.
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'm adding support for the Google-Play Game-Services to my Sports-App and was going to use the leaderboard so users can compare their number of workouts to other users.
But the number of workouts isn't a score in the sense, the leaderboard needs it and only makes sense if it's not restricted to a time span.
So I would like to only show the all-time leaderboard. I'm using the default leaderboard activity provided by the GameClient and that unfortunately has a selection for daily, weekly and all-time leaderboards.
Is there any way to tweak this or am I doomed to implement a leaderboard by myself? Or are there any examples of custom leaderboard implementations available?
No, you cannot change that as you only have access to the intent to the activity so you can't modify this. It is enforced by Google to promote adding friends to your G+ circles.