Connecting to the Master Server
by Greg Clark · in Technical Issues · 04/19/2010 (9:58 am) · 7 replies
I found the resources thread posted by Andy Rollins. Im a bit confused on how to get it to work. Im using TGE. I added in the defaults.cs files to both the control and common files. There are also two .py files that came with the code; where do I place those? Any help would greatly appreciated.
Thanks!
Thanks!
#2
04/20/2010 (3:10 am)
You can also use the Masterserver from GG. Everything you need is in starter.fps.
#3
04/20/2010 (10:46 am)
Is the starter.fps the TGE demo downloaded when purchased?
#4
04/20/2010 (10:49 am)
Yes.
#5
04/21/2010 (10:10 am)
I tested querying the master server on the demo and nothing came up on the list. Are you sure this master server works? Last I looked on the forums about this master server, people were questioning if it was still around.
#6
In starter.fps open starter.fps/client/ui/joinServerGui.gui.
Somewhere around line 298 you will find
The problem is here:
The default value of $Client::GameTypeQuery is "FPS Starter Kit". Only games(servers) with this type of game are displayed. In this case 0.
Solution: Simply change $Client::GameTypeQuery to "any" or modify JoinServerGui::query(%this) directly.
04/21/2010 (10:44 am)
Yes, i am sure. In starter.fps open starter.fps/client/ui/joinServerGui.gui.
Somewhere around line 298 you will find
function JoinServerGui::query(%this)
{
queryMasterServer(
0, // Query flags
$Client::GameTypeQuery, // gameTypes
$Client::MissionTypeQuery, // missionType
0, // minPlayers
100, // maxPlayers
0, // maxBots
2, // regionMask
0, // maxPing
100, // minCPU
0 // filterFlags
);
}The problem is here:
$Client::GameTypeQuery, // gameTypes
The default value of $Client::GameTypeQuery is "FPS Starter Kit". Only games(servers) with this type of game are displayed. In this case 0.
Solution: Simply change $Client::GameTypeQuery to "any" or modify JoinServerGui::query(%this) directly.
function JoinServerGui::query(%this)
{
queryMasterServer(
0, // Query flags
"any", // gameTypes
"any", // missionType
0, // minPlayers
100, // maxPlayers
0, // maxBots
2, // regionMask
0, // maxPing
100, // minCPU
0 // filterFlags
);
}
#7
04/21/2010 (11:31 am)
All good works now. Thanks!
Torque Owner Greg Clark