Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-21-2012, 08:29 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2012
Location: Åland, Finland
Posts: 2
johax is on a distinguished road
Question 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).
johax is offline   Reply With Quote
Old 01-28-2012, 08:22 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2012
Location: Åland, Finland
Posts: 2
johax is on a distinguished road
Default

Can't seem to find any help at all from anywhere. Not even The Apple Developer Technical Support (DTS) could give me a clear answer they just left me with stupid answers like "check the documentation". I already read the documentation and tried to fix it in many different ways but can't make it work.
johax is offline   Reply With Quote
Reply

Bookmarks

Tags
center, game, hosted, matchmaking, multiplayer

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 386
8 members and 378 guests
apatsufas, comicool, dansparrow, husthlj, LunarMoon, mer10, Murphy, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,677
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, husthlj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0