无法使用沙盒登录 Xbox Live 测试帐户
Can't sign into Xbox Live test account using sandbox
我们正在将我们的 Unity3D 游戏移植到 UWP,我们遇到了与 Xbox Live 沙盒环境相关的障碍。
我们做了以下事情:
- 在 Windows 开发仪表板中创建了新的 UWP 应用程序
- 请求访问 Xbox Live 创意者计划
- 在控制面板中授权了我们的 Xbox Live 帐户
- 在 Xbox One 控制台中设置给定的沙盒 ID & Windows 10 台电脑
- 将我们的应用与 Visual Studio 中的商店相关联
在项目中创建了 xboxservices.config 文件并将其 Build Action 设置为 内容 和 复制到输出目录 到 始终复制
{
"TitleId" : 1859112156,
"PrimaryServiceConfigId" : "00000000-0000-0000-0000-00006ecfccdc"
}
完成所有这些步骤后,我们遇到了以下问题:
在 Xbox One 上
当我们尝试使用 XboxLiveUser.SignInAsync 函数在游戏中登录 Xbox Live 时(来自 Microsoft.Xbox.Services.System命名空间)我们得到以下异常:
System.InvalidOperationException: Arg_InvalidOperationException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SharedLibrary!<BaseAddress>+0x4511ee
at SharedLibrary!<BaseAddress>+0x451168
...
上 Windows 10 台电脑
当我们尝试在游戏中登录 Xbox Live 时,弹出错误 0x87DD0005
既然您正在为您的游戏使用 Xbox Live 创意者计划,那么您应该将 "XboxLiveCreatorsTitle" 添加到您的 xboxservices.config 文件类似
{
"TitleId": 1859112156,
"PrimaryServiceConfigId": "00000000-0000-0000-0000-00006ecfccdc",
"XboxLiveCreatorsTitle": true
}
参考自Associate your Visual Studio project with your Xbox Live enabled title:
- XboxLiveCreatorsTitle must be set to true for titles in the Xbox Live Creators Program as it changes the sign-in method to work for titles in the Xbox Live Creators Program.
此外,你也可以检查你Sandbox and Test accounts。切换 PC 的开发沙盒后,您可以先使用测试帐户登录 Xbox 应用程序,看看它们是否运行良好。
此外,在测试之前,不要忘记通过单击 Xbox 上的 测试 按钮发布您的 Xbox Live 服务配置实时配置页面。
我们正在将我们的 Unity3D 游戏移植到 UWP,我们遇到了与 Xbox Live 沙盒环境相关的障碍。 我们做了以下事情:
- 在 Windows 开发仪表板中创建了新的 UWP 应用程序
- 请求访问 Xbox Live 创意者计划
- 在控制面板中授权了我们的 Xbox Live 帐户
- 在 Xbox One 控制台中设置给定的沙盒 ID & Windows 10 台电脑
- 将我们的应用与 Visual Studio 中的商店相关联
在项目中创建了 xboxservices.config 文件并将其 Build Action 设置为 内容 和 复制到输出目录 到 始终复制
{ "TitleId" : 1859112156, "PrimaryServiceConfigId" : "00000000-0000-0000-0000-00006ecfccdc" }
完成所有这些步骤后,我们遇到了以下问题:
在 Xbox One 上
当我们尝试使用 XboxLiveUser.SignInAsync 函数在游戏中登录 Xbox Live 时(来自 Microsoft.Xbox.Services.System命名空间)我们得到以下异常:
System.InvalidOperationException: Arg_InvalidOperationException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SharedLibrary!<BaseAddress>+0x4511ee
at SharedLibrary!<BaseAddress>+0x451168
...
上 Windows 10 台电脑
当我们尝试在游戏中登录 Xbox Live 时,弹出错误 0x87DD0005
既然您正在为您的游戏使用 Xbox Live 创意者计划,那么您应该将 "XboxLiveCreatorsTitle" 添加到您的 xboxservices.config 文件类似
{
"TitleId": 1859112156,
"PrimaryServiceConfigId": "00000000-0000-0000-0000-00006ecfccdc",
"XboxLiveCreatorsTitle": true
}
参考自Associate your Visual Studio project with your Xbox Live enabled title:
- XboxLiveCreatorsTitle must be set to true for titles in the Xbox Live Creators Program as it changes the sign-in method to work for titles in the Xbox Live Creators Program.
此外,你也可以检查你Sandbox and Test accounts。切换 PC 的开发沙盒后,您可以先使用测试帐户登录 Xbox 应用程序,看看它们是否运行良好。
此外,在测试之前,不要忘记通过单击 Xbox 上的 测试 按钮发布您的 Xbox Live 服务配置实时配置页面。