Giter VIP home page Giter VIP logo

microsoft / xbox-live-unity-plugin Goto Github PK

View Code? Open in Web Editor NEW
167.0 42.0 62.0 3.37 MB

The Xbox Live Unity Plugin provides a way for developers in the Xbox Live Creators Program to quickly and easily integrate Xbox Live functionality into their Unity based game. For ID@Xbox developers, this Xbox Live Unity Plugin does not yet support all the features you will need. Instead, contact your Microsoft representative.

License: MIT License

C# 69.68% PowerShell 4.33% Batchfile 0.47% C++ 18.45% C 7.06%

xbox-live-unity-plugin's Introduction

Important Notes

The Xbox Live Unity plugin for the Xbox Creators Program is no longer in active development and will receive no further updates.

If you are building games via the ID@Xbox Program or Managed Partner Program (for Xbox Game Pass for PC on Windows 10/11, Xbox consoles (Xbox Series X|S, Xbox One), and cloud gaming with Xbox Game Pass Ultimate) and need to access Xbox Live features from Unity, you should use the GDK and GDK Unity plugins. You can find more information on the GDK at: https://aka.ms/gdk

If you are building games via the Xbox Creators Program, please be informed that in February 2021 we removed the requirement for UWP games to integrate with Xbox Live to publish to Xbox, and are phasing out software needed to support Xbox Live on UWP. The Store policy has been updated at UWP Store Policies

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

xbox-live-unity-plugin's People

Contributors

aablackm avatar adityatms avatar dependabot[bot] avatar jasonsandlin avatar jeffrey-shi avatar jplafonta avatar konh avatar msft-garrettw avatar msft-heba avatar rakhad avatar tautvydaszilys avatar v-dekennedy avatar veleek avatar zsoi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xbox-live-unity-plugin's Issues

Leaderboard stops working if you try to go into a scene twice that has it.

Downloaded latest release and I'm still having a problem with this.

This is what the error says:
MissingReferenceException: The object of type 'RectTransform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Leaderboard.LoadResult (Microsoft.Xbox.Services.Leaderboard.LeaderboardResult result) (at Assets/Xbox Live/Scripts/Leaderboard.cs:275)
Leaderboard.GetLeaderboardCompleted (System.Object sender, XboxLivePrefab.StatEventArgs e) (at Assets/Xbox Live/Scripts/Leaderboard.cs:246)
StatsManagerComponent.OnGetLeaderboardCompleted (XboxLivePrefab.StatEventArgs statEvent) (at Assets/Xbox Live/Scripts/Stats/StatsManagerComponent.cs:92)
StatsManagerComponent.Update () (at Assets/Xbox Live/Scripts/Stats/StatsManagerComponent.cs:60)

Canceling Login results crash rendering UserProfile unuseable

I am making a local multiplayer game and I am using the UserProfile prefab. In this particular case I start my game and when the first login prompt comes up instead of picking a user you just cancel the login.

Microsoft.Xbox.Services.XboxException: 'Xbox Live User object is required to be constructed by a Windows.System.User object for a multi-user application.'

At this point the script on UserProfile crashes and subsequent login request are not process, rendering the game stuck on the start screen.

I have had so many errors with this plugin like this, which cause serious stability problems. The real problem it seems is that UserProfile is very bad and handling and recovering from ordinary errors that would happen during a login. There are so many scenarios I have encounters it would be difficult to enumerate them all. Xbox rejects the login for some reason ie.e "Xbox Veto" profile is broken. Log in as a guest, broken. Log in 2 controllers with the same account broken. I am hoping that this is just some side effect of the Xbox test environment.

Worst yet these only seem to happen on the Xbox itself, where my debugging capabilities are very limited. Sorry to tack so much on this bug but I am not sure how else to get in contact with you.

XboxLiveUser SignInSilentlyAsync and SignInAsync sometimes never return

I am seeing circumstance where SignInSilentlyAsync and SignInAsync are failing to return. So far it seems to only happen on my Xbox One in developer mode. It also seems to be related to having an account that has not yet agreed to the terms of services pop-up, but it does not always happen.

When the problem occurs, SignInSilentlyAsync will never return a result. Calling SignInAsync pops up the black overlay with a progress circle and the screen never goes away.

Null Reference exception when starting SignInAndProfile.unity scene on a CLEAN machine

This has taken me a long time to diagnose. But now I've fixed it, I cannot replicate it on the same machine.
(Unity 2017.2b10 & VS 15.3)

Taking the approach of a brand new developer taking up XBL, with a clean machine that had not logged into a sandpit already, I went through the standard steps:

1: Create app on dashboard
2: Register it with XBL
3: Setup test account
4: Create new Unity game
5: Install XBL Unity package (1707 QFE 3)
6: Associate game with Sandpit and switch PC to use sandpit
7: Set UWP player settings to use .NET & .NET 4.6
8: Build Unity game using SignInAndProfile example (no changes)
9: Open built project and Run

This would consistently cause a Null Reference exception, stopping in the Task completion for signin.

Eventually, I deleted the 1707 release and used the 1704 asset, this WORKED.
Upgrading to 1707 or starting with a new solution with 1707 still works and signs in the Test User automatically. As if some step is cached or skipped because it has previously been logged on.

So, I don't know if it's a fault in the autologon, if waiting until the project is fully started before logging on (as click to logon in 1704 worked?) or some timing or whatever.

Just searching for some way to "Log off" the single user to try and replicate again.

Issues with 2017.3.0p3 patch for UWP build

I've tried using both .NET 3.5 and 4.6 with the newest Unity patch and this package. 3.5 gives me a ton of errors:

Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(5,24): error CS0234: The type or namespace name Tasks' does not exist in the namespace System.Threading'. Are you missing an assembly reference?
Assets/Xbox Live/Scripts/UserProfile.cs(9,24): error CS0234: The type or namespace name Tasks' does not exist in the namespace System.Threading'. Are you missing an assembly reference?
Assets/Xbox Live/Scripts/Leaderboard.cs(71,13): error CS0012: The type System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Assets/Xbox Live/Scripts/Leaderboard.cs(81,13): error CS0012: The type System.Collections.Generic.IEnumerable1<Microsoft.Xbox.Services.Social.Manager.XboxSocialUser>' is defined in an assembly that is not referenced. Consider adding a reference to assembly System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Assets/Xbox Live/Scripts/Leaderboard.cs(81,13): error CS0012: The type System.Collections.IEnumerable' is defined in an assembly that is not referenced. Consider adding a reference to assembly System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(11,57): error CS0246: The type or namespace name Task' could not be found. Are you missing an assembly reference?
Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(21,75): error CS0246: The type or namespace name Task' could not be found. Are you missing an assembly reference? Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(40,33): error CS0246: The type or namespace name Task' could not be found. Are you missing an assembly reference?
Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(60,12): error CS0246: The type or namespace name Task' could not be found. Are you missing an assembly reference? Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(87,33): error CS0246: The type or namespace name Task' could not be found. Are you missing an assembly reference?
Assets/Xbox Live/Scripts/UnityTaskExtensions.cs(91,16): error CS0246: The type or namespace name Task' could not be found. Are you missing an assembly reference? Assets/Xbox Live/Scripts/UserProfile.cs(102,64): error CS0012: The type System.EventArgs' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

4.6 gives me just one:

Assets\Xbox Live\Scripts\UserProfile.cs(148,49): error CS0234: The type or namespace name 'UserPicker' does not exist in the namespace 'Windows.System' (are you missing an assembly reference?)

Any ideas would be welcome.

Compile Issue with 0.5 release

I'm building for Windows 10 Universal il2cpp and I'm getting the following errors.

-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
Microsoft (R) Visual C# Compiler version 1.3.1.60616
Copyright (C) Microsoft Corporation. All rights reserved.

Assets\Xbox Live\Scripts\Leaderboard.cs(6,24): error CS0234: The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading' (are you missing an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(5,24): error CS0234: The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading' (are you missing an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(11,57): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(21,75): error CS0246: The type or namespace name 'Task<>' could not be found (are you missing a using directive or an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(60,12): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(40,33): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(91,16): error CS0246: The type or namespace name 'Task<>' could not be found (are you missing a using directive or an assembly reference?)
Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(87,33): error CS0246: The type or namespace name 'Task<>' could not be found (are you missing a using directive or an assembly reference?)

I've tried building for .net instead but get errors in game code and other plugins instead. Does this package support il2pp build type?

Featured Stat Short Timespan update variable type?

Does anyone know what the Stat needs to be for time leaderboards? I'm assuming it needs to be double but it would be nice if it was documented somewhere, like how google actually says--

Time leaderboards present scores in hours / minutes / seconds / hundredths of a second format. You must submit scores as milliseconds, so 66032 would be interpreted as 1:06.03.

Is it the same for these?

Unresolved P/Invoke method XsapiGlobalInitialize thrown with Master builds

Hello,

I use the latest stable version of Unity as well as the latest version of this plugin. When I compile a master build, I got this exception. Any idea to fix it?

Unresolved P/Invoke method 'XsapiGlobalInitialize!Microsoft.Xbox.Services.140.UWP.C.dll' in assembly 'Microsoft.Xbox.Services.UWP.CSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs.

Regards,

Can't Build UWP .Net 3.5

Hello,

I tried building through different ways but nothing is working.
I'm on Unity 2017.3.0, got all the latest Win10 SDK (10.14, 10.15, 10.16). I'm trying to build an UWP with .Net 3.5 Runtime, API compatibility 2.0, and I successfully builded an empty project which had the Xbox Live package installed.

But on my main project it doesn't work even if I configure the same checked boxes as they are in the default .dll files of the XBLpackage. I found a configuration that nearly worked for me as you can see.

boxerrors

And at the end, all the building loading is complete but it gives me these errors that break the build.

error1
error2

Any idea about this?

VisualStudio 2017 Bug - D3D - Master Mode - NavMesh Bug

While using Unity: 2017.1.0f3
and VisualStudio: 15.3.0

The navmesh works perfectly in Debug and Release mode.
Now if I set it to Master mode the NavMesh system doesn't work as intended.
The NavMesh agents are dismissing dynamically created obstacles.

Note I'm has been able to Deploy to the XBOX with Release and Debug mode. I'm using Master mode only to get rid of the 'Development Build' text

Also when I'm exporting to the UWP I'm using D3D option.
I'm using D3D options because I wanted to get rid of the big white square around the screen and pointer

Also, I'm changing the project.lock.json file to work. Otherwise, I get an error and doesn't compile:
Changed from UAP,Version=v10.0.xxxxxx to UAP,Version=v10.0
{
"version": 3,
"targets": {
"UAP,Version=v10.0": {
https://forum.unity3d.com/threads/unable-to-build-even-an-empty-project.488278/#post-3184871

VS info:
Microsoft Visual Studio Community 2017
Version 15.3.0
VisualStudio.15.Release/15.3.0+26730.3
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017 00369-60000-00001-AA585
Microsoft Visual Basic 2017

Visual C# 2017 00369-60000-00001-AA585
Microsoft Visual C# 2017

Application Insights Tools for Visual Studio Package 8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017 15.0.30726.0
ASP.NET Template Engine 2017

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service 2.0
JavaScript Language Service

JavaScript Project System 2.0
JavaScript Project System

JavaScript UWP Project System 2.0
JavaScript UWP Project System

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

NuGet Package Manager 4.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

TypeScript 2.3.4.0
TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Unity 3.3.0.0
Visual Studio Tools for Unity

Visual Studio Tools for Universal Windows Apps 15.0.26730.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Unity export settings:

unity export set

I'm not clicking on the Unity C# Projects because was giving me another error.

Thanks in advance

Cannot build .Net

When trying to build, using latest SDK and unity 5.6.1f1 (with .Net script backend , 4.6 or 2.0), it cannot build if the plugin is here (in an empty project).

At the end of build, this error :

Reference rewriter: Error: type Windows.System.UserPicker doesn't exist in target framework. It is referenced from Microsoft.Xbox.Services.UWP.CSharp.dll at System.Boolean Microsoft.Xbox.Services.System.UserImpl::get_IsMultiUserApplication().
Reference rewriter: Error: methodSystem.Boolean Windows.System.UserPicker::IsSupported()` doesn't exist in target framework. It is referenced from Microsoft.Xbox.Services.UWP.CSharp.dll at System.Boolean Microsoft.Xbox.Services.System.UserImpl::get_IsMultiUserApplication().

`

DisplayPicRaw field of XboxSocialUser is null

The DisplayPicRaw field of XboxSocialUser has just recently started coming back null.

After getting creating a social user group using CreateSocialUserGroupFromList and then getting an XboxSocialUser from the group with GetUser, the DisplayPicRaw is null.

This seems to have stopped working at the same time as the fix for a previous issue went live:

#142

Null Reference with connected storage in Unity

Hello I am getting this error message below and I'm not too sure why. Do you have an idea of where I should look? Also do you know if there is an example anywhere of using connected storage with Unity and the creator's program?

NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xbox.Services.ConnectedStorage.GameSaveHelper.d__5.MoveNext()
at UnityEngine.SetupCoroutine.InvokeMoveNext(IEnumerator enumerator, IntPtr returnValueAddress)
at UnityEngine.SetupCoroutine.$Invoke1InvokeMoveNext(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)

CreateSocialUserGroupFromList works on PC but fails on Xbox

The "SignInAndProfile" example is failing to work for me, but only on the Xbox. It successfully signs in the user, but throws an error when trying to create the social user group - required to get the URL for the user's gamer pic. The same code works fine on PC.

Here is the error that is thrown:

ArgumentException: You must add a local user before you can create a social group for them. Parameter name: user at Microsoft.Xbox.Services.Social.Manager.SocialManager.CreateSocialUserGroupFromList(XboxLiveUser user, List1 userIds)
at UserProfile.d__19.MoveNext()
at UnityEngine.SetupCoroutine.InvokeMoveNext(IEnumerator enumerator, IntPtr returnValueAddress)
at UnityEngine.SetupCoroutine.$Invoke1InvokeMoveNext(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
`

Exception whilst trying to open the Profile Picker

Hi there.

I am getting an exception:
AggregateException_ctor_DefaultMessage: Access is denied. (Excep_FromHResult 0x80070005)

When trying to open the profile picker. This is the same when I try to log in using the UserProfile prefab.
I have tried this on a couple of accounts now, any suggestions?

Issues with StatsManager - Unable to save/load

That StatsManager DoWork Method is working for the LocalUserAdded method, but is not being fired for actually get/set stats (based upon my experience currently with the StatsManager Object. It's also a bit confusing having the label "statName" as a parameter - as the available options in the configuration dashboard are "Display name" and "Id" - I assume this parameter should be statId? (I've tried both ways of passing)

Here's the initial Call

initial

Then in the start method of a script in a new scene, I attempt to load the stat, without success:
seperatescene

Configuration in the portal:
image

UserProfile prefab and signing out

I am using the 1707 QFE 3 release. Is the UserProfile prefab intended to handle users signing out? I see a XboxLiveUserOnSignOutCompleted function in the script, but it does not seem to be used anywhere.

Should I modify the UserProfile prefab, or is there some other way I should be handling a user signing out in the middle of the game? I am able to see the sign in/out through the Sign[In/Out]Completed of the XboxLiveUser class.

Asked another way, I want to allow a user to sign out and have another sign in, such as in a setup screen for multiple local players. Should I use the UserProfile prefab to do so, or should I do it some other way?

Thanks.

Can't create the XboxServices.config file

Hello,

I use the latest release of the plugin with Unity 2017.3 (.Net 3.5). I try to generate the XboxServices.config file but I get this error:

image

Any idea? Thank you.

Sign in check issue

Ok I get null reference exception when I use xboxlive.issigned. Is there any other way to check whether user is signed in?

Can't build the plugin

Hello,

I try to build the plugin from source to remove Unity.Compat.dll and Unity.Tasks.dll dependencies, to be able to use the plugin with .Net 4.6. The first step to do that is to compile the sources without any modifications. So I read the README.md and do the following things

  1. Clone the repository with submodules
  2. Install the Xbox Live extensions
  3. Run the Setup.ps1 script

That's the result

image

I use Visual Studio 2017, that's what is installed

image

Any idea? Have you plans to support .Net 4.6 now it's shipped in Unity 2017.1?

Thanks for you help.

Edit: I was able to build the C++ and C# libs by changing the VS target (v141) in the C++ solution.

Scripting Runtime Version: Experimental (.NET 4.6 Equivalent)

Hi,

If you set in "Player Settings -> Other Settings -> Configuration" Scripting Runtime Version to "Experimental (.NET 4.6 Equivalent)" and Api Compatibility Level to .NET 4.6, and try to make an UWP build, you will get this error's:

"Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(11,57): error CS0433: The type 'Task' exists in both 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"

"Assets\Xbox Live\Scripts\UnityTaskExtensions.cs(21,75): error CS0433: The type 'Task' exists in both 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"

I tried some solution, like in VS tried to set the Unity.Tasks alias to non global and after refer in the Extensions script but unity can't handle it so i can't figuring out what will solve the problem.

Any solution?

Creators Collection Sign-in on new Xbox Preview home screen is failing for my users

I have a few users who have to go through some weird actions to get the sign-in to work on the Xbox Preview home. I don't have Preview and can't verify.

The user shared a video, but it cuts out and only has audio where the sign in should happen:
https://onedrive.live.com/?authkey=%21AF1wemooNRlCu%5Fo&cid=96A6173D392240DE&id=96A6173D392240DE%2193621&parId=96A6173D392240DE%2189054&o=OneUp

I am using the standard UserProfile prefab with the latest Xbox Live Plugin. The only thing I have done differently is specify "joystick 1 button 3" as the input controller button. This works on the current Xbox home screen.

From the user: "we have to press A+B+LS to start a game but this has to be done quickly". All that I am doing in my code is waiting for the ProfileInfo to be active, and then I enable my menu, so I am not sure what any of these other presses would be doing.

Any help would be great!

Thanks,
Nick

Missing winmd File

I downloaded the package and when I tried to build it returned the error:
Assets/Xbox Live/Scripts/Leaderboard.cs: error CS0234 and similar for all components. I asked on the Unity forum and the package appears to missing the Microsoft.Xbox.Services.winmd file. I did a search for it in my Project Hierarchy and it is indeed missing.

TypeLoadException GameSaveProvider

I am trying to set up a Unity-title for XLC. Apart from the known issue regarding ILC2PP I am now facing a TypeLoadException when deploying to Mobile while using Connected Storage:

TypeLoadException: Requested Windows Runtime type 'Windows.Gaming.XboxLive.Storage.GameSaveProvider' is not registered.

Unfortunatly, Unity keeps being buggy when debugging UWP-builds, thus I cannot give a full stack trace. However the exception appears during initialization of the GameSaveHelper (GameSaveProvider.GetForUserAsync) and only appears on the mobile platform - PC works fine.

Stats / leaderboards stopped working in RETAIL

A few days ago I noticed that retrieval and persistence of stats stopped working for my title in RETAIL!?! This morning Leaderboards are no longer returning either. I haven’t submitted a new build to the store for a while, so no changes on my side.

I’m using Unity 2017.1.1f1. Unity plugin, 1707 QFE 3 Release. Slight mods to the the unity code side of the plugin to integrate with my game better, nothing major.

Not sure if it’s related, but I am also having issues with certification, getting failures because they can’t log in. I can log in just fine in RETAIL. Different users and different xboxes all work fine. The version that is failing cert now has been in the store for a while, and it is the version I am running without issue from here, so I’m not sure what’s going on.

I have been in contact with Stacey Haffner and she has suggested I raise this issue here and get fiddler traces, which I hope to do tonight.

Has anything changed server side lately which might explain this?

Thanks

Can't build the plugin with Unity 2017.2f1

Hello,

I try to make a build for the store but it's impossible because of errors during the begining of the build phase. My setup

  • Unity 2017.2f1
  • Using the .Net 3.5 Scripting backend
  • .Net 4.6 API compatibility
  • IL2CPP (because the Post Processing Stack v2 is incompatible without it)
  • Package 1707 QFE 4 Release

Errors

There are the error I got

Assets\Vendors\Xbox Live\Scripts\Stats\StatsManagerComponent.cs(40,34): error CS0012: The type 'List<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Collections, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Assets\Vendors\Xbox Live\Scripts\UserProfile.cs(184,65): error CS0012: The type 'Task<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Assets\Vendors\Xbox Live\Scripts\UserProfile.cs(190,61): error CS0012: The type 'Task<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Assets\Vendors\Xbox Live\Scripts\UserProfile.cs(202,17): error CS0012: The type 'Task' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Assets\Vendors\Xbox Live\Scripts\UserProfile.cs(217,21): error CS0012: The type 'List<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Collections, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

DLL configuration

Folder Libs\Unity

  • All DLLs are set to Editor in the included platforms

Folder Libs\UWP

  • All DLLs are set to Standalone and WSAPlayer

I hope we can fix that quickly because I can't continue my beta test on the Windows/Xbox platforms (I can remove the plugin but it can be nice to find a solution).

Thank you for your time.

Name vs. ID for stats

This is minor, but it was a bit confusing that Stats have a property called "ID", but in the Unity prefab it's called "Name" (I figured they were the same, but had to double check the code to make sure). Would it be possible to have the names be consistent?

Player stats are not stored in Xbox Live

Hello,

We have successfully integrated the plugin into our project and have the sign-in working fine, but we are now facing an issue with the player stats/leaderboards. In our case, we only have a high-score leaderboard. We set the value of the appropriate integer stat at the end of the game, but it looks like the stat is never actually stored in Xbox Live. Trying to retrieve the value of the stat on a subsequent launch of the game always returns 0. Also, the leaderboard returns nothing when playing from a build (it returns fake data when playing from the editor, though).

The way we are retrieving/setting the value of the stat is by means of the IntegerStat prefab, which is filled with the appropriate dashboard data. Then, at runtime, we simply do

var prevScore = stat.Value;

in order to retrieve the value of the stat and

stat.Value = newScore;

in order to update it.

I have several questions related to this:

  • Is there more to player stats/leaderboards or are we missing something?

  • Do we need to worry about explicitly calling StatsManagerComponent.RequestFlushToService or is that taken care of by the plugin? Even calling it right after changing the stat does not seem to make a difference.

  • When testing from the editor, should the fake data be modified in any way? What I mean is, if I am logged in as "Fake User 1" and change the value of a stat, should that be reflected in the fake values returned by the leaderboard or is the data always the same? Because in our case it definitely is always the same.

  • Do we need to worry about not sending the value of the stat if it is not higher than the current one or is that taken care of by the plugin?

Thank you in advance!

Add support for IL2CPP builds

Currently when you build using the IL2CPP Scripting Backend, Unity references the Mono C# framework libraries (e.g. mscorlib, etc.). As a result, in order to build as IL2CPP we need a version of the Xbox C# SDK that's built entirely against the Mono runtime. So, this won't support the current sign-in flow. Once we have a way to get this working properly we need to make sure we support IL2CPP.

Can't pass certification, how do I contact the certification team?

I released a game last month that was built using Unity. It uses the Unity Package to enable User Profile so users have the option of signing-in. The problem is the certification team keeps failing it for the following reason. If a user selects "NO" when initially prompted enable the permission to allow sign-in, the game allows them to continue playing. Someone on the certification team believes this to be in violation of the following:


App Policies: 10.13.5 Xbox Live Active User and Gamertag
Notes To Developer
Because your game uses Xbox Live, it must:
· Create at least one active user and sign the user into Xbox.
· Display the user’s Xbox gamertag as the primary display and profile name.
Please add this behavior and resubmit your game.

Steps to Reproduce:

  1. Launch the app.
  2. Select "No" for Xbox Live permission request to cancel sign-in.
  3. Notice that the gameplay should be blocked until signing the user into Xbox Live services. However, your app is still playable by cancelling Xbox Live login.

This is odd since the game uses absolutely no Xbox Live Services whatsoever. I only even enabled sign-in because I was emailed and informed that this had to be added to all Xbox Creator's Program games.

I then downloaded every free game on the Creator's Program marketplace to see how others implemented this feature. It turns out that every single game I checked implemented this exactly the way I did. You can decline the permission in any game on the store and keep playing.

Can I modify the Unity Package's Prefabs so that a user declining this permission gets kicked to a screen where the only option is to try again? Probably. I haven't looked through it to see what callbacks are available. Before I do that I would like to find out conclusively if this is an actual requirement and not just one person on the cert team who doesn't understand what they're doing (that I happen to keep getting). If this IS a requirement, then it might be a good idea to modify the Unity Package and/or instructions to make it compliant with this rule. Given that my past experiences with the certification team (while developing for windows and windows phone) have been nothing short of pure nightmares, I am forced to assume this is probably an error on their end.

That brings me to my initial questions. Is there any way to actually contact them? I've tried submitting Certification Report Feedback, but I never get a response.

System.AggregateException Exception when authenticating xbox users.

I keep getting this error when i try to sign in to xbox;

System.AggregateException: 'AggregateException_ctor_DefaultMessage'

DETAILS

InnerException {System.NullReferenceException: Arg_NullReferenceException
at Microsoft.Xbox.Services.System.TokenRequestResult..ctor(WebTokenRequestResult result)
at Microsoft.Xbox.Services.System.AccountProvider.d__5.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs:line 61
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs:line 187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs:line 156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs:line 128
at Microsoft.Xbox.Services.System.UserImpl.d__56.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs:line 61
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs:line 187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs:line 156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.Threading\src\System\Runtime\CompilerServices\TaskAwaiter.cs:line 128
at Microsoft.Xbox.Services.System.UserImpl.d__51.MoveNext()} System.Exception {System.NullReferenceException}

Association wizard crashes as soon as I try to enable XBOX live

Association wizard crashes as soon as I try to enable XBOX Live on my application. No particular error is shown just good old crash.
screen shot 08-22-17 at 09 44 am
Thus I decided to enable XBOX Live services from Windows Dashboard, oddly enough I can't find the settings in Dashboard too...
screen shot 08-22-17 at 09 48 am

StatsManager causing per frame memory allocations

I noticed some stuttering in my game, and profiled in the editor to see that the MockStatsManager.DoWork() function (called every Update) is doing per frame memory allocations with this.eventList.ToList(). Looking at the code, StatsManager will do this as well (although I haven't profiled that yet).

I am pretty sure this is my problem, causing unnecessary stuttering due to garbage collection.

Can the plugin be updated to avoid this?

XboxSocialUser.DisplayPicRaw returning invalid URL

I'm not sure that this is an issue with the plugin, because I think it was working last week, but the gamer pic url in DisplayPicRaw field of XboxSocialUser is currently not working properly.

This issue seems to be that the Url includes an "&mode=Padding" parameter. If this parameter is removed, the Url works correctly.

UserProfile and OnApplicationQuit()

In the UserProfile class:
private void OnApplicationQuit() { XboxLive.Instance.PresenceWriter.StopWriter(); }

Looking at the unity documentation https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnApplicationQuit.html
, it looks like this is not called for Windows Store Apps:

Note: On Windows Store Apps and Windows Phone 8.1 there's no application quit event, consider using OnApplicationFocus event when focusStatus equals false.

Does this apply for the Xbox deployed UWP apps?

If so, is it a problem this code is never called?

thanks

Association Wizard Crashing when using ID@Xbox account

Running the Association Wizard in an empty project is crashing during the "Enable Xbox Live Features" state. This happens while running on an administrator account, with Unity 5.5.1 and using Windows 10 version 10.0.14393 Build 14393 as well as SDK version that is installed with the Power Shell script that is in this package.

Guest Accounts don't seem to work at all

Guest accounts with multiple logins enable seem to simply crash the plugin (on the Xbox). Is there some trick to getting these to work?

Again the error handling for this is horrible. The script stops running on the prefab simply stops working for the duration of the session rendering the controller useless.

Detect if playing on Xbox One X

I apologize for asking a question that isn't directly related to the Xbox Live Unity Plugin, but does anyone know a reliable (or official) way to detect if someone is playing on an Xbox One X? I want to increase the framerate and/or other changes for One X users without making them toggle an option manually.

Latest Unity File From Releases Missing Scripts??

Hello, it seems like the unity package you all have for release is missing scripts. None of the scripts inside of unity after importing it has a way to update stats to xbox live or leaderboards. Looking at some of the scripts here in the git repository, it seems like one of the main ones is statmanager, which is missing after you import to Unity. Also the documentation for updating stats for leaderboards isn't really detailed here or here https://docs.microsoft.com/en-us/windows/uwp/xbox-live/get-started-with-creators/add-stats-and-leaderboards-in-unity. Or did I miss something somewhere? Thank you so much for all the hard work you all have put in thus far though.

Build errors after adding Unity package

After adding the Unity package I receive the following two errors when trying to build:

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83

and

UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\Assembly-CSharp.dll" --additionalreferences="Temp\StagingArea","C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.15063.0\Facade","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.SocialInfo.SocialInfoContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.DevicesLowLevelContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.Printers.PrintersContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Foundation.FoundationContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Foundation.UniversalApiContract\4.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Graphics.Printing3D.Printing3DContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Networking.Connectivity.WwanContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Services.Store.StoreContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Services.TargetedContent.TargetedContentContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.Profile.ProfileSharedModeContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.UI.ViewManagement.ViewManagementViewScalingContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Activation.ActivatedEventsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Activation.ActivationCameraSettingsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Activation.ContactActivatedEventsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Calls.LockScreenCallContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.FullTrustAppContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Preview.InkWorkspace.PreviewInkWorkspaceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Preview.Notes.PreviewNotesContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Resources.Management.ResourceIndexerContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Search.Core.SearchCoreContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Search.SearchContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.StartupTaskContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Wallet.WalletContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.Custom.CustomDeviceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.Portable.PortableDeviceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.Printers.Extensions.ExtensionsContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.Scanners.ScannerDeviceContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.Sms.LegacySmsApiContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Gaming.Input.GamingInputPreviewContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Gaming.Preview.GamesEnumerationContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Gaming.UI.GameChatOverlayContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Management.Deployment.Preview.DeploymentPreviewContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Management.Workplace.WorkplaceSettingsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Capture.AppBroadcastContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Capture.AppCaptureContract\4.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Capture.CameraCaptureUIContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Capture.GameBarContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Devices.CallControlContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.MediaControlContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Playlists.PlaylistsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Media.Protection.ProtectionRenewalContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Networking.Sockets.ControlChannelTriggerContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Perception.Automation.Core.PerceptionAutomationCoreContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Security.EnterpriseData.EnterpriseDataContract\4.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Security.ExchangeActiveSyncProvisioning.EasContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Services.Maps.GuidanceContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Services.Maps.LocalSearchContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.Profile.SystemManufacturers.SystemManufacturersContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.Profile.ProfileRetailInfoContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.UserProfile.UserProfileContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.UserProfile.UserProfileLockScreenContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.UI.ApplicationSettings.ApplicationsSettingsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.UI.Core.AnimationMetrics.AnimationMetricsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.UI.Core.CoreWindowDialogsContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.UI.Xaml.Hosting.HostingContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Web.Http.Diagnostics.HttpDiagnosticsContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.System.SystemManagementContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.Calls.CallsPhoneContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract\2.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract\3.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Devices.SmartCards.SmartCardEmulatorContract\4.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Embedded.DeviceLockdown.DeviceLockdownContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Phone.PhoneContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.Phone.StartScreen.DualSimTileContract\1.0.0.0","C:\Program Files (x86)\Windows Kits\10\References\10.0.15063.0\Windows.UI.WebUI.Core.WebUICommandBarContract\1.0.0.0" --platform="C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.15063.0\Facade\Windows.winmd" --dbg=pdb --support="Temp\StagingArea\WinRTLegacy.dll" --supportpartialns=Unity.Partial --system=System --lock=UWP\project.lock.json --alt=System.Xml.Serialization;System.Collections,System.Collections.NonGeneric;System.Reflection,System.Reflection.TypeExtensions;System.IO,System.IO.FileSystem;System.Net,System.Net.Primitives;System.Net.Sockets,System.Net.Primitives;System.Xml,System.Xml.XmlDocument;,Windows.winmd;,Windows.ApplicationModel.Calls.CallsVoipContract.winmd;,Windows.ApplicationModel.SocialInfo.SocialInfoContract.winmd;,Windows.Devices.DevicesLowLevelContract.winmd;,Windows.Devices.Printers.PrintersContract.winmd;,Windows.Foundation.FoundationContract.winmd;,Windows.Foundation.UniversalApiContract.winmd;,Windows.Graphics.Printing3D.Printing3DContract.winmd;,Windows.Networking.Connectivity.WwanContract.winmd;,Windows.Services.Store.StoreContract.winmd;,Windows.Services.TargetedContent.TargetedContentContract.winmd;,Windows.System.Profile.ProfileHardwareTokenContract.winmd;,Windows.System.Profile.ProfileSharedModeContract.winmd;,Windows.UI.ViewManagement.ViewManagementViewScalingContract.winmd;,Windows.ApplicationModel.Activation.ActivatedEventsContract.winmd;,Windows.ApplicationModel.Activation.ActivationCameraSettingsContract.winmd;,Windows.ApplicationModel.Activation.ContactActivatedEventsContract.winmd;,Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract.winmd;,Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract.winmd;,Windows.ApplicationModel.Calls.Background.CallsBackgroundContract.winmd;,Windows.ApplicationModel.Calls.LockScreenCallContract.winmd;,Windows.ApplicationModel.FullTrustAppContract.winmd;,Windows.ApplicationModel.Preview.InkWorkspace.PreviewInkWorkspaceContract.winmd;,Windows.ApplicationModel.Preview.Notes.PreviewNotesContract.winmd;,Windows.ApplicationModel.Resources.Management.ResourceIndexerContract.winmd;,Windows.ApplicationModel.Search.Core.SearchCoreContract.winmd;,Windows.ApplicationModel.Search.SearchContract.winmd;,Windows.ApplicationModel.StartupTaskContract.winmd;,Windows.ApplicationModel.Wallet.WalletContract.winmd;,Windows.Devices.Custom.CustomDeviceContract.winmd;,Windows.Devices.Portable.PortableDeviceContract.winmd;,Windows.Devices.Printers.Extensions.ExtensionsContract.winmd;,Windows.Devices.Scanners.ScannerDeviceContract.winmd;,Windows.Devices.Sms.LegacySmsApiContract.winmd;,Windows.Gaming.Input.GamingInputPreviewContract.winmd;,Windows.Gaming.Preview.GamesEnumerationContract.winmd;,Windows.Gaming.UI.GameChatOverlayContract.winmd;,Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract.winmd;,Windows.Management.Deployment.Preview.DeploymentPreviewContract.winmd;,Windows.Management.Workplace.WorkplaceSettingsContract.winmd;,Windows.Media.Capture.AppBroadcastContract.winmd;,Windows.Media.Capture.AppCaptureContract.winmd;,Windows.Media.Capture.CameraCaptureUIContract.winmd;,Windows.Media.Capture.GameBarContract.winmd;,Windows.Media.Devices.CallControlContract.winmd;,Windows.Media.MediaControlContract.winmd;,Windows.Media.Playlists.PlaylistsContract.winmd;,Windows.Media.Protection.ProtectionRenewalContract.winmd;,Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract.winmd;,Windows.Networking.Sockets.ControlChannelTriggerContract.winmd;,Windows.Perception.Automation.Core.PerceptionAutomationCoreContract.winmd;,Windows.Security.EnterpriseData.EnterpriseDataContract.winmd;,Windows.Security.ExchangeActiveSyncProvisioning.EasContract.winmd;,Windows.Services.Maps.GuidanceContract.winmd;,Windows.Services.Maps.LocalSearchContract.winmd;,Windows.System.Profile.SystemManufacturers.SystemManufacturersContract.winmd;,Windows.System.Profile.ProfileRetailInfoContract.winmd;,Windows.System.UserProfile.UserProfileContract.winmd;,Windows.System.UserProfile.UserProfileLockScreenContract.winmd;,Windows.UI.ApplicationSettings.ApplicationsSettingsContract.winmd;,Windows.UI.Core.AnimationMetrics.AnimationMetricsContract.winmd;,Windows.UI.Core.CoreWindowDialogsContract.winmd;,Windows.UI.Xaml.Hosting.HostingContract.winmd;,Windows.Web.Http.Diagnostics.HttpDiagnosticsContract.winmd;,Windows.System.SystemManagementContract.winmd;,Windows.ApplicationModel.Calls.CallsPhoneContract.winmd;,Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.winmd;,Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract.winmd;,Windows.Devices.SmartCards.SmartCardEmulatorContract.winmd;,Windows.Embedded.DeviceLockdown.DeviceLockdownContract.winmd;,Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract.winmd;,Windows.Phone.PhoneContract.winmd;,Windows.Phone.StartScreen.DualSimTileContract.winmd;,Windows.UI.WebUI.Core.WebUICommandBarContract.winmd --ignore=System.IConvertible,mscorlib.
Error: type Microsoft.Xbox.Services.Leaderboard.LeaderboardResult doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at Leaderboard.
Error: type Microsoft.Xbox.Services.XboxLiveUser doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void Leaderboard::Start().
Error: type Microsoft.Xbox.Services.XboxLiveUser doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void Leaderboard::Start().
Error: type Microsoft.Xbox.Services.XboxLiveUser doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void Leaderboard::Start().
Catastrophic failure while running rrw: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Xbox.Services.UWP.CSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
at Unity.NuGetAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
at Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name)
at Mono.Cecil.MetadataResolver.Resolve(TypeReference type) in C:\buildslave\cecil\build\Mono.Cecil\MetadataResolver.cs:line 106
at Mono.Cecil.MetadataResolver.Resolve(MethodReference method) in C:\buildslave\cecil\build\Mono.Cecil\MetadataResolver.cs:line 216
at Mono.Cecil.MethodReference.Resolve() in C:\buildslave\cecil\build\Mono.Cecil\MethodReference.cs:line 170
at Unity.ReferenceRewriter.RewriteTyp

Any ideas where I should start looking for a solution?

Throw new Exception ("Sign in Failed"); is an exception that can not be caught and the game may stop.

Hi, everyone,

I am seeing commitment (0d0af23).
I am going to develop Xbox Live, but I've been worried about looking at the source code.
That is, in the SignInAsync method of UserProfile.cs, processing to raise the following exception is done.

https://github.com/Microsoft/xbox-live-unity-plugin/blob/master/Assets/Xbox%20Live/Scripts/UserProfile.cs
(Line 101-105)

        // Throw any exceptions if needed.
        if (signInTask.Result.Status != SignInStatus.Success)
        {
            throw new Exception("Sign in Failed");
        }

Probably an exception is thrown when the sign-in fails for any reason.

Because I can not catch this exception, I am worried that the application (game) will stop and the error message will continue to be displayed to the user.

If you have problems like the above, please fix it.
Do you have any plans to change this sign-in process?

For example, in order to deal with this issue, XboxLive.cs which forked XboxLive.cs of the previous commit (e23e0a9) is published by "nakfiv".
https://github.com/nakfiv/XboxLiveConnect/blob/master/Assets/Xbox%20Live/Scripts/XboxLive.cs
(Line 84-89)

XBOX LIVE CREATOR SAVE FUNCTIONALITY PROBLEM- PLEASE HELP

Hello,
We are new to Xbox Live Creator program and facing some issues related to Save Functionality. We are using Unity Save data plugin provided by Xbox Live Creator website.

Issue Faced : We are unable to save our strings value , please tell how to retrieve those values associated with those strings. Please provide link to video tutorial if possible.

Please help asap, as only this issue is causing our game to be not releasing on time.

Thanks

signin

Is there a way to signin and add a localuser without having to use the userprofile script?

Xbox Live user sign-in (Un-solved)

Hello,
I have upgraded my project to Unity 2017.2f3 and Windows Fall CC Update, and now I'm getting error ArgumentNullException: Argument cannot be null.
Parameter name: s at UserProfile error here around 218 line:
private IEnumerator LoadProfileInfo()
{
--> var userId = ulong.Parse(this.XboxLiveUser.User.XboxUserId);

I get the message in the Unity editor and when I build and playtest the game. I am using the latest plug-in. Not sure if this is a new bug or if I done something wrong, but there was no issues before I upgraded.

Thanks,
John

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.