question

g4m3c0d3r avatar image
g4m3c0d3r asked

How do we do “DURATION” based ScoreFormats?

There seems to be a type of score called a “DURATION”, which I assume means a time value. Submitting a score using the LeaderboardClient is very easy, though it takes a 64-bit integer. If we want to, for example, show a leaderboard that used time values (fastest time to complete a level for example), how would we set that up in the GameCircle developer web interface? Also, I don’t see a definition for what a “DURATION” is, so how might we determine what scalar would we use to represent the time (milliseconds or microsecond perhaps)?
10 |5000

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

Jim Liu avatar image
Jim Liu answered
Duration based leaderboards are currently disabled in the GameCircle portal. If you need this feature, please let us know and we'll try to work something out for you. Although this leaderboard type has not been enabled yet, the API is designed to support durations. The submitScore() method is the same for either leaderboard type. When the leaderboard is set to represent durations, the 64-bit integer parameter for the submitScore() is interpreted as a duration in milliseconds.
10 |5000

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

Dominic avatar image
Dominic answered
Hi, Any update about 'Duration' based scoreFormats? We're porting our game, and we'll need a leaderboard that use 'duration' too. Is there a way to setup our leaderboard properly using the Amazon Game Services? Thanks! Dominic
10 |5000

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

Peter@AWS avatar image
Peter@AWS answered
Hi Dominic, The specialized DURATION data type isn't fully supported yet, but NUMERIC works fine for most cases. In your situation, you could create a NUMERIC leaderboard with ASCENDING sort order and set Score Units to be something like "Milliseconds" or "Seconds." Just remember that if you track milliseconds in your game (for example), but call the leaderboard "Seconds," you'll need to divide by 1000 before posting the value with submitScore(). -peter
10 |5000

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

ophiliad avatar image
ophiliad answered
Is this available yet? If not, when can we expect it to be?
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Ophiliad, Thank you for the post. Unfortunately, there are no updates to support duration yet, so you should follow the above work around. Also, I can not commit any date right now. Thanks.
10 |5000

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

Guy Boucher avatar image
Guy Boucher answered
Is this is a joke ?? No duration for the leaderboard. What can i say to my clients, sorry but Amazon fail with the leaderboard implementation, duration is not supported. Can you increase the priority for this feature ?. This is the minimum requirement for a leaderboard, it must support float and Integer.
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
We generally do not answer questions about future products or services, which this falls under. Please stay tuned on Mobile App Distribution Portal or Blogs ( https://developer.amazon.com/blog/index.html) for any updates related to this.
10 |5000

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

App Lover avatar image
App Lover answered
iOS supports all kinds of formats for leader boards. I too badly needed duration unit.
10 |5000

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

mound-he avatar image
mound-he answered
I need also a “DURATION” leaderboard !
10 |5000

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

M. Polito avatar image
M. Polito answered
I need duration format. I'm becoming mad, I've googled everything bit no answers. So if I needs to submit time I need to submit score ad seconds? Please give me an answer. Thanks
10 |5000

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