【问题标题】:Google Game Services: Turn-based Multiplayer bug with automatch criteria谷歌游戏服务:具有自动匹配标准的回合制多人游戏错误
【发布时间】:2015-09-27 22:52:29
【问题描述】:

这是我的问题:当我尝试使用谷歌游戏服务创建快速回合制比赛时,它仅在我设置自动匹配标准并且最小玩家人数等于最大玩家人数时才有效,如下所示:

Bundle autoMatchCriteria = RoomConfig.createAutoMatchCriteria(N,N,0);
TurnBasedMatchConfig.Builder tbmcBuilder = TurnBasedMatchConfig.builder().setAutoMatchCriteria(autoMatchCriteria);
Games.TurnBasedMultiplayer.createMatch(mGoogleApiClient, tbmcBuilder.build())
                          .setResultCallback(new MatchInitiatedCallback());

现在,如果我没有设置自动匹配标准(根据描述是允许的)或在最小自动匹配玩家不等于最大自动匹配玩家时设置它们,作为来自服务器的响应,我会收到带有状态代码的错误6004 STATUS_MULTIPLAYER_ERROR_INVALID_OPERATION。

有谁知道这是一个错误还是我做错了什么?

谢谢!

【问题讨论】:

  • 来自docs,错误码的意思是This multiplayer operation is not valid, and the server rejected it. Check the logs for more information.你有日志要分享吗?
  • 我检查了设备日志,没有发现任何东西。是否有一些“特别快乐的地方”可以让我看到来自服务器的日志?

标签: java google-play-games multiplayer


【解决方案1】:

好的,我发现了问题。它不起作用,因为我将最大自动匹配玩家设置为 8,显然 7 是限制。

【讨论】:

    猜你喜欢
    • 2015-05-22
    • 1970-01-01
    • 1970-01-01
    • 2011-04-20
    • 1970-01-01
    • 2014-03-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多