首页 文章

无法使用沙箱登录Xbox Live测试帐户

提问于
浏览
1

我们将Unity3D游戏移植到UWP,我们遇到了与Xbox Live沙盒环境相关的障碍 . 我们做了以下事情:

  • 在Windows Dev Dashboard中创建了新的UWP应用程序

  • 请求访问Xbox Live Creators程序

  • 在仪表板中授权我们的Xbox Live帐户

  • 在Xbox One控制台和Windows 10 PC中设置给定的沙箱ID

  • 将我们的应用与Visual Studio中的商店相关联

  • 在项目中创建了xboxservices.config文件,并将其Build Action设置为Content并复制到Output Directory以便始终复制

{
  "TitleId" : 1859112156,
  "PrimaryServiceConfigId" : "00000000-0000-0000-0000-00006ecfccdc"
}

完成所有这些步骤后,我们遇到以下问题:

On Xbox One

当我们尝试使用XboxLiveUser.SignInAsync函数(来自Microsoft.Xbox.Services.System命名空间)登录游戏中的Xbox Live时,我们遇到以下异常:

System.InvalidOperationException: Arg_InvalidOperationException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SharedLibrary!<BaseAddress>+0x4511ee
at SharedLibrary!<BaseAddress>+0x451168
...

On Windows 10 PC

当我们尝试在游戏中登录Xbox Live时,我们会弹出错误0x87DD0005
enter image description here

1 回答

  • 2

    由于您正在为您的游戏使用Xbox Live Creators程序,因此您应该将 "XboxLiveCreatorsTitle" 添加到您的xboxservices.config文件中

    {
        "TitleId": 1859112156,
        "PrimaryServiceConfigId": "00000000-0000-0000-0000-00006ecfccdc",
        "XboxLiveCreatorsTitle": true
    }
    

    请参阅Associate your Visual Studio project with your Xbox Live enabled title

    对于Xbox Live Creators程序中的 Headers ,必须将XboxLiveCreatorsTitle设置为true,因为它会更改登录方法以适用于Xbox Live Creators程序中的 Headers .

    此外,你也可以检查你SandboxTest accounts . 切换PC的开发沙箱后,您可以先使用测试帐户登录 Xbox App ,看看它们是否运行正常 .

    而且,在测试之前,不要忘记通过单击Xbox Live配置页面上的 Test 按钮 publish your Xbox Live service configuration .

相关问题