在未发表的游戏中测试Google游戏服务自动匹配(C ++)

时间:2016-04-13 21:36:33

标签: android google-play-services google-play-games apportable

我正在尝试在未发布的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.

可能需要注意的是我们正试图通过apportable移植系统在ios应用程序中使用gpg-cpp sdk。

编辑:

解决。我必须使用最少的球员为1。

1 个答案:

答案 0 :(得分:0)

您仍需要在项目中包含播放服务库项目。您可以查看此documentation以获取详细说明。

您还可以参考这些相关的GitHub问题: