【问题标题】:Testing Google Game Services Auto Match On Unpublished Game (C++)在未发布的游戏上测试 Google 游戏服务自动匹配 (C++)
【发布时间】: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


    【解决方案1】:

    您仍然需要在您的项目中包含播放服务库项目。您可以查看documentation 了解详细说明。

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

    【讨论】:

      猜你喜欢
      • 2015-12-05
      • 2015-05-22
      • 1970-01-01
      • 2019-05-19
      • 2014-01-16
      • 2010-09-06
      • 1970-01-01
      • 2014-08-16
      • 1970-01-01
      相关资源
      最近更新 更多