gamekit

GKPeerPickerController and GKSession

we can connect by bluetooth only iPodtouch or iPhone using GKSession and GKPeerPickerController right ? , or can we connect other bluetooth device ? ...

Encode NSArray or NSDictionary using NSCoder

I was wondering whether or not it is possible to use the NSCoder method: - (void)encodeObject:(id)objv forKey:(NSString *)key to encode either an instance of NSArray or NSDictionary. If not how do you go about encoding them? I am trying to use NSKeyedArchived / NSKeyedUnarchiver to send data between phones using GameKit. I tried it an...

Gamekit and iPhone help

I have my app set up to send a custom level in a form of a array to another person during a p2p connection. The receiving device saves the array to file for later use. I set up gamekit in my application, it will successfully search and connect to another device without any problems. Though a problem arises when I send data to a device, t...

GameKit: GKSession manual

Hello, I want to connect two devices using the GKSession, starting one as a server and the other one as a client. Using this configuration I can't use the GKPeerPickerController. I'm having problems for connecting the two devices: Using only bluetooth: impossible using WiFi: at least there are some data exchange between the devices b...

Gamekit how to do p2p wifi connection in iphone

I have to implement multiplayer game in which I am doing p2p communication using both bluetooth and WIFI. Specially for iphone 1G I have to do connection via WIFI. but in picker default connection type is bluetooth. So how to set it to WIFI. Can anyone suggest sample codes for WIFI connection. except GKtank. Thanks in advance. ...

Using GameKit to transfer CoreData data between iPhones.

I have an application where I would like to exchange information, managed via Core Data, between two iPhones. Has anyone attempted this and if so what is deemed to be the best approach to doing so (i.e. are people using some intermediate format such as XML or JSON in a file or can the objects be transfered directly). My apologies if t...

GameKit bluetooth help

Hi, I'm trying to understand the basic steps required for a game I'm trying to make using GameKit for bluetooth connections. I only have 1 device, so I can't test out my ideas very easily - therefore, I'd really appreciate any help you could give. The game involves a maximum of 2 players over bluetooth via GameKit and the only data to...

NSSet to NSData, then back out again, for GameKit?

Hi guys, I'm trying to do some image edit syncing between two of the same app running on different iPhones. I would like to send an NSSet * from one device to another (which I imagine involves encapsulating in NSData) then decrypting this back to an NSSet, then using it in a touchesMoved type of function. Is this feasible, or should I w...

iPhone GameKit Picker Fundamental Connection Issues

Hello.. This is one of the more interesting things I've seen in iPhone development. The following question has nothing to do with code because I'm using an SDK Example from Apple (Tanks example). I have a 3GS iPhone, and a 3G iPhone both showing the GameKit picker screen. Both will eventually show the other phone in range just fine (...

Using GKPeerPickerController within a selector from a Cocos2D CCMenuItem

Hey everyone, So i'm trying to use GameKit along with Cocos2D so that when a user clicks on the multiplayer menu item it will display the GKPeerPickerController. I'm however, running into some snags. It doesn't seem to want to compile. However, it doesn't give me an error inside of the code that's in my selector. Anyways here's the code...

How to specify Wireless or Bluetooth in GameKit when using my own custom interface

Hi, I've decided to implement my own interface for connecting two devices running my game, as opposed to using the GKPeerPickerController. This is actually working quite well. But I just realised that in my creating of the GKSession I'm not actually specifying whether the connection should be Wireless or Bluetooth. I have an option in m...

iPhone GameKit Problem: Clients detect other clients

Hello, All: I'm trying to set up a client-server architecture. I have one GKSession configured as a server, and two others as clients. When either client uses the sendData:toAllPeers:WithDataMode:error method, it sends it not only to the server but to the other client. I guess I could use the display name to exclude clients, so clien...

iPad <-> iPhone GameKit connection over bluetooth possible?

Has anyone established GameKit connectivity between an iPhone app running on an iPad and an iPhone app running on an iPhone? I tried the GKTank example and they won't connect. The iPad throws a "Error: 30509 -- Bluetooth not available.." error when trying to connect. ...

Alternatives to GameKIt for iPhone to iPhone transfer

I am needing to transfer information as an NSData object from one iPhone to another inside an application and was originally planning on using Bluetooth/GameKit, but the data looks like it will be in the neighborhood of 500KB -> 1MB in size. I don't think this is going to fly with GameKit (Bluetooth) as it will take forever and it seems...

GameKit Bluetooth Transfer Problem

Hi, I am trying to send a file via Bluetooth using the GameKit framework. The problem I am having though is that I can only send one NSData object at a time, but I need to save it on the other end. this obviously isn't possible without knowing the filename, but i don't know how to transmit that. I've tried to convert it to a string NS...

Error: 30509 -- Bluetooth not available iPad and iPhone GameKit stuff

When trying to connect the iPad to the iPhone via bluetooth it stays on the "Looking for other iPhones or iPod touches" screen on both. If i try running the iPhone version on both, they find each other. Is this some sort of restriction? Thanks. also, im getting: 2010-05-22 01:49:52.301 iPadTest[241:207] ********** Loading AX for: com....

Connecting to bluetooth accessory with iPhone

Can I use GameKit to send data from an iPhone to an accessory, and if not is there some other way to connect without joining the Made for iPhone program ...

Is it possible to have more than P2P on iPhone with Bluetooth

Hi all, This seems like a straightforward google search answer, but after a while, I still can't be 100% sure of this. I've found Z2Live (http://www.z2live.com/), which is basically a layer above GameKit and they too use only P2P with Bluetooth. So I just want to be sure if I can only have P2P with Bluetooth or if I can have like 4 iPho...

GameKit server disconnect makes session invalid

Hi everyone, I'm trying to build a 4 player multiplayer game using GameKit. I tried many things and I'm currently using client/server mode, meaning that I have 1 session in GKSessionModeServer and 3 other sessions connecting to this one in GKSessionModeClient. My goal is, that when a user leaves the game or gets disconnected for whateve...

getting default user interface from GKPeerPickerController class

i am developing an application which needs bluetooth conection of two iPhones.Now this is what i did: I created a view based application I included GameKit Framework in my application. I did not do anything to my app delegate file and in my view controller's view did load method i wrote folowing piece of code [super viewDidLoad]; mPi...