Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> On Line Gaming With Flash, help me to make talk two pcs?
epox
post Jul 11 2005, 03:04 AM
Post #1


Premium Member
Group Icon

Group: Banned
Posts: 160
Joined: 10-July 05
From: Bogotá, Colombia, South America.
Member No.: 9,238



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!.
Go to the top of the page
 
+Quote Post
palladin
post Jul 11 2005, 01:43 PM
Post #2


Member [Level 3]
******

Group: Members
Posts: 92
Joined: 28-June 05
Member No.: 8,782



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
Go to the top of the page
 
+Quote Post
spacemonkey
post Jul 14 2005, 05:45 PM
Post #3


Member [Level 2]
*****

Group: Members
Posts: 76
Joined: 2-March 05
From: USA
Member No.: 4,110



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.
Go to the top of the page
 
+Quote Post
switch
post Aug 24 2005, 09:07 AM
Post #4


Premium Member
********

Group: Members
Posts: 178
Joined: 13-October 04
From: NSW, Australia
Member No.: 1,713



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
Go to the top of the page
 
+Quote Post
wow
post Oct 29 2005, 03:47 AM
Post #5


Member [Level 1]
****

Group: Members
Posts: 58
Joined: 22-October 05
Member No.: 13,216



What are you trying to do install a http server?
Go to the top of the page
 
+Quote Post
iGuest
post Jan 13 2008, 10:26 AM
Post #6


Trap Double Mocha Member
***************

Group: Members
Posts: 2,360
Joined: 21-September 07
Member No.: 50,369



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
Go to the top of the page
 
+Quote Post
comptech-hosting...
post Jan 27 2008, 10:07 AM
Post #7


Newbie
*

Group: Members
Posts: 2
Joined: 27-January 08
Member No.: 56,921



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Java Gaming(13)
  2. Flash Games...(7)


 



- Lo-Fi Version Time is now: 25th July 2008 - 09:07 PM