1. Download our Official Android App: Forums for Android!

Apps Can't Squash this Bug! - Android TurnBasedMutliplayer

Discussion in 'Android Development' started by Vincent Chase, Apr 17, 2016.

  1. Vincent Chase

    Vincent Chase Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 17, 2016

    Apr 17, 2016
    1
    0
    5
    Hey Mates, Hoping to get some answers on a bug my brother and I have been working on for a long time!

    We've been having troubles on the networking side of our multiplayer game, mainly getting callbacks for matchmaking. We posted a Stack Overflow with more details here https://stackoverflow.com/questions/36682494/android-turnbasedmutliplayer-no-callbacks#_=_.

    We're about a year into development but this is our first game so any help would be appreciated. I know there's a lot of experience in the android community so any advice would help us out a lot.

    My email is (mod redacted)
    Thanks guys! Lou
     

    Advertisement

    #1 Vincent Chase, Apr 17, 2016
    Last edited by a moderator: Apr 17, 2016
  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #17
    Points:
    1,488
    Posts:
    6,715
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    6,715
    9,446
    1,488
    Male
    Software developer
    South West of England
    Just a suggestion, but have you looked at the return parameter from createMatch()? Does it tell you anything useful?
     
  3. Simon Pushelberg

    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Apr 27, 2016

    Apr 27, 2016
    2
    0
    5
    Male
    The response code I get is

    04-27 21:40:54.627 10642-10990/? E/Volley: [26057] BasicNetwork.performRequest: Unexpected response code 401 for https://www.googleapis.com/games/v1/turnbasedmatches/create?language=en_US
    04-27 21:40:54.668 10642-12408/? E/DataHolderOperation: There is no linked app associated with this client ID.
    com.google.android.gms.games.server.error.GamesException
    at com.google.android.gms.games.server.GamesServer.getResponseBlocking(GamesServer.java:174)


    However, I have unzipped the android-debug.apk and ran keytool on META-INF/CERT.RSA. I then attempted to readd the OAUTH through the google play dev console using the SHA1 fingerprint from the output and it said "Package name and certificate fingerprint combination already exists". These two error messages seem to contradict each other entirely.

    I have also tried readding (after deleting all credentials) the credentials in the google developer console (not play).

    I have double checked the package name and app_id
     
  4. Simon Pushelberg

    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Apr 27, 2016

    Apr 27, 2016
    2
    0
    5
    Male
    Full error stack on creatematch

    04-27 21:53:01.769 10642-10991/? E/Volley: [26058] BasicNetwork.performRequest: Unexpected response code 401 for https://www.googleapis.com/games/v1/turnbasedmatches/create?language=en_US
    04-27 21:53:01.827 10642-13936/? E/DataHolderOperation: There is no linked app associated with this client ID.
    com.google.android.gms.games.server.error.GamesException
    at com.google.android.gms.games.server.GamesServer.getResponseBlocking(GamesServer.java:174)
    at com.google.android.gms.games.broker.TurnBasedAgent.createMatch$46a5f9fd(TurnBasedAgent.java:181)
    at com.google.android.gms.games.broker.DataBroker.createTurnBasedMatch$d2d5e18(DataBroker.java:2375)
    at com.google.android.gms.games.service.operations.turnbased.CreateTurnBasedMatchOperation.fetchData(CreateTurnBasedMatchOperation.java:43)
    at com.google.android.gms.games.service.operations.AbstractDataHolderOperation.execute(AbstractDataHolderOperation.java:69)
    at com.google.android.gms.games.service.operations.GamesOperationAdapter.execute(GamesOperationAdapter.java:23)
    at com.google.android.gms.chimera.BaseAsyncOperationService$OperationTask.run(BaseAsyncOperationService.java:177)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    at java.lang.Thread.run(Thread.java:818)
     

Share This Page

Loading...