Game Development Community

Master Server

by Taylor Petrick · in Torque Game Engine · 06/06/2008 (8:18 am) · 14 replies

I've been trying find some good, solid information on the master server. This is how I understand it:

The master server source code is not given out.
There is a master server run by GG that the various Torque demos can connect to.
If you click the "host multiplayer' box, Torque will tell the GG master server everything it needs to know about your server. Players can then connect to your server.

Is this correct?

#1
06/06/2008 (8:22 am)
There is a simple Master Server implementation included with TNL. There are also master servers written in Python and PHP available in the resources section.
#2
06/06/2008 (8:49 am)
Can the GG one be used for development testing, or is it for the Torque demos?
#3
06/06/2008 (8:52 am)
You can use it for testing. There is no guarantee that it will be up when you need it, though. And if you're planning tourneys or ladders, etc, then it would be smart to design your own with those purposes in mind.
#4
06/06/2008 (8:54 am)
Alright, thanks.
#5
06/06/2008 (10:55 am)
A few more questions on the Master Server. I know that clients connect to it to get a server list, but do clients actually use the Master Server to play the game? Lets say that Client X get a list of available servers, and then joins one of them. When he plays, does Client X recieve game information from the Master Server, or the serve he joined from the server browser?
#6
06/06/2008 (11:10 am)
Nope. Usually the Master server just acts as a connector (and keeps track of stats, laddering, etc). But the clients do most of the heavy lifting.
#7
06/07/2008 (12:37 pm)
There is a master server written in php ? Didn't see it so far, i planed to write on in php so it would be a good jumpstart ;) Can you please supply the link, i can't find it.
#8
06/08/2008 (10:36 am)
I couldn't find the PHP one either. There was a PERL one though.
#9
06/09/2008 (5:51 am)
Taylor - there is a basic description I wrote as part of my Python master server I released here as a resource, that might help you understand the basic flow of things, you can find it here.

I'm not an expert in php and whilst I think it would be possible to to code something in php I don't think you'll be able to use it with tge's in a stock fashion, you will probably have to rewrite that side of things in torque to use a httpobject.

Personally I think you'd be better off running one of the python or perl version provided as resources on the site, they're not that hard to code or understand
#10
06/09/2008 (5:54 am)
Ah, ok. I'm not too familar with how the master server or Torque's networking functions, so I think I'll stick to using the Python one. Thanks for providing the link.
#11
06/09/2008 (7:26 pm)
I could not sleep tonight so I wrote a prototype php master server ;)
#12
06/09/2008 (7:32 pm)
Our webserver cant use python is there anyway we could get the python one from you????
#13
06/10/2008 (5:11 pm)
Sorry the master server I am running has been heavily modifed for the game I am working on so it's not something I can open up for others to use.
#14
06/13/2008 (3:42 pm)
The php version i made can be found here.