0

我試圖測試我們在未發佈的Android遊戲上實現的實時多人遊戲(cpp)API。兩個用戶都進入單獨的等候室UI,然後什麼也沒有發生(用戶不互相連接)。在未發佈的遊戲上測試Google遊戲服務自動匹配(C++)

這是實現

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停靠系統使用GPG-CPP SDK中的iOS應用。

編輯:

已解決。我不得不使用最低限度的播放器作爲1.

回答