Game Development Community

Can Master Server work in T3d(Private)?

by qimieyan · in Torque 3D Professional · 10/12/2011 (7:33 am) · 7 replies

hi,everybody.
Now I am using T3d(Private).while I use the master Server, it can't return the Master Server which I created in other Machine.

I have Set This:
$pref::Master[0] = "2:121.8.210.30:28002";


Are there any steps I missed? Please help me out!

#1
10/13/2011 (7:51 am)
There are more than one incidence of the master server setting in the scripts, you will have to catch them all. The master server definition is impacted by how you are running the game--dedicated servers only need to change it in the server prefs, I think.

Look in these files, and if you have Torsion, try a global search even if you think you've found them all.

game/scripts/client/init.cs
game/core/scripts/client/defaults.cs
game/core/scripts/client/prefs.cs
game/core/scripts/server/defaults.cs
game/core/scripts/server/prefs.cs

The same is true of the gameType--if you change it, you will have to change it to match everywhere to get games to find games.

This can be trickier than one would think, too. I'd start by first getting the master server found (*and if I could figure it out, anybody can!*) and working, then worrying about the gameType.

Also, make sure the ports 28000 and 28002 aren't being blocked by firewalls on your computers or on your network--it could be something that just looks like a setting issue.
#2
10/13/2011 (8:44 am)
When changing the preferences delete all prefs.cs files - they will be regenerated after the next successful run with the most current changes that were made in all other files.
#3
10/15/2011 (1:51 am)
I try .
but console:
Requesting the server list from master server IP:127.0.0.1:5544 (2 tries left)...
Received server list packet 1 of 0 from the master server (0 servers).

#4
10/15/2011 (7:52 am)
You probably need to set up the proper port pinholes on your router to allow network traffic between game instances.
#5
09/26/2012 (1:02 am)
Noting this in case someone needs it for a search.

The "packet 1 of 0" might be an incompatibility with the C# master server.

Details on that resource are here:

http://www.garagegames.com/community/blogs/view/20121
#6
09/26/2012 (10:46 am)
Ouch, resurrection of old thread much? Most likely this is due to a firewall issue. I posted a thread here a while back explaining the exact issue. Your client sends a response back to the server that the server does not know how to handle due to a firewall not allowing loopbacks.
#7
09/29/2012 (10:35 am)
If this is the C# Master Server, there was a bug that I recently fixed that prevented the server list from being returned to the client. The current version 1.0.4.0 has the fix.