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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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-22-2010, 04:59 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 45
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default GameKit Tesing on two Simulator on different MAC

Hello to all,

I ve developed my game and now I want to make it Multiplayer

I am using Gamekit
and i ve sdk 3.1.2
and iphone 3g

i dont have two devices so i want to test it with simulator

please help me whether i can run it on two simulator on different mac ( we ve WiFi network )

or how can I connect Simulator with my Device to test

becuase it takes long time to scan and nowhere find device by going in infinite loop for searching device.

also once it got detected but shown Connection Lost and never came up from that

any help would be use ful

Thanks in Advance
__________________
Thanks & Regards
Hardik.A.Patel.

Last edited by hardikapatel; 01-22-2010 at 05:03 AM.
hardikapatel is offline   Reply With Quote
Old 01-22-2010, 06:05 AM   #2 (permalink)
Registered Member
 
Centurion Games's Avatar
 
Join Date: Nov 2009
Location: Beaverton, OR
Posts: 119
Default

Gamekit doesn't work on the simulator, you have to have two devices.
__________________
Centurion Games|@centuriongames
Centurion Games is offline   Reply With Quote
Old 01-22-2010, 06:30 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 45
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default

Quote:
Originally Posted by Centurion Games View Post
Gamekit doesn't work on the simulator, you have to have two devices.

Please look on the images i ve uploaded it seems to work on simulator
but iPhone doesnot detect Simulator

So we are trying to make two Simulator to connect each other

or if possible in other way iphone to simulator that will also work
Attached Images
File Type: jpg Picture 1.jpg (18.5 KB, 0 views)
File Type: jpg Picture 2.jpg (16.6 KB, 0 views)
File Type: jpg Picture 3.jpg (17.8 KB, 0 views)
__________________
Thanks & Regards
Hardik.A.Patel.
hardikapatel is offline   Reply With Quote
Old 01-22-2010, 07:26 AM   #4 (permalink)
Registered Member
 
Centurion Games's Avatar
 
Join Date: Nov 2009
Location: Beaverton, OR
Posts: 119
Default

I'll quote Apple. "Bluetooth networking is not supported on the original iPhone or the first-generation iPod Touch. It is also not supported in Simulator."
__________________
Centurion Games|@centuriongames
Centurion Games is offline   Reply With Quote
Old 01-22-2010, 07:34 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 45
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default

Quote:
Originally Posted by Centurion Games View Post
I'll quote Apple. "Bluetooth networking is not supported on the original iPhone or the first-generation iPod Touch. It is also not supported in Simulator."
we are using WiFi
__________________
Thanks & Regards
Hardik.A.Patel.
hardikapatel is offline   Reply With Quote
Old 01-22-2010, 08:17 AM   #6 (permalink)
Registered Member
 
Centurion Games's Avatar
 
Join Date: Nov 2009
Location: Beaverton, OR
Posts: 119
Default

Quote:
Originally Posted by hardikapatel View Post
we are using WiFi
Unless something has changed game kit is bluetooth only. As to wifi, you should be able to use the simulator and/or any mix of devices and simulators.
__________________
Centurion Games|@centuriongames
Centurion Games is offline   Reply With Quote
Old 01-22-2010, 11:16 PM   #7 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 45
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Unhappy

Quote:
Originally Posted by Centurion Games View Post
Unless something has changed game kit is bluetooth only. As to wifi, you should be able to use the simulator and/or any mix of devices and simulators.
ya i know but the problem is Simulator can detect iPhone,
but iPhone Cant detect Simulator
__________________
Thanks & Regards
Hardik.A.Patel.
hardikapatel is offline   Reply With Quote
Old 01-23-2010, 01:12 AM   #8 (permalink)
Registered Member
 
Centurion Games's Avatar
 
Join Date: Nov 2009
Location: Beaverton, OR
Posts: 119
Default

Quote:
Originally Posted by hardikapatel View Post
ya i know but the problem is Simulator can detect iPhone,
but iPhone Cant detect Simulator
Need to see your network code, this could be a lot of things. Which device is acting as the sever? Which ports are being used? Are both devices getting a ip address that is on the same network? How are you doing discovery?
__________________
Centurion Games|@centuriongames
Centurion Games is offline   Reply With Quote
Old 01-23-2010, 04:26 AM   #9 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 45
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default

Quote:
Originally Posted by Centurion Games View Post
Need to see your network code, this could be a lot of things. Which device is acting as the sever? Which ports are being used? Are both devices getting a ip address that is on the same network? How are you doing discovery?
There is no such thing like IP address and port.The application developed using GAMEKIT takes care of everything.It automatically detect the IP Address of all iPhone devices in WiFi network and looks for the application key if it matches then proceeds futher.
__________________
Thanks & Regards
Hardik.A.Patel.
hardikapatel is offline   Reply With Quote
Old 01-23-2010, 04:47 AM   #10 (permalink)
Registered Member
 
Centurion Games's Avatar
 
Join Date: Nov 2009
Location: Beaverton, OR
Posts: 119
Default

Quote:
Originally Posted by hardikapatel View Post
There is no such thing like IP address and port.The application developed using GAMEKIT takes care of everything.It automatically detect the IP Address of all iPhone devices in WiFi network and looks for the application key if it matches then proceeds futher.
Sorry I see Gamekit added wifi support with 3.1 (But no picker). Previously it was only bluetooth.

IP's and ports do still exist, though as you said they are abstracted away. This could also still be a ip or router type issue. I'd recommend downloading something like the WiTap sample, and trying to run one on the device, and one on the simulator and see if they can detect each other. If that works than you know the network configuration should be fine, since thats using sockets and bonjour which is what gamekit abstracts away.
__________________
Centurion Games|@centuriongames
Centurion Games is offline   Reply With Quote
Old 04-10-2010, 08:53 AM   #11 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 17
Default

WiFi works absolutely normally in the simulator.

It is exactly like having a device (phone or pad) which is using wifi.

If you have, say, three macs, three pads and three phones, you can use that as nine devices all using wifi.

Again there is absolutely no difference using a Wifi app in the simulator, or a wifi app in a device (pad/phone).

In other words, the simulator works "perfectly" regarding wifi. (Assuming of course that your Mac has wifi !!)

There is absolutely no difference between testing a Wifi app on your device (pad/phone) or on the simulator. Hope it helps.

(Of course the simulator DOES NOT do bluetooth, and that's that. Yes, it will sometimes sort of weirdly apparently do the notifcation but nothing else. The simulator does not do bluetooth and there is no way to hack it, end of story. If you are developing a *bluetooth* network app you need a large number of devices, pad or phone.)

Just to repeat the simulator works absolutely perfectly with Wifi - no difference in any detail from using a device.

Hope it helps!
FatFatto is offline   Reply With Quote
Reply

Bookmarks

Tags
gamekit, multiplayer, opengl es, simulator

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: 243
13 members and 230 guests
ADY, AragornSG, CKAmike, Dani77, Duncan C, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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