TGB/Networking/Master Server
From TDN
TGB Networking >> Master Server
Using the Master Server
With TGB you can use the standard GUI interfaces to host and join a game. In the JoinServerGUI is a list of servers you can connect to. To limit the servers in this list to just the servers of your particular game, you need to 1) tell the master server how to uniquely identify instances of your game, and 2) ask the master server for a list of servers for only your game.
1) You identify your server to the master by setting the following vars:
$Server::GameType = "Your Game"; $Server::MissionType = "Some Mission";
2) For the querying to join a game, you need to set:
$Client::GameTypeQuery = "Your Game"; $Client::MissionTypeQuery = "Any";
While I'm sure that you can specify the client var values as lists of some sort to actually define the query, the above will get you all mission types of your game. It's also important that you at least specify "Any" for your $Client::MissionTypeQuery. Without it (if you don't set the variable at all), the server list will be empty.
The GarageGames master server is there for people to experiment against, and use for very small scale (3-5 player) testing. It should not be relied upon for commercial or large scale use.
Other vars include:
$Server::MissionName $Client::MissionNameQuery
Categories: Networking | Server | Client | TGB | Master Server



