iphone - GameCenter GKMatchmakerViewController auto-match not working, expectedPlayerCount always 1, solutions? -


I can not establish a connection between two players using automatic matching and GKM Chachor ViewController.

The behavior is

  • didChangeState is never called

  • The player gets disconnected after an extended period of time.

    Is anyone solving this problem?

    Thank you!

    The correct number of players connected to make sure that you get your GKMasterest Set up correctly.

    In this example, I have a game that is connected to only two players, so I work min and amp; Maximum players are counted to 2:

      GKMrerest * request = [[[GKM trackoffAloc] INT] AutoArques]; Request.minPlayers = 2; Request.maxplayers = 2; GKM Changer VUI Controller * mmvc = [[[GKMachaker Week Controller ALOOS] InitvethMatureRequest: Request] Autorege]; Mmvc.matchmakerDelegate = self;   

    Then, everything you saw as a work expected.


    Edit:

    After reading your question again, also make sure that you have the GKMatch object You have been given:

    - (zero) matchmakerViewController: (GKMatchmakerViewController *) viewController didFindMatch: Match (GKMatch *);

    And of course, you have to set the representative of this match object:

      // Done! - (Zero) Matchmaker ViUI Controller: (GKM Chaker VUITCOLLOR *) Viewer Match: (GKMatch *) Match {[Speed ​​Dismard Module Visual Controller]; [Manual set: match]; Match Delegate = self; If (! Match start & match.expectedPlayerCount == 0) {matchStarted = YES; [Representative mettart]; Self.handlerVoice = [Online HandlerWeeks HandlerWithmail: BWatch]; }}    

  • Comments

    Popular posts from this blog

    Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

    java - How not to audit a join table and related entities using Hibernate Envers? -

    mongodb - CakePHP paginator ignoring order, but only for certain values -