Jump to content
xisto Community
Sign in to follow this  
epox

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

Recommended Posts

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!.

Share this post


Link to post
Share on other sites

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 :P 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)

Share this post


Link to post
Share on other sites

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)

159779[/snapback]

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.

Share this post


Link to post
Share on other sites

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 :) good luck

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.