XboxLiveDevelopment


LeaderBoard Display


Hello,
I am Using Xbox live creator program to display Leaderboard.
After Signing It doesnot show me the LeadereBoard regarding that player.
I have added IntegerStat prefab to the LeaderBoard Class for showing Coind in my game.
Before we move forward, let's double check the following:
Just to make sure we're looking at the same thing, are you using the most recent Xbox Live Unity Plugin? Latest Release:
https://github.com/Microsoft/xbox-live-unity-plugin/releasesDo you by any chance have the XboxLiveServices prefab on the scene yet? It's a required prefab as it allows you to toggle on and off errors and logs thrown by the various
Xbox Live prefabs. Please make sure you enable the logs as it should help us debug.
Now let's look at the Stat and Leaderboard details and their behavior within the Unity Editor and UWP Modes:
Within the Unity Editor:
When you run the scene in the Unity Editor, does the Leaderboard show any entries? It should be showing some fake entries in there. This should help us verify that initial
configurations are working correctly. Regarding the StatPanel, if you're running the scene in the editor then the data it's showing does reset every time you restart as it's not actually calling the Xbox Live
Services. Once you're running in the UWP mode, that's when the plugin starts talking to the Xbox Live Services for actual data.
Within UWP Mode:
After building and exporting the project as a UWP (as indicated at:
https://docs.microsoft.com/en-us/windows/uwp/xbox-live/get-started-with-creators/configure-xbox-live-in-unity), that's when the game will start talking to the Xbox Live Services for real data.
Every time you update your stats (increment, decrement, etc), the values get updated locally and then this data gets flushed every 5 minutes by the StatManagerComponent script.
If your game ends before the 5 minutes, you need to make sure to flush the data manually first to make sure you don't lose that progress. To do that, you'll need to call the following method on the
StatManagerComponent making sure to call it for the XboxLiveUser the stat is being written for. In the case of a Single User game, you could use:
statManagerComponent.RequestFlushToService(XboxLiveUserManager.Instance.GetSingleModeUser().User,
true);
My suspicion is the stats updated weren't being flushed in time so when you restart the game, the stats start again at zero and no leaderboard entries get persisted.
Hello,
I am Using Xbox live creator program to display Leaderboard.
After Signing It doesnot show me the LeadereBoard regarding that player.
I have added IntegerStat prefab to the LeaderBoard Class for showing Coins Collected in my game.
Hi Saurabhrun,
Could you share a bit of how you're setting up the Leaderboard?
Do you have a UserProfile on the scene? What Leaderboard Type did you select in the Inspector of the Leaderboard prefab? Global vs Friends vs FavoritesAlso, have you submitted any values to the stat yet? If you use the StatPanel with your Integer Stat, do you see the number changing? Do you see values in it when you restart the game?
Yes I do have a UserProfile in my scene.
After SignIn, I get no Values displayed.
My Leaderboard Type is Global
Yes I have used StatPanel to show my IntegerStat values which are changing but they initialise from 0 after restart
Before we move forward, let's double check the following:
Just to make sure we're looking at the same thing, are you using the most recent Xbox Live Unity Plugin? Latest Release:
https://github.com/Microsoft/xbox-live-unity-plugin/releasesDo you by any chance have the XboxLiveServices prefab on the scene yet? It's a required prefab as it allows you to toggle on and off errors and logs thrown by the various
Xbox Live prefabs. Please make sure you enable the logs as it should help us debug.
Now let's look at the Stat and Leaderboard details and their behavior within the Unity Editor and UWP Modes:
Within the Unity Editor:
When you run the scene in the Unity Editor, does the Leaderboard show any entries? It should be showing some fake entries in there. This should help us verify that initial
configurations are working correctly. Regarding the StatPanel, if you're running the scene in the editor then the data it's showing does reset every time you restart as it's not actually calling the Xbox Live
Services. Once you're running in the UWP mode, that's when the plugin starts talking to the Xbox Live Services for actual data.
Within UWP Mode:
After building and exporting the project as a UWP (as indicated at:
https://docs.microsoft.com/en-us/windows/uwp/xbox-live/get-started-with-creators/configure-xbox-live-in-unity), that's when the game will start talking to the Xbox Live Services for real data.
Every time you update your stats (increment, decrement, etc), the values get updated locally and then this data gets flushed every 5 minutes by the StatManagerComponent script.
If your game ends before the 5 minutes, you need to make sure to flush the data manually first to make sure you don't lose that progress. To do that, you'll need to call the following method on the
StatManagerComponent making sure to call it for the XboxLiveUser the stat is being written for. In the case of a Single User game, you could use:
statManagerComponent.RequestFlushToService(XboxLiveUserManager.Instance.GetSingleModeUser().User,
true);
My suspicion is the stats updated weren't being flushed in time so when you restart the game, the stats start again at zero and no leaderboard entries get persisted.

Related Links

How to have a best time leaderboard for each of my 90 levels?
XBOX LIVE CREATOR SAVE FUNCTIONALITY PROBLEM- PLEASE HELP
Test account on Xbox One
Trying to add a new Xbox Live test account results in error
Creators Program - Unity Plugin MultiUser Example Signin Access Denied
How to reset a leaderboard?
can i use the xbox live api for social app
Tutorial on How to integrate Xbox Live SDK with Creators Program
[UWP] [Xbox One] I am using Monogame/Visual Studio/C# How do I integrate Xbox Live into it properly?
Xbox Live leaderboard in UWP game returns with error 404
Some clarification please...
members of live creatros program cannot publish game for xbox one? - concept approval requires ID
Featured Stat not visible in the Windows 10 Xbox App
At which stage of the game should I block players?
Running into issues Visual Studio 2017 ,and Deployment (Xbox One Creator's Collection Game)
Creators Program New Releases at bottom of Xbox store page?

Categories

MSDN
Using Forums
Visual Studio Languages
SharePoint
Apps for Office and Sh...
Visual FoxPro
Architecture
BizTalk Server
Commerce Server
Data Platform Developm...
Smart Device Development
Windows Forms
ScriptJunkie
WebsitePanel
Bing Maps
Office Live Development
Exchange Server
Archived Forums E-H
In-App Advertising (Ad...
Archived Forums
Virtualization
Forums Issues (not pro...
Off-Topic Posts (Do No...
Visual Studio General ...
Visual Studio LightSwi...
Test Tools in Visual S...
App & Ad Unit Management
XboxLiveDevelopment
Network Monitor
Windows Desktop Perfmo...
Windows Desktop Winsoc...
Windows Desktop Ribbon...
Open XML Format SDK
SharePoint 2013 - Setu...
Azure Storage
Pricing & Billing
Azure Active Directory
Azure App Service - We...
Machine Learning
Azure Mobile Engagement
Azure Analysis Services
Azure Time Series Insi...
Visual Studio Visualiz...
Reactive Extensions (Rx)
TPL Dataflow
Debugger Canvas
Transact-SQL
SQL Server Express
SQL Server Distributed...
Standard 7: Misc
Windows Embedded Compa...
SQL Server 2012 Databa...
Windows Forms Data Con...
Server Virtualization
Windows Live ID: Devel...
CRM Development
MSDN and TechNet Searc...
Bing Maps for Windows ...
Bing Maps Web Controls
Microsoft Lync Persist...
Silverlight Installati...
WCF RIA Services with ...
Search Server: Install...
Visual Studio Report C...
Project Online General...
.NET Framework 4: Wind...
.NET Framework Network...
.NET Platform Architec...
ADO.NET Entity Framewo...
Building Development a...
Deep Zoom Composer
Dynamic Languages on .NET
Expression Community S...
Game Technologies: Aud...
Game Technologies: Dir...
Office Development wit...
Office Live Small Busi...
Phoenix
Popfly Bugs and Sugges...
Search Server: Federation
Search Server: Frequen...
Small Business Applica...
Storage Platform – ATA
SQL Server 2014 Data Q...
SQL Server 2014 High A...
SQL Server 2014 In-Mem...
Using Visual Round Tri...
Visual Basic IDE
Visual Basic Language
Visual C++ Express 200...
Visual Studio 2008 (Pr...
Visual Studio 2008 Exp...
Visual Studio 2008 SP1...
Visual Studio Database...
Visual Studio Editor i...
Visual Studio LightSwi...
Visual Studio UI Autom...
Visual Studio Web Perf...
Windows MultiPoint Mou...
Windows SideShow Devel...
Working with Data and ...
Building Windows Store...
XML in Visual Studio 2...
Kinect for Windows v2 SDK
.NET Native Preview
Azure N-Series Virtual...
Microsoft Partner Cent...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile