Game Development Community

the difference between......

by Matthew Shapiro · in Torque Game Engine · 10/20/2002 (8:15 pm) · 1 replies

Ok i'm trying to understand the packet data to/from the master server. I came accross this:

MasterServerGameTypesRequest = 2,
MasterServerGameTypesResponse = 4,
MasterServerListRequest = 6,
MasterServerListResponse = 8,
GameMasterInfoRequest = 10,
GameMasterInfoResponse = 12,

What is the difference between these? i'm guessing the gameMaster is the actual server, but what's the diffeernce between MasterServerGameTypes and MasterServerList? Can you request what gametypes the master server has?


EDIT: nevermind it's late and i'm tired ;) that was a dumb question....
--KallDrexx

#1
03/21/2007 (7:22 pm)
We have the power to resurrect posts from the dead .....

But it was the only post that came up on a search for 'MasterServerGameTypesRequest'

I am in the process of working out how the master server code works and have thus come up with the following .... however this has all been guess work and I do not present this info as authoritative!

GameHeartbeat packets are sent by game servers to the master server on a regular basis once the servers up and running.

The master server will add the game server to its list when it receives the first GameHeartbeat packet else it will note the time of the last heartbeat it received from the sending server this is used to identify downed servers.
The master server will also periodically send a request for info about the game server with a GameMasterInfoRequest packet.
When a game server receives a GameMasterInfoRequest packet it returns game info back via a GameMasterInfoResponse packet.

When a client queries the master server to obtain a list of active servers, it will send a MasterServerListRequest this packet may/should include filter options that the master server will use when building a list of game servers to return in one or more MasterServerListResponse packets. (this is why the master server maintains a list that includes the game servers info not just a list of server address's)

Once a client has received the list of servers it to will retrieve server game info from each game server, as the master server did, but it will use GameInfoRequest and GameInfoResponse packets.

GamePingRequest and GamePingResponse are used by the client to obtain the latency to a specific server, I am unsure whether the master server would use them as a ping relative to the master server would be of little use.

I would appreciate if someone could confirm that what I have stated above is correct and what the MasterServerGameTypesRequest and MasterServerGameTypesResponse packets should/would have been used for.