Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi ALL

Multiplayer Games in BREW are getting popularised now-a-days.

Even me too interested towards Multiplayer games.

Is there any article how to start developing multiplayer games in BREW.
(Espe which are the new API's to be used)

or

Any sample code will be helpful for me to start with.

thanks.

yours
VARUN.

You'll first need to come up with a design. Right now your question is too generic. For now, you'll need to use some sort of networking functionality to be multi-player. You'll probably need a server as well.

You'll first need to come up with a design. Right now your question is too generic. For now, you'll need to use some sort of networking functionality to be multi-player. You'll probably need a server as well.

Hi jonathan
I am very well know that there should be some game design, server all those basics.
I am interested in the API's to be used in BREW for multiplayer games.
I will explain this way.
Basically I am a J2ME game developer.
My objective is to convert a j2ME multiplayer game to BREW multiplayer game.
(Note I have already converted simple single player j2ME games to BREW games.)
in J2ME we can use Bluetooth, HTTP etc for multiplayer games.
Now i need to know about the equivalents in BREW.
I think now you are pretty clear about my requirement.
yours
varun

Hi jonathan
I am very well know that there should be some game design, server all those basics.
I am interested in the API's to be used in BREW for multiplayer games.
I will explain this way.
Basically I am a J2ME game developer.
My objective is to convert a j2ME multiplayer game to BREW multiplayer game.
(Note I have already converted simple single player j2ME games to BREW games.)
in J2ME we can use Bluetooth, HTTP etc for multiplayer games.
Now i need to know about the equivalents in BREW.
I think now you are pretty clear about my requirement.
yours
varun

Have you looked at the API :rolleyes: Try doing a search for needed functionality.

Have you looked at the API :rolleyes: Try doing a search for needed functionality.

Hi
Now i familiarised with which are API's to be used.I am using IWeb interface.
I am bit confused with the Query and response from the server.
What i am trying to do is,
I created a Web service which will fetch me the required data from MS-SQL server.
For example
Now I want to get the highest score available from the database table.
There is a method available in webservice getHighestScore(). How can i send a query to the server.
I am really confused hw to send the Query. And also where this output available for me after i Query the server. How to fetch the value which the server has returned.
I am trying to understand the basics.
Can You please help me out.

Hi
Now i familiarised with which are API's to be used.I am using IWeb interface.
I am bit confused with the Query and response from the server.
What i am trying to do is,
I created a Web service which will fetch me the required data from MS-SQL server.
For example
Now I want to get the highest score available from the database table.
There is a method available in webservice getHighestScore(). How can i send a query to the server.
I am really confused hw to send the Query. And also where this output available for me after i Query the server. How to fetch the value which the server has returned.
I am trying to understand the basics.
Can You please help me out.

Hi
I suggest you to take a look at NetDiagnostics and RoadWarrior samples in BREW SDK. They show basics of BREW networking.
As for WebServices, I do not recommend you to use them (at least if we are talking about SOAP-based web services), since BREW (and J2ME as well) does not contain built-in support for SOAP and manual implementation will require usage of third-party XML parser (or writing your own one) plus lots of parsing code.
I would suggest simple architecture based on standard HTTP GET/POST to send/receive data.

Hi
I suggest you to take a look at NetDiagnostics and RoadWarrior samples in BREW SDK. They show basics of BREW networking.
As for WebServices, I do not recommend you to use them (at least if we are talking about SOAP-based web services), since BREW (and J2ME as well) does not contain built-in support for SOAP and manual implementation will require usage of third-party XML parser (or writing your own one) plus lots of parsing code.
I would suggest simple architecture based on standard HTTP GET/POST to send/receive data.

Hi
Thanks for reply.
Yes.You are right about the web services issues in BREW.
But I have to do more Database transactions with SQL server.
Web service will ease my job of communicating with Database and fetching the data.
You can share with me If You have any other way of doing it.
It will be great help for me.
thanks.

Hi
Thanks for reply.
Yes.You are right about the web services issues in BREW.
But I have to do more Database transactions with SQL server.
Web service will ease my job of communicating with Database and fetching the data.
You can share with me If You have any other way of doing it.
It will be great help for me.
thanks.

Well, I'm still not sure if we are talking about the same stuff when using "term" Web Service. I'm talking about SOAP-based Web Services, which are easy to do if you work with, say, ASP.NET. However, they require sophisticated parser on the client-side which is OK for PC and even for PocketPC's, but not very good idea for limited platforms like BREW/J2ME.
However, there're good old HTTP GET/POST transactions where you can put your payload into parameters and/or to response body.
Like if you need to request highscores from your server you can send GET request similar to this one:
GET http://myserver.com/query.asp?action=getHighscores&gameId=1
GET http://myserver.com/query.asp?action=getTop10&gameId=1
then you can create simple script which will parse URL parameters and invoke your Web Service method like:
getHighscores(1) or getTop10(1)
then the same script will parse return value from your functions and form simple HTTP response which is easy to parse on BREW like:
1, MisterX, 1000
2, JohnDoe, 950
etc.

Well, I'm still not sure if we are talking about the same stuff when using "term" Web Service. I'm talking about SOAP-based Web Services, which are easy to do if you work with, say, ASP.NET. However, they require sophisticated parser on the client-side which is OK for PC and even for PocketPC's, but not very good idea for limited platforms like BREW/J2ME.
However, there're good old HTTP GET/POST transactions where you can put your payload into parameters and/or to response body.
Like if you need to request highscores from your server you can send GET request similar to this one:
GET http://myserver.com/query.asp?action=getHighscores&gameId=1
GET http://myserver.com/query.asp?action=getTop10&gameId=1
then you can create simple script which will parse URL parameters and invoke your Web Service method like:
getHighscores(1) or getTop10(1)
then the same script will parse return value from your functions and form simple HTTP response which is easy to parse on BREW like:
1, MisterX, 1000
2, JohnDoe, 950
etc.

Hi
Thanks for reply.
I Got some clear picture.
thanks for help.

Hi
Thanks for reply.
I Got some clear picture.
thanks for help.

hi, all :)
HAVE ANY OF U HAVE MADE A MULTIPLAYER BOARD GAME.
IN WHICH TWOPLAYER CAN TAKE PART IN A SINGLE GAME... WITH THEIR PERSONAL
HANDSET BY USING BLUETOOTH.....
ANY ONE HAVE SOLUTION .....PLZ SEND ME
A LIL APPLICTION FOR SENDING AND RECEIVEING APPLICATION VIA BLOOTH
WILL BE A FULL PROOF SOLUTION FOR ME.... :confused:
THANKS IN ADVANCE.....
u can mail me at:
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%70%72%61%62%68%61%74%2e%6b%61%73%65%72%61%40%64%69%61%73%70%61%72%6b%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%70%72%61%62%68%61%74%2e%6b%61%73%65%72%61%40%64%69%61%73%70%61%72%6b%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

hi, all :)
HAVE ANY OF U HAVE MADE A MULTIPLAYER BOARD GAME.
IN WHICH TWOPLAYER CAN TAKE PART IN A SINGLE GAME... WITH THEIR PERSONAL
HANDSET BY USING BLUETOOTH.....
ANY ONE HAVE SOLUTION .....PLZ SEND ME
A LIL APPLICTION FOR SENDING AND RECEIVEING APPLICATION VIA BLOOTH
WILL BE A FULL PROOF SOLUTION FOR ME.... :confused:
THANKS IN ADVANCE.....
u can mail me at:
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%70%72%61%62%68%61%74%2e%6b%61%73%65%72%61%40%64%69%61%73%70%61%72%6b%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%70%72%61%62%68%61%74%2e%6b%61%73%65%72%61%40%64%69%61%73%70%61%72%6b%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

There's not much done with bluetooth in BREW as it is revoked from the SDK after 2nd version due to some technical reasons.I dont believe much of the work is done with bluetooth.

There's not much done with bluetooth in BREW as it is revoked from the SDK after 2nd version due to some technical reasons.I dont believe much of the work is done with bluetooth.

thank you very much for the information about the Multiplayer Games programming ..
i have been very interested towards Multiplayer games... every single word of information here in the thread has been very useful for me....
thanks

thank you very much for the information about the Multiplayer Games programming ..
i have been very interested towards Multiplayer games... every single word of information here in the thread has been very useful for me....
thanks