Help me in making a multiplayer game!

Yep, the question is pretty noobish, and it is going to get more noobish, so don’t say i didn’t warn ya!!

Now,
1)What is a good free socket server, i can use for learning?(don’t say electroserver, please)
2)Where can i find some good tutorials on php socket functions?(I tried php.net, but i lost myself in the huge documentation…i need something which is more tageted to the beginner)

I am trying to make a two player Tic-Tac-Toe type game…but, I don’t want to run a server from my computer, but i want, one of the flash clients to act as the server. Is it possible to make a flash client communicate with another one, without using a database in between?(pipeline) …i mean i can write data to a database, and then the other client can periodically check and retrieve it! but i don’t want that, i want the two clients to communicate within themselves, without using a database or text file or such. Is it possible? and if not…what will be the closest alternative?

Don’t think it would be possible to make two movies communicate without using a database, file or server to control their communication. I may be ridiculously wrong, though. :slight_smile:

Well, it is possible with a socket server, direct pipeline…but as i said, i will use the server, i just want one of the client to act as the server to the other…

It’s impossible to allow flash to act as a socket server. It can’t listen for connections. Either use Smart Fox server or make one using PHP (since you said you don’t have a computer to run it on and most hosts won’t allow .exe’s).

Just google for PHP socket server or look up the documentation for the PHP sockets.
[URL=“http://www.google.com/search?hl=en&q=PHP+socket+server&btnG=Google+Search”]
Look what google shows

Honestly if you want to learn I’d say learn another programming language (python or C#). After you become more experienced then write your own socket server. Much nicer than using smart fox or PHP sockets.

hmm…ok, but php sockets will require a batch file to constantly execute them on the server, to listen, right?I have a linux server, can i run batch files on it??

wow, I just gave you the information and there’s tons of articles and code. I can’t believe you just asked that. Did you even click on the first link in the google page?

Yeah i clicked, and the 1st and 4th seems pretty good info, but thats a lot of info to read in a minute, i am asking this based on the tutorial on kirupa.

I was working on a multiplayer game, and for that I modified a java based socket server that was created by someone else on the team. The java server would get connections from flash clients sending xml packets and pair them up with another connection. Then they would send back and forth xml packets to keep track of everything. No database was needed for the game itself because the java server kept track of all the variables on the stack. But we did use a database to collect statistics, which you wouldn’t need.

It took some time to learn the ins and outs of the socket server but I enjoyed working with java, so I would suggest that as a good solution. The one I worked with was built from scratch, so I don’t know of any good open source ones, but I say just pick one and play around with it.