Setting a leaderboa...
 
Notifications
Clear all

Setting a leaderboard score higher than 10000 sets the score to 9999.999999?

3 Posts
2 Users
0 Reactions
667 Views
(@keyboardminer)
Posts: 9
Active Member
Topic starter
 

Hi. The leaderboard I'm testing is an ascending float leaderboard. Is this expected behavior? Am I supposed to pre-multiply the score to account for this behavior? Could this be some PHP module thing again?

 
Posted : 13/05/2017 9:28 pm
(@keyboardminer)
Posts: 9
Active Member
Topic starter
 

I noticed that submitting a large integer doesn't seem to cause any problems so on the backend both floats and integers seems to be handled as longs. Is that correct? I submitted 10000000 as a score to an integer leaderboard and it didn't have any problems.

 
Posted : 13/05/2017 9:40 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

I have sent the update 1.0.1b to increase the size of the table field ValueFloat, you can use the new auto-update feature (from web admin > Tools > Upgrade).

With this change I was able to store a value of 10000.5 with the following code:

CombuManager.platform.ReportScore ("10000.500", "2", (bool success) => {
   Debug.Log(success);
});

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 14/05/2017 12:44 am
Share: