Game center hosted game with more then 4 players?
Hey!
Im building a game where there should be 7 players or more.
But I have an issue with the GKMatchmakerViewController.
When I set min/max players to 4 it works and it search for players to play against. But if I set it to 5 palyers or above it fails with error:
didFailWithError: The requested operation could not be completed because the match request is invalid.
My code to create the view looks like this:
GKMatchRequest *request = [[GKMatchRequest alloc] init];
request.minPlayers = 7;
request.maxPlayers = 7;
self.mmvc = [[GKMatchmakerViewController alloc] initWithMatchRequest:request];
_mmvc.hosted = YES;
_mmvc.matchmakerDelegate = self;
[_presentingViewController presentModalViewController:_mmvc animated:YES];
Don't know what Im mising, have tryed reading the documentation and could not find anything about the problem, it says that if the property hosted is YES it should allow mathmaking up to 16 players.
Anyone knows what I might be missing?
I have built my server and the game is functional for 4 players, so can't be any problem on that end (I think).
|