Sign In Register

How can we help you today?

Start a new topic
Answered

Leaderboard sort

Hi,

I'm doing the tests on the test harness and I'm having problems with the Leaderboard.

I noticed that if I change the score order Configurator -> Leaderboards -> Segment configuration -> Sort (DESC to ASC or vice versa) When I run the JSON script from the test harness, Test Harness -> Leaderboards -> LeaderBoardDataRequest ... the result is:


{
 "@class": ".LeaderboardDataResponse",
 "data": [],
 "leaderboardShortCode": "High_Score_Leaderboard"
}


instead of:


{
 "@class": ".LeaderboardDataResponse",
 "data": [
  {
   "userId": "583c405ed23ed2049f1094ff",
   "SCORE": 10,
   "when": "2016-11-28T14:34Z",
   "city": "Latina",
   "country": "IT",
   "userName": "provauno",
   "externalIds": {},
   "rank": 1
  },
  {
   "userId": "583c4079d23ed2049f10aae5",
   "SCORE": 20,
   "when": "2016-11-28T14:34Z",
   "city": "Latina",
   "country": "IT",
   "userName": "provadue",
   "externalIds": {},
   "rank": 2
  }
 ],
 "leaderboardShortCode": "High_Score_Leaderboard"
}


as if users are disconnected. Also restoring the original display order, does not change anything.


Can you help me to understand please :) ?


Thanks

Fabio




Best Answer

Hi Fabio,


Editing your leaderboard configuration like this will result in the entries being dropped. This is the expected behavior here. If you have any further questions just let us know.


Thanks,

Liam


Answer

Hi Fabio,


Editing your leaderboard configuration like this will result in the entries being dropped. This is the expected behavior here. If you have any further questions just let us know.


Thanks,

Liam

Ok, Thanks.


Regards

Login to post a comment