locked
Unable to get leaderboard RRS feed

  • Question

  • I am trying to incorporate leaderboards into my UWP game. I am using C# and XAML to create my game. I have created a high score leaderboard and have pushed it with the test button in the dash board.

    I have pushed a record to the leaderboard by calling:

    _stats.SetStatisticIntegerData(XboxUser, "score", XP);
    _stats.RequestFlushToService(XboxUser, true);

    I receive a successful response from the server.

    When I try to retrieve the leaderboard from the server by the following:

    _stats.GetLeaderboard(XboxUser, "score", new LeaderboardQuery());

    I get back a successful response.

    The problem is I do not receive any rows with my response. I get back one column with the displayName of High Score, but no rows.

    Does anyone know what I am doing incorrectly?

    Wednesday, December 6, 2017 6:27 AM

Answers

  • Hi Travis,

    This question is already being addressed in the Stack Overflow forum.

    Kam- Xbox Live Forum Moderator

    Wednesday, December 6, 2017 7:19 PM
  • The Actual answer.

     Before calling add static or getting the Leaderboard you have to wait until the StatisticEventType.LocalUserAdded Event completes.

    • Marked as answer by travis.pettry Saturday, December 9, 2017 6:19 PM
    Saturday, December 9, 2017 6:19 PM

All replies

  • Hi Travis,

    This question is already being addressed in the Stack Overflow forum.

    Kam- Xbox Live Forum Moderator

    Wednesday, December 6, 2017 7:19 PM
  • The Actual answer.

     Before calling add static or getting the Leaderboard you have to wait until the StatisticEventType.LocalUserAdded Event completes.

    • Marked as answer by travis.pettry Saturday, December 9, 2017 6:19 PM
    Saturday, December 9, 2017 6:19 PM