Re: Ok I'm really lost with the game kit here.

2010-02-08 Thread Development
I have tried to send the NSData directly. The problem is that the image is getting corrupted somewhere or some how. All I get on the other side is an image of the correct size but only about the first 3 or 4 lies of the image appear. I have tried about 4 different methods of sending this data a

Re: Ok I'm really lost with the game kit here.

2010-02-08 Thread Jens Alfke
On Feb 7, 2010, at 9:33 PM, Development wrote: > [session sendData:[NSData dataWithBytes:localPacket.data > length:sizeof(localPacket.data)+sizeof(int)] toPeers:[NSArray > arrayWithObject:peerID] The size is wrong. You're computing the size of the packet struct, not the data it

Ok I'm really lost with the game kit here.

2010-02-07 Thread Development
I have tried every possible way I can think of to send image data via the gamekit from one phone to another. If i just send it in 1024 byte blocks what comes out on the other end is a corrupt image. So I have looked at examples but cannot find any examples of sending anything more than a smal