Раньше это работало отлично, но в настоящее время игровые сервисы, кажется, не могут обрабатывать запрос, выданный Turnbasedmultiplayer.finishmatch () , и мои игроки не могут завершить свои игры. Ничего необычного не происходит во время игры (по очереди), но завершение приводит к коду ответа 400. < /P>
Что может происходить и что я могу с этим сделать?W/GLSUser ( 887): GoogleAccountDataService.getToken()
I/qtaguid ( 1173): Failed write_ctrl(u 180) res=-1 errno=22
I/qtaguid ( 1173): Untagging socket 180 failed errno=-22
W/NetworkManagementSocketTagger( 1173): untagSocket(180) failed with errno -22
E/Volley ( 1188): [87] tm.a: Unexpected response code 400 for https://www.googleapis.com/games/v1/tur ... uage=de_DE
E/dwr ( 1188): Failed to finish match: null
W/dwr ( 1188): {"code":400,"errors":[{"message":"Invalid results. results","domain":"global","reason":"InvalidMatchResults"}]}
D/UPDATE_MATCH_RESULT(30627): Status{statusCode=unknown status code: 6504, resolution=null}
< /code>
code: < /p>
ParticipantResult opponentResult = null;
ParticipantResult creatorResult = null;
if (mMatchData.opponentWonCounter > mMatchData.creatorWonCounter) {
opponentResult = new ParticipantResult(getParticipantId(),
ParticipantResult.MATCH_RESULT_WIN, 1);
creatorResult = new ParticipantResult(
mMatchData.creatorParticipantId,
ParticipantResult.MATCH_RESULT_LOSS, 2);
} else if (mMatchData.opponentWonCounter < mMatchData.creatorWonCounter) {
opponentResult = new ParticipantResult(getParticipantId(),
ParticipantResult.MATCH_RESULT_LOSS, 2);
creatorResult = new ParticipantResult(
mMatchData.creatorParticipantId,
ParticipantResult.MATCH_RESULT_WIN, 1);
} else {
opponentResult = new ParticipantResult(getParticipantId(),
ParticipantResult.MATCH_RESULT_TIE, 1);
creatorResult = new ParticipantResult(
mMatchData.creatorParticipantId,
ParticipantResult.MATCH_RESULT_TIE, 1);
}
Games.TurnBasedMultiplayer
.finishMatch(getApiClient(), mMatch.getMatchId(), data,
creatorResult, opponentResult)
.setResultCallback(
new ResultCallback() {
@Override
public void onResult(
TurnBasedMultiplayer.UpdateMatchResult result) {
Log.d("UPDATE_MATCH_RESULT", result
.getStatus().toString());
dismissProgress();
completeMatch();
}
});
Подробнее здесь: https://stackoverflow.com/questions/246 ... e-services
Поворотная многопользовательская игра не может быть завершена в Google Play Game Services ⇐ Android
Форум для тех, кто программирует под Android
1750451797
Anonymous
Раньше это работало отлично, но в настоящее время игровые сервисы, кажется, не могут обрабатывать запрос, выданный Turnbasedmultiplayer.finishmatch () , и мои игроки не могут завершить свои игры. Ничего необычного не происходит во время игры (по очереди), но завершение приводит к коду ответа 400. < /P>
Что может происходить и что я могу с этим сделать?W/GLSUser ( 887): GoogleAccountDataService.getToken()
I/qtaguid ( 1173): Failed write_ctrl(u 180) res=-1 errno=22
I/qtaguid ( 1173): Untagging socket 180 failed errno=-22
W/NetworkManagementSocketTagger( 1173): untagSocket(180) failed with errno -22
E/Volley ( 1188): [87] tm.a: Unexpected response code 400 for https://www.googleapis.com/games/v1/turnbasedmatches/ChEKCQjrgfqCvgsQAhACGAAgARDruaLm9un3vyg/finish?language=de_DE
E/dwr ( 1188): Failed to finish match: null
W/dwr ( 1188): {"code":400,"errors":[{"message":"Invalid results. results","domain":"global","reason":"InvalidMatchResults"}]}
D/UPDATE_MATCH_RESULT(30627): Status{statusCode=unknown status code: 6504, resolution=null}
< /code>
code: < /p>
ParticipantResult opponentResult = null;
ParticipantResult creatorResult = null;
if (mMatchData.opponentWonCounter > mMatchData.creatorWonCounter) {
opponentResult = new ParticipantResult(getParticipantId(),
ParticipantResult.MATCH_RESULT_WIN, 1);
creatorResult = new ParticipantResult(
mMatchData.creatorParticipantId,
ParticipantResult.MATCH_RESULT_LOSS, 2);
} else if (mMatchData.opponentWonCounter < mMatchData.creatorWonCounter) {
opponentResult = new ParticipantResult(getParticipantId(),
ParticipantResult.MATCH_RESULT_LOSS, 2);
creatorResult = new ParticipantResult(
mMatchData.creatorParticipantId,
ParticipantResult.MATCH_RESULT_WIN, 1);
} else {
opponentResult = new ParticipantResult(getParticipantId(),
ParticipantResult.MATCH_RESULT_TIE, 1);
creatorResult = new ParticipantResult(
mMatchData.creatorParticipantId,
ParticipantResult.MATCH_RESULT_TIE, 1);
}
Games.TurnBasedMultiplayer
.finishMatch(getApiClient(), mMatch.getMatchId(), data,
creatorResult, opponentResult)
.setResultCallback(
new ResultCallback() {
@Override
public void onResult(
TurnBasedMultiplayer.UpdateMatchResult result) {
Log.d("UPDATE_MATCH_RESULT", result
.getStatus().toString());
dismissProgress();
completeMatch();
}
});
Подробнее здесь: [url]https://stackoverflow.com/questions/24635158/turn-based-multiplayer-game-cannot-be-completed-in-google-play-game-services[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия