gamekit

GameKit Server/Client

I have been trying to implement the GameKit Framework for bluetooth connection and want to use a Server/Client relationship to reduce lag and be able to distinguish between to connected devices. I found this thread and it is similar to what I am trying to do, but the code doesn't work for me. Here is what I have: Connect Method: -(IBAc...

How do I identify the gamekit message window?

When an iPhone app with GameKit launches, and the device is already logged in to GameCenter, a small message slides in on top of the screen, saying something along the lines of "Welcome back %username!". What I found out is the following: that message appears in its own UIWindow that eventually slides the message away and releases itsel...

How to programmatically detect Game Center?

I'm adding Game Center support to my game. Because my game can run on iOS versions back to 3.0, I want to have it fallback to just saving achievements and leaderboards locally in the absence of Game Center. Right now, I have this: + (BOOL) isGameCenterAvailable { Class playerClass = NSClassFromString( @"GKLocalPlayer" ); if( playerC...

Authenticating GKLocalPlayer with Game Center

I am trying to authenticate a GKLocalPlayer with Game Center. However, the code supplied by Apple - (void) authenticateLocalPlayer { [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) { if (error == nil) { // Insert code here to handle a successful authentication. ...

GameKit Notification when user change

Hi there, i've some problem with game kit. All work fine, the olny problem is the changement of user logged. I want to know when the user signout or change account in gamecenter when my app is running. I've use the next code for this kind of notification but it don't work NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];...

What is the best way to transfer an object between two iOS devices running the same app?

I'm trying to give my iOS app the ability to transfer an object to another iOS device running the same app. The object is on the order a few thousand KB of memory. Does anyone have a suggestion as to how to do this? I am considering using FTP, but that seems a little messy. Does anyone have any suggestions on possibly using GameKit? ...

How do I get a GKPlayer's status from Game Center?

When I get a GKLocalPlayer or use loadPlayersForIdentifiers:identifiers withCompletionHandler: to get a list or individual GKPlayer aliases, the GKPlayer object when logged, looks something like this: 2010-09-23 10:39:01.759 Cee-lo[76500:207] Players loaded by identity: ( "<GKPlayer 0x84125a0>(playerID: G:1234567890, alias: typeonet...

Sending larger data over Bluetooth through GameKit

Hi there. In my application, I'm trying to send two images that are wrapped up in an NSData object. I'm following the Game Kit Programming Guide and use the standard GKSessionDelegate methods and GKPeerPickerController. Unfortunately my data is larger than 86 kilobytes, so I have to fragment the data. Does anyone know of a way I would ...

Building my own game server for a turn-based multiplayer iPhone Game.

From the Game Kit Programming Guide... Multiplayer allows players interested in playing an online multiplayer game to discover each other and be connected into a match. Depending on your needs, your application can have either use Game Kit to connect all the participants together, or have Game Kit deliver a list of play...

Problem when releasing GkSession on GameKit iPhone

Hi, I'm Fabio and i'm here to find help with an issue about GameKit. I'm writing a program that allow users to play online games. The program use "manual" GkSession (without GkPeerPicker 'cause I need 4 connection). NSString *name=[[NSString alloc] initWithUTF8String:pData->m_sPlayerName]; if(pNetMgr->GetServerMode()) self.current...

GameCenter - taking into consideration in-app purchases

It looks to me like Apple was in a bit of a hurry to implement GameCenter. Maybe I am overlooking something. If you create a game where you want to offer in-app purchases (say you want to sell additional maps or add ons), is there any way at all to match players who share the same maps (plural) using GKMatchRequest? i.e. whose in-app pu...

How to present GKAchievementViewController so it will display 1024*768 in iPad?

I am displaying gamecenter achievements using [myRootController presentModalViewController:mAchievementsController animated:YES]; for iphone it is displaying modalView of size 320*480 But for ipad it is not displaying modalView of size (1024*768). How to present GKAchievementViewController so it will display 1024*768 in iPad? ...

iPhone GameKit: Communication with Sandbox - GKErrorDomain Code 3

Hi Anyone has any experience with GameKit GKErrorDomain Code 3? I receive the error message when I try to upload a score to a leaderboard in the Sandbox. The iOS reference library just says that Indicates that an error occurred when communicating with Game Centre The Here is the full error message: Error Domain=GKErrorDomain Code=3 "Th...

Why does the new iOS GameKit split between delegates and blocks?

It could be that recent revisions to GameKit are simply a tech demo for blocks. Or, that the "on return" functionality of certain GameKit APIs is just too inconsequential to deserve a dedicated delegate class, and blocks now fulfill the function of an informal protocol. Though it feels like a subjective question, perhaps there is a defi...

GameCenter - handling incoming calls etc.

What would you do in the following scenario: When implementing a multiplayer game, you use GKMatchmaker to find players. When the required number of players has connected, you start the match. Now one of the players receives an incoming call. What now? If the user takes the call, the application will move to the background, the conne...

How to save and retry reporting GKAchievement's after network failure?

Apple states that if you want to report a GKAchievement but you get a network error, the best way to handle this is to save the GKAchievement (possibly adding it to an array), then periodically attempt to report the achievement. What is the best place to save the achievements? Would NSUserDefaults suffice, or would a property list be a ...

Is there a way to delete scores in Apple's Game Center programmaticaly?

I did not find a way in the GameKit documentation to delete a player's score from within my app. Is this possible? Thanks! ...

Definitive answer to what playersToInvite is for.

The Game Center documentation indicates that the playersToInvite parameter is non-nil when your application is launched directly from the Game Center application to host a match. A few people have asked how this works exactly, i.e. there doesn't appear to be a way to select a friend from the Game Center application and invit...

Simple guide to Game Center Integration ?

Hi all, Could anyone point me in the direction of an idiots guide to integrating Game Center into an iPhone app ? Please do not refer me to any Apple documentation as it's about as useful as a pork chop at a barmitzvah. Thanks, Martin ...

Game Center API + In-App Purchases API = Two different user accounts for a single app?

Hello. If I have an app that supports Game Center and I'd like to provide Achievements for completing a puzzle pack that's sold as an in-app purchase, how do I sync the iTunes account that's being charged for the in-app purchase with the Game Center user account that's doing the buying? As I understand it, they're two separate user acc...