You Are Here:

Community: Developer Discussion Boards

#1 Old Challenge player - how to do it? - 2006-06-28, 16:29

Join Date: Jun 2006
Posts: 14
czubaka
Offline
Registered User
I'm trying to start a challenge match but I have some problems. I'm doing things according to "SNAP game dev guide". Here is how I do it:

- Client 1 (C1) challenges Client 2 (C2): buddy message is sent (it contains uniqe room name based on challanging player userID)
- just after sending message C1 calls gameStart(..)
- C2 recieves message (with the same roomID that C1 sent)
- C2 accepts challange and calls gameStart(..) with exactly the same parameters as C1

I thought once both clients call gameStart (with the same lobby and game room parameters) they would both join the specified game room. However, for both C1 and C2 gameStart doesn't return (it returns after timeout for both clents).
Reply With Quote

#2 Old Re: Challenge player - how to do it? - 2006-06-28, 20:42

Join Date: Jun 2006
Posts: 25
SM Tech
Offline
Registered User
Likely you need to change the leader flag for the C2 client.
C1 has leader set to 1. C2 has leader set to 0.
This indicates that C1 is the challenger, C2 the challengee.

Cheers,
Matt
Reply With Quote

#3 Old Re: Challenge player - how to do it? - 2006-07-11, 22:09

Join Date: Jun 2006
Posts: 25
SM Tech
Offline
Registered User
Also, there are instructions for downloading a complete 2-player SNAP Mobile sample game here:

http://discussion.forum.nokia.com/fo...ad.php?t=83172

This game implements challenge and response gamestarts between two clients, so you can inspect the implementation.

Hope this helps!

Tx,
Sam
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Create 3GP player with J2ME for Mobile dexxa05 Mobile Java Media (Graphics & Sounds) 53 2008-03-27 20:52
Challenge player - forcing time out czubaka Mobile Java Games 3 2006-07-17 20:06

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d127641X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZgamesQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ