Problem fetching le...
 
Notifications
Clear all

Problem fetching leaderboard scores

4 Posts
2 Users
0 Reactions
643 Views
(@cygnusprojects)
Posts: 6
Active Member
Topic starter
 

I was wondering what can be wrong. I'm using version 2.1.9 on my server and the latest unity package (also 2.1.9). I've setup a leaderboard with Id 1 and using the CombuDemo scene to test thing out. I altered the demo code so that in case a user has a successfull login the leaderboard with id 1 is fetched.

Added this code in the CiombuDemo.cs:

protected override void OnUserLogin(bool success, string error)
    {
        base.OnUserLogin(success, error);
        if (success)
        {
            Debug.Log("Loading leaderboard scores.");
            LeaderboardsScores();
        }
    }

Although there isn't any error the data isn't returned by the server (the correct leaderboard id is passed).

I have to upload a new highscore first before the actual fetching is working fine. I had the idea that if a user logs in he can see the newest highscores but for some reason I don't grasp I can't seem to get this working.

Anyone any idea what I'm missing here?

 
Posted : 05/09/2016 9:34 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Your code is correct and I have no issues when I run it, so what is sent to console log when you add Debug.Log(scores.Length) in the callback of LeaderboardsScores?

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 06/09/2016 11:38 am
(@cygnusprojects)
Posts: 6
Active Member
Topic starter
 

I've send a reply using PM (production server mentions in the log ;-))

 
Posted : 06/09/2016 7:30 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

FYI: the problem was that the file crossdomain.xml was not moved to the root of the domain.

@Everyone: please remember that this file must reside in the root folder of your webserver domain, else the calls to the webservices would usually fail.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 09/09/2016 5:01 pm
Share: