Hello all... i would like to know how to get a 3 on 3 battle to work over the internet. I have downloaded vitalize, and the game does work in browser(like i wanted it to) but, i don't know how to get other people to log on at the same time. I am using TgF for the system. I want it to be able to have people enter their names, and for it to save the names w/out doing a password screen. I want it to have the first six people to enter selecting characters, and then to have a waiting room for the rest. Once the first six select their characters, i wantthe screen to change to the battle screen... i also want the people in the waiting room able to watch... i know this is a bit much to ask, but i wanna kno if this is possible.. i don't care if it might be hard.. for i am not a novice at building games with TgF... I thank you in advance for the help!!!
Olny those you can elude time's grip deserve to live another day...
You're asking a lot -- it would be better to start off with something a little simpler.
Vitalize! only lets you play a game online through a browser window (the same way a Flash application works), it doesnt let people play together.
You will first of all need to download MOO (Multiplayer Online Object) from www.3ee.com and install it.
With MOO you can accomplish what you are trying to do in two different ways --
1. One player acts as a host which all other players can connect to if they have the first players IP. This is not recommended for what you want to do, since I'm sure you just want people to be able to connect and play whenever.
2. You connect to a server and communicate through that. This is a lot easier, but requires a perminant server to connect to. 3EE usually have one online (last I was here a few months back it was down I think, but they might have put it back up by now, and I think Clickteam run one also or at least they used to).
The second option is better or what you want to accomplish. It works the same way as a chat client works: you connect to a server and select a room; your room might be called after the name of your game. You can then get a list of all the people in your room, and send packets of information between each other. These packets you send can be plan text information such as X+5, for example, if your character moves 5 pixels in the positive X direction and you want all the other players to receive this information.
Just a note on bandwidth -- not all people use broadband so it's strongly recommended you use as few packets as possible otherwise it will just get crazy especially when there are several people playing at once. One way you can save bandwidth is to send only key information. By this I mean you might press the Left arrow on your keyboard and the character moves left 5 times until the key is released. You could send all of those intermittant positions for the character, or you could just send when the key is pressed, and when it is released to all the other players. This means you're only sending 2 packets instead of 5 and getting the same result.
Due to lag, your release key packet should contain the final resting place of the character so that any difference in time taken to receive the first and last packet wont affect the final position of the object.
I could go on, but it's pretty useless to say more at this stage. Just download MOO to begin with, and get some basic communication going (perhaps a chat client so players can talk before the game starts?) which is a good place to start before you get into game programming which is a lot harder since speed and accuracy is a factor.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
I should mention that 3EE also have excellent documentation on the MOO object, so if you're stuck that's usually the best place to start. Of course I'll help you on the forums here, as I'm sure many other DCers will, if you run into any problems.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
Thanx so much, man.... you've been so helpful! Um, as for asking much... i'm doing this for a site, so i want it to be the best! Um... how do i get a server?
Edited by the Author.
Olny those you can elude time's grip deserve to live another day...
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
2nd October, 2004 at 23:33:56 -
Shadowcaster - That documentation has been down for a while now
By the way, the best free MOO extension is Moo2, but if you're really serious (and you want a game which will be faster and not crash) then you should buy MooAPI from 3ee.com.
There are no public Moo2 servers so you'll have to run your own. If you used MooAPI though you could use either of these servers:
Justin H: mooapi.anjusevin.com Port 1203
Burfelt: 212.242.55.211 Port 1203
BTW only MooAPI supports connecting to another player as a host (the above method 1).
Good Luck. BTW, if you are really serious about the game, simply get MMF 1.5. It comes with MooClick and MooSock (you would need to buy MooGame still), plus a higher object limit, bug fixes, and a ton of new extensions.