The Daily Click ::. Forums ::. Klik Coding Help ::. 3 on 3 battle over the internet
 

Post Reply  Post Oekaki 
 

Posted By Message

Dakin Absi



Registered
  02/10/2004
Points
  113
2nd October, 2004 at 22:20:08 -

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

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
2nd October, 2004 at 22:32:57 -

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

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
2nd October, 2004 at 22:37:34 -

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

Dakin Absi



Registered
  02/10/2004
Points
  113
2nd October, 2004 at 23:08:25 -

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?

Image 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

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
2nd October, 2004 at 23:33:56 -

Shadowcaster - That documentation has been down for a while now

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
3rd October, 2004 at 03:16:34 -

AA: Ahh, I've been away for a while ^__^

DA: I cant find reference to the MOO server on the 3EE website so you'll either have to create your own or use method 1 @__@

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Dakin Absi



Registered
  02/10/2004
Points
  113
3rd October, 2004 at 08:18:27 -

Hm.... so, just in case, how would i do either(creating my own, or doing method 1)?

 
Olny those you can elude time's grip deserve to live another day...

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
3rd October, 2004 at 08:48:02 -

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

 
- Tigerworks

Dakin Absi



Registered
  02/10/2004
Points
  113
3rd October, 2004 at 09:03:58 -

So.... how do i run my own server?

 
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

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
4th October, 2004 at 06:30:27 -

Use Mooclick to host from the MooApi. If you do not have that you will have to use one of the free click servers that Tigerworks suggested.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Dakin Absi



Registered
  02/10/2004
Points
  113
5th October, 2004 at 12:18:41 -

Is that free?

 
Olny those you can elude time's grip deserve to live another day...

vortex2



Registered
  27/05/2002
Points
  1406
5th October, 2004 at 15:07:34 -

You need to buy MooAPI , it comes with MooClick,MooGame,MooSock. Once you have MooClick, then you can ethier:

A)Use one of the free MooClick servers that tigerworks listed

OR

B)Host your own server using MooClick.

Moo/Moo2 do not have free servers, and you can't host a custom one (you would need the server program and I have no clue where to find it).

http://www.3ee.com/moo/mooclick.html

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.

 
A bit of insanity with every bite!

Coop



Registered
  15/08/2004
Points
  347
5th October, 2004 at 17:52:23 -

wait wait wait...i have MMF 1.5 and i want to do step 1 mentioned above... i still need MooGame?

 
...
   

Post Reply



 



Advertisement

Worth A Click