【发布时间】:2016-04-13 21:36:32
【问题描述】:
我正在尝试在一个未发布的 Android 游戏上测试我们实现的实时多人 (cpp) API。两个用户都进入了单独的等候室 UI,然后什么也没有发生(用户没有相互连接)。
这是实现
gpg::RealTimeRoomConfig config =
gpg::RealTimeRoomConfig::Builder()
.SetMinimumAutomatchingPlayers(2)
.SetMaximumAutomatchingPlayers(8)
.Create();
m_service->RealTimeMultiplayer().CreateRealTimeRoom(config, this,
[this](gpg::RealTimeMultiplayerManager::RealTimeRoomResponse const &response) {
this->m_room = response.room;
if (gpg::IsSuccess(status))
{
m_service->RealTimeMultiplayer().ShowWaitingRoomUI(m_room, 2,
[this](gpg::RealTimeMultiplayerManager::WaitingRoomUIResponse const &waitResult) {
// PlayGame() - We never get here successfully.
});
}
});
现在候诊室什么也不做。他们不相互连接。每个玩家都独自坐在候诊室里。
我们有一款在 Google Play Beta 中发布的游戏,我们有一个游戏服务页面,其中链接了应用程序并启用了实时多人游戏。两个测试帐户都在测试人员列表中。
我不确定他们为什么无法连接。有什么想法吗?
编辑:
在日志中看到这个:
04-13 20:22:26.071 14065 14337 V GamesNativeSDK: Detaching from JVM on thread main_dispatch
04-13 20:22:26.071 14065 14337 V GamesNativeSDK: Didn't detach thread from Java VM: error occurred.
可能需要注意的是,我们正试图通过适当的移植系统在 ios 应用程序中使用 gpg-cpp sdk。
编辑:
解决了。我必须使用最少玩家作为 1。
【问题讨论】:
标签: android google-play-services google-play-games apportable