May 16, 2008

On Line Gaming With Flash - help me to make talk two pcs?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Game Programming

free web hosting

On Line Gaming With Flash - help me to make talk two pcs?

epox
hi, i'm programming an online game called shoggi, a kind of chess, but i'm stopped because i don't know how to make talk a flash aplication running in two different pcs and make all the validations in fact.

i got the interface, but can only play in the same pc. The game gambling is like playing tic tac toe, first player one, then player two, player one again, player two, and so on until something special occurs but more complex off course, please someone point me in the right way, thanks a lot!.

Reply

palladin
I got thet's same problem making card game like MagicTheGathereing. Solve is easy, do it makeing by php+sql.
Player do move, move is putted to sql with time, second user check sql evry 5 sec if move is done, read them smile.gif

I'ts optimal solve, any other need instant server or can be connections lost or worst at end user can modify game on own machine cool.gif


--------------------

Practice is when evrything is work but no one know why.
Theory is when work nothing but evry one know why.
Programmers join Practice with Theory - nothing work and no one know why cool.gif

Reply

spacemonkey
QUOTE(palladin @ Jul 11 2005, 08:43 AM)
I got thet's same problem making card game like MagicTheGathereing. Solve is easy, do it makeing by php+sql.
Player do move, move is putted to sql with time, second user check sql evry 5 sec if move is done, read them :)

I'ts optimal solve, any other need instant server or can be connections lost or worst at end user can modify game on own machine  B)
--------------------

Practice is when evrything is work but no one know why.
Theory is when work nothing but evry one know why.
Programmers join Practice with Theory - nothing work and no one know why B)
*


That is a very clever way of simulating a direct connection. I'm not very keen on PHP or MySQL, but I would probably think that if a lot of people are going to be playing your game, you should have some unique game session identification. In other words, in the MySQL database, you're probably going to need a lot of different spaces to accommodate a lot of games being played at once, and you'll need some way of identifying which set of values goes with which game currently active.

 

 

 


Reply

switch
yeah, i'm not a pro or anything, but my best guess would be that you would need a server.

also, from memory, the only multi-player cross pc online games i've seen are written in java. take runescape, for instance. the really cool stuff happens with java, as it's a full blown programming language.

unfortunately, java is much harder to learn, has heaps more overhead and is more coding than the really fun stuff.

what palladin was saying was a great idea though. if your "end turn" button links to a PHP page with all the turn details as parameters (or argument, variables, call them what you like) which places them in an sql database you should be set.
I'm not personally sure though, if flash offers sql querys, or can read in data from web sites. you'd need that to read the data back from your sql database.

the space problem can just be solved by deleting each move from the server straight after it is recieved by the other player. a few megs should be more than enough unless you're thinking about making something crazy big or crazy popular.

As for the unique session/game identification thing, you could just generate a random number based on the time and something to do with one of the particpating computers.

hope you got some help out of that blur of information wink.gif
good luck

Reply

wow
What are you trying to do install a http server?

Reply

Trap FeedBacker
using flash muliplayer online
On Line Gaming With Flash

To make a multiplayer flash application you must use "Flash Communication Server"...It has a little learning curve, but thats it.

Hope it helps!

-reply by John Mintno

Reply

comptech-hosting.com
I like the SQL idea because then you have a way to go right to cpanel and backup all game data, when you are backing up your main site db you can do the flash game database at the same time i don't know about the flash communications server what are the steps for backing up that? with sql database you could even program it into html and just link it correctly doesn't need to be php could be html also,. sorry for rambling! let me know what way you went with and how its working!

comptech-hosting.com

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:


Searching Video's for line, gaming, flash, make, talk, pcs
advertisement



On Line Gaming With Flash - help me to make talk two pcs?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE