Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Xbox Live Il2Cpp UWP Build Environment Setup Problems

Discussion in 'Windows' started by hololabs-dev, Aug 14, 2018.

  1. hololabs-dev

    hololabs-dev

    Joined:
    Apr 6, 2018
    Posts:
    18
    I'm running Unity 2017.4.8f1 and I'm currently trying to build an Xbox Live project following the steps outlined here https://docs.microsoft.com/en-us/wi...started-with-partner/partner-unity-uwp-il2cpp

    It seems my Unity version is building il2cpp builds for Visual Studio 2015 and not 2017. I've selected the correct version in the build settings but I get this message when I open up the resulting solution in VS 2017, "Il2CppOutputProject\Il2CppOutputProject.vcxproj : warning : The build tools for Visual Studio 2015 (v140) cannot be found. Install Visual Studio 2015 (v140) to build using the Visual Studio 2015 (v140) build tools."

    How can I configure Unity to properly use Visual Studio 2017 to build the correct il2cpp output.

    Additionally when I add a text file for the xboxservices.config I get the following errors:
    Error Invalid token 'Text' at root level of document.
    Error XML document must contain a root level element.

    It looks like this
    Code (CSharp):
    1. {
    2.         "TitleId" : 1563044810,
    3.         "PrimaryServiceConfigId" : "12200100-88da-4d8b-af88-e38f5d2a2bca"
    4. }
    How do I get it show up as a json config and not xml?

    Thank you,

    Amesh
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    There's a combo box in the build window:

    upload_2018-8-13_18-48-32.png

    Are you getting those errors when building? Can you paste full build log from Visual Studio "Output" window? Try editing .vcxproj manually and make sure that the type for that file is "Content".
     
  3. hololabs-dev

    hololabs-dev

    Joined:
    Apr 6, 2018
    Posts:
    18
    Thanks, I have selected the appropriate versions from the combo boxes but I still get the message "Il2CppOutputProject\Il2CppOutputProject.vcxproj : warning : The build tools for Visual Studio 2015 (v140) cannot be found. Install Visual Studio 2015 (v140) to build using the Visual Studio 2015 (v140) build tools."
    unityUWPBuildSettings.PNG

    Here is how I've added the xboxservices.config. Rather than post the entire output I did a search for xboxservices and it doesn't appear in the log nor in the .vscproj. How would a manual entry look and should that be added to .vcxproj.filters as well?
    xboxservices.PNG
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Did you build your project to an empty folder after making that change? Unfortunately Unity will not overwrite your project because you might have modified it.

    That looks about right. I asked you to paste the log because I wondered where json vs xml error is coming from and how it looks like. But if it's not in the log, I guess there is no error?
     
  5. hololabs-dev

    hololabs-dev

    Joined:
    Apr 6, 2018
    Posts:
    18
    Tried a rebuild and it still gives me the warning. I can run a test project though so I'm just going to ignore this for now unless it causes more issues down the line.

    No error in the logs but when the example xbox live signin dialog appears I get the error code 0x80860003. According to this forum post deleting the temporary pfx file fixes the issue. It hasn't fixed it for me however. I've set up my PC to the correct sandbox and I'm using a test account that I've been using on the Xbox One and signed in to Xbox Live on the PC.

    Here is the output from my test project (of note there are a bunch of "Cannot find or open the PDB file" messages for a bunch of dll's. Not sure if I can ignore.):
    Code (CSharp):
    1. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\XboxUWPTest.exe'. Symbols loaded.
    2. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
    3. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
    4. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
    5. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
    6. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
    7. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
    8. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
    9. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\vccorlib140d_app.dll'. Symbols loaded.
    10. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
    11. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
    12. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\vcruntime140d_app.dll'. Symbols loaded.
    13. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\ucrtbased.dll'. Symbols loaded.
    14. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\msvcp140d_app.dll'. Symbols loaded.
    15. The thread 0x4730 has exited with code 0 (0x0).
    16. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
    17. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
    18. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Symbols loaded.
    19. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
    20. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. Symbols loaded.
    21. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Symbols loaded.
    22. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
    23. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
    24. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
    25. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
    26. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
    27. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.
    28. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'. Symbols loaded.
    29. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. Symbols loaded.
    30. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Symbols loaded.
    31. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Symbols loaded.
    32. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbols loaded.
    33. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbols loaded.
    34. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\CoreMessaging.dll'
    35. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
    36. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Symbols loaded.
    37. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'. Symbols loaded.
    38. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbols loaded.
    39. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Symbols loaded.
    40. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'. Symbols loaded.
    41. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
    42. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\UnityPlayer.dll'. Cannot find or open the PDB file.
    43. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
    44. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\WinPixEventRuntime_UAP.dll'. Cannot find or open the PDB file.
    45. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\D3D12.dll'. Symbols loaded.
    46. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\mfreadwrite.dll'. Symbols loaded.
    47. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Symbols loaded.
    48. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded.
    49. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\mfplat.dll'. Symbols loaded.
    50. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\XInputUap.dll'. Symbols loaded.
    51. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'. Symbols loaded.
    52. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\msvcp140_app.dll'. Symbols loaded.
    53. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\vcruntime140_app.dll'. Symbols loaded.
    54. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp110_win.dll'. Symbols loaded.
    55. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Symbols loaded.
    56. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Symbols loaded.
    57. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\RTWorkQ.dll'. Symbols loaded.
    58. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\threadpoolwinrt.dll'. Symbols loaded.
    59. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ExecModelClient.dll'. Symbols loaded.
    60. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Storage.ApplicationData.dll'. Symbols loaded.
    61. onecoreuap\base\appmodel\statemanager\winrt\lib\windows.storage.applicationdatafactory.server.cpp(202)\Windows.Storage.ApplicationData.dll!00007FFE80BBCCD1: (caller: 00007FFE80BB524F) ReturnHr(1) tid(f0) 8000000B The operation attempted to access data outside the valid range
    62. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded.
    63. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
    64. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
    65. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
    66. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\fltLib.dll'. Symbols loaded.
    67. [0.078798 / 0.085091] - Initializing Unity runtime
    68. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded.
    69. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'. Symbols loaded.
    70. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'. Symbols loaded.
    71. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'. Symbols loaded.
    72. [0.000502 / 0.122695] - AppCallbacks::SetCoreWindowEvents
    73. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'. Symbols loaded.
    74. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\WinMetadata\Windows.Foundation.winmd'. Module was built without symbols.
    75. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Perception.Stub.dll'. Cannot find or open the PDB file.
    76. Loading native plugins
    77.   Loading Microsoft.Xbox.Services.dll
    78. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\Microsoft.Xbox.Services.dll'. Cannot find or open the PDB file.
    79. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\cpprest140_uwp_2_9.dll'. Cannot find or open the PDB file.
    80. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\vccorlib140_app.dll'. Symbols loaded.
    81. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.26428.1_x64__8wekyb3d8bbwe\concrt140_app.dll'. Symbols loaded.
    82.   Loading cpprest140_uwp_2_9.dll
    83. Module information:
    84. Built with Compiler Ver '190023918'
    85. Built from '2017.4/release' branch
    86. Version is '2017.4.8f1 (5ab7f4878ef1)'
    87. Debug build
    88. Application type 'D3D'
    89. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Enumeration.dll'. Symbols loaded.
    90. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\deviceassociation.dll'. Symbols loaded.
    91. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'. Symbols loaded.
    92. OS 'Windows 10 (10.0.17134) 64bit'
    93. 'XboxUWPTest.exe' (Win32): Loaded 'E:\UNITY_DEV\Tutorials\XboxUWPTest\Build\build\bin\x64\Debug\AppX\GameAssembly.dll'. Symbols loaded.
    94. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbols loaded.
    95. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Symbols loaded.
    96. PlayerConnection initialized from E:/UNITY_DEV/Tutorials/XboxUWPTest/Build/build/bin/x64/Debug/AppX/Data (debug = 0)
    97. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Symbols loaded.
    98. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'. Symbols loaded.
    99. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.HostName.dll'. Symbols loaded.
    100. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'. Symbols loaded.
    101. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Symbols loaded.
    102. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Symbols loaded.
    103. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'. Symbols loaded.
    104. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'. Symbols loaded.
    105. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\rasadhlp.dll'. Symbols loaded.
    106. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'. Symbols loaded.
    107. PlayerConnection initialized network socket : 0.0.0.0 55270
    108. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\NapiNSP.dll'. Symbols loaded.
    109. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\pnrpnsp.dll'. Symbols loaded.
    110. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'. Symbols loaded.
    111. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winrnr.dll'. Symbols loaded.
    112. Multi-casting "[IP] 192.168.1.147 [Port] 55270 [Flags] 2 [Guid] 3240787201 [EditorId] 1256139967 [Version] 1048832 [Id] MetroPlayerX64(DESKTOP-79KBD2A) [Debug] 0" to [225.0.0.222:54997]...
    113. Started listening to [0.0.0.0:55270]
    114. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Symbols loaded.
    115. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
    116. [0.707290 / 0.949443] - Initialize
    117. [0.828095 / 0.950992] - AppCallbacks::InitializeD3DWindow
    118. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Symbols loaded.
    119. [0.959121 / 0.959121] - OnActivated event.
    120. [0.007761 / 0.966881] - OnVisibilityChanged event - Visible.
    121. [0.011422 / 0.978303] - OnWindowActivated event - CodeActivated.
    122. GfxDevice: creating device client; threaded=1
    123. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'. Symbols loaded.
    124. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvaowu.inf_amd64_261a1063b748fa57\nvldumdx.dll'. Cannot find or open the PDB file.
    125. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.
    126. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbols loaded.
    127. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Symbols loaded.
    128. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Symbols loaded.
    129. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\imagehlp.dll'. Symbols loaded.
    130. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
    131. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Symbols loaded.
    132. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvaowu.inf_amd64_261a1063b748fa57\nvwgf2umx.dll'. Cannot find or open the PDB file.
    133. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.
    134. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
    135. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
    136. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
    137. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
    138. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
    139. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
    140. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'. Symbols loaded.
    141. The thread 0xc98 has exited with code 0 (0x0).
    142. Direct3D:
    143.     Version:  Direct3D 11.0 [level 11.0]
    144.     Renderer: NVIDIA GeForce GT 650M (ID=0xfd5)
    145.     Vendor:   NVIDIA
    146.     VRAM:     995 MB
    147. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Symbols loaded.
    148. Initialize engine version: 2017.4.8f1 (5ab7f4878ef1)
    149. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'. Symbols loaded.
    150. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\DevDispItemProvider.dll'. Symbols loaded.
    151. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\DDORes.dll'. Symbols loaded.
    152. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\DefaultDeviceManager.dll'. Symbols loaded.
    153. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'. Symbols loaded.
    154. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'. Symbols loaded.
    155. The thread 0x5c84 has exited with code 0 (0x0).
    156. The thread 0x6320 has exited with code 0 (0x0).
    157. [0.000320 / 1.621624] - AppCallbacks::SetupInputEvents
    158. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'. Symbols loaded.
    159. onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\lib\simpleorientationsensor.cpp(134)\Windows.Devices.Sensors.dll!00007FFE3C222675: (caller: 00007FFE3C21F2BF) ReturnHr(1) tid(3be8) 80070490 Element not found.
    160. [0.023015 / 1.644776] - AppCallbacks::SetupOrientationSensorEvents
    161. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.applicationmodel.datatransfer.dll'. Symbols loaded.
    162. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\coml2.dll'. Symbols loaded.
    163. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
    164. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Symbols loaded.
    165. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'. Symbols loaded.
    166. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\edputil.dll'. Symbols loaded.
    167. [0.000015 / 1.708414] - AppCallbacks::InternalSetCursor
    168. [0.098554 / 1.713825] - AppCallbacks::Load
    169. Begin showing splash screen.
    170. [2.750233 / 3.728536] - Starting to load first level
    171. The following GlobalManagers were stripped from the build (Either because they're not used or not supported on this platform):
    172.  NetworkManager
    173.  MasterServerInterface
    174.  ClusterInputManager
    175.  UnityAnalyticsManager
    176.  CrashReportManager
    177.  PerformanceReportingManager
    178. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'. Cannot find or open the PDB file.
    179. UnloadTime: 3.020151 ms
    180. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreCommonProxyStub.dll'. Cannot find or open the PDB file.
    181. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Profile.SystemId.dll'. Cannot find or open the PDB file.
    182. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Clipc.dll'. Cannot find or open the PDB file.
    183. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Profile.HardwareId.dll'. Cannot find or open the PDB file.
    184. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Cannot find or open the PDB file.
    185. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\CryptoWinRT.dll'. Cannot find or open the PDB file.
    186. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\wininet.dll'. Cannot find or open the PDB file.
    187. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Cannot find or open the PDB file.
    188. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\tokenbinding.dll'. Cannot find or open the PDB file.
    189. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'. Cannot find or open the PDB file.
    190. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'. Cannot find or open the PDB file.
    191. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'. Cannot find or open the PDB file.
    192. [0.220702 / 3.949238] - First level loaded
    193. [0.000013 / 3.951585] - AppCallbacks::InternalSetCursor
    194. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\WinMetadata\Windows.System.winmd'. Module was built without symbols.
    195. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'. Symbols loaded.
    196. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\UserMgrProxy.dll'. Symbols loaded.
    197. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Security.Authentication.Web.Core.dll'. Cannot find or open the PDB file.
    198. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\AppXDeploymentClient.dll'. Cannot find or open the PDB file.
    199. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\StateRepository.Core.dll'. Cannot find or open the PDB file.
    200. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\vaultcli.dll'. Cannot find or open the PDB file.
    201. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\XblAuthTokenBrokerExt.dll'. Cannot find or open the PDB file.
    202. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\XblAuthManagerProxy.dll'. Cannot find or open the PDB file.
    203. The thread 0x6004 has exited with code 0 (0x0).
    204. The thread 0x60e4 has exited with code 0 (0x0).
    205. Setting up 2 worker threads for Enlighten.
    206.  Thread -> id: 62e4 -> priority: 1
    207.  Thread -> id: 620c -> priority: 1
    208. [0.258988 / 4.208227] - PerformUpdateAndRender started
    209. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Gaming.Input.dll'. Symbols loaded.
    210. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'. Symbols loaded.
    211. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'. Symbols loaded.
    212. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\ffbroker.dll'. Symbols loaded.
    213. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\deviceaccess.dll'. Symbols loaded.
    214. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\SensorsNativeApi.dll'. Cannot find or open the PDB file.
    215. ERROR FindDefaultInterface:CM_Get_Device_Interface_List_Size failed:0x00000000, InterfaceListSize = 1
    216. ERROR SensorOpenByType:Failed to open sensor error:0x00000490
    217. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(1) tid(6620) 80070005 Access is denied.
    218. End showing splash screen.
    219. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(2) tid(6620) 80070005 Access is denied.
    220. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(3) tid(6620) 80070005 Access is denied.
    221. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(4) tid(6620) 80070005 Access is denied.
    222. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(5) tid(6620) 80070005 Access is denied.
    223. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(6) tid(6620) 80070005 Access is denied.
    224. onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!00007FFE825F6B0C: (caller: 00007FFE825FA40C) ReturnHr(7) tid(6620) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(8) tid(6620) 80070005 Access is denied.
    225. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(9) tid(6620) 80070005 Access is denied.
    226. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.UserDeviceAssociation.dll'. Symbols loaded.
    227. 'XboxUWPTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryPS.dll'. Symbols loaded.
    228. onecoreuap\xbox\devices\api\winrt\pnpdevice.cpp(506)\Windows.Gaming.Input.dll!00007FFE825F7AB8: (caller: 00007FFE825EEBBC) ReturnHr(10) tid(6620) 80070005 Access is denied.
    229. onecoreuap\xbox\xblauth\tokenbrokerext\dll\xblauth.cpp(649)\XblAuthTokenBrokerExt.dll!00007FFE6B516F70: (caller: 00007FFE6B515E10) LogHr(1) tid(674c) 8004883A onecoreuap\xbox\xblauth\tokenbrokerext\dll\xblauth.cpp(385)\XblAuthTokenBrokerExt.dll!00007FFE6B5162EF: (caller: 00007FFE6B515837) ReturnHr(1) tid(674c) 80070490 Element not found.
    230. [0.252199 / 4.460425] - OnWindowActivated event - Deactivated.
    231. [4.865990 / 9.326415] - OnVisibilityChanged event - Hidden.
    232. [0.254303 / 9.580718] - OnSuspending event.
    233. Trimming D3D resources.
    234. The thread 0x99c has exited with code 0 (0x0).
    235. The thread 0x25ec has exited with code 0 (0x0).
    236. The thread 0x22d8 has exited with code 0 (0x0).
    237. The thread 0x58d8 has exited with code 0 (0x0).
    238. The thread 0x4fe0 has exited with code 0 (0x0).
    239. The thread 0x47f8 has exited with code 0 (0x0).
    240. The thread 0x6674 has exited with code 0 (0x0).
    241. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\imagehlp.dll'
    242. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\wintrust.dll'
    243. The thread 0x4614 has exited with code 0 (0x0).
    244. The thread 0x24a0 has exited with code 0 (0x0).
    245. The thread 0x66ac has exited with code 0 (0x0).
    246. The thread 0x3b04 has exited with code 0 (0x0).
    247. The thread 0x63b0 has exited with code 0 (0x0).
    248. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\deviceaccess.dll'
    249. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.StateRepositoryPS.dll'
    250. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\BCP47Langs.dll'
    251. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.Globalization.dll'
    252. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\CryptoWinRT.dll'
    253. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'
    254. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\XblAuthManagerProxy.dll'
    255. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\SensorsNativeApi.dll'
    256. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'
    257. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\setupapi.dll'
    258. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.System.Profile.HardwareId.dll'
    259. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.ApplicationModel.dll'
    260. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Clipc.dll'
    261. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.System.Profile.SystemId.dll'
    262. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\XblAuthTokenBrokerExt.dll'
    263. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'
    264. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\ffbroker.dll'
    265. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\DDORes.dll'
    266. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\Windows.Networking.HostName.dll'
    267. 'XboxUWPTest.exe' (Win32): Unloaded 'C:\Windows\System32\DefaultDeviceManager.dll'
    268.  
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Did this use to work with .NET scripting backend? When you run the game, open task manager and find it there. Right click and do open file location. Is xboxservices.config copied next to the executable?
     
  7. hololabs-dev

    hololabs-dev

    Joined:
    Apr 6, 2018
    Posts:
    18
    The xboxservices.config is getting copied there. So thats good news, however, I'm still not able to sign in successfully.

    I just tried it using the .NET backend and got the same result. I can select a test user and the correct name and image appear but when I click "Let's Play" I get the same error code 0x80860003.

    This is the test script provided from the documentation.
    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4. using System;
    5. public class XboxLiveTest : MonoBehaviour
    6. {
    7. #if ENABLE_WINMD_SUPPORT
    8.     Microsoft.Xbox.Services.System.XboxLiveUser m_user = new Microsoft.Xbox.Services.System.XboxLiveUser();
    9.  
    10.     Microsoft.Xbox.Services.XboxLiveContext m_xboxLiveContext = null;
    11.     Windows.UI.Core.CoreDispatcher UIDispatcher = null;
    12. #endif
    13.     string debugText = "";
    14.     // Use this for initialization
    15.     void Start()
    16.     {
    17. #if ENABLE_WINMD_SUPPORT
    18.         Windows.ApplicationModel.Core.CoreApplicationView mainView = Windows.ApplicationModel.Core.CoreApplication.MainView;
    19.         Windows.UI.Core.CoreWindow cw = mainView.CoreWindow;
    20.         UIDispatcher = cw.Dispatcher;
    21.         SignIn();
    22. #endif
    23.     }
    24.     // Update is called once per frame
    25.     void Update()
    26.     {
    27.     }
    28.     void OnGUI()
    29.     {
    30.         GUI.Label(new UnityEngine.Rect(10, 10, 300, 50), debugText);
    31.     }
    32. #if ENABLE_WINMD_SUPPORT
    33.     async void SignIn()
    34.     {
    35.         Microsoft.Xbox.Services.System.SignInResult result = await m_user.SignInAsync(UIDispatcher);
    36.         if (result.Status == Microsoft.Xbox.Services.System.SignInStatus.Success)
    37.         {
    38.             m_xboxLiveContext = new Microsoft.Xbox.Services.XboxLiveContext(m_user);
    39.             debugText += "\n User signed in: " + m_xboxLiveContext.User.Gamertag;
    40.         }
    41.  
    42.     }
    43. #endif
    44. }
    I ran the GameSave Unity Sample from here and I was able to save and load data. It also detected my user although only displayed the name. Tested in both .NET and IL2CPP (with some updates to the code). Not sure how to get the sign in dialog working or if this is just the behavior I can expect for testing?

    I see there is a new version of Unity out with some IL2CPP fixes, 2017.4.9f1, I'll give this a try maybe.
     

    Attached Files:

  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    I'm not familiar with this error, but I asked my contacts at Microsoft to comment.
     
  9. phipro

    phipro

    Microsoft Employee

    Joined:
    Aug 19, 2013
    Posts:
    123