Game Development Community

Networking issues

by Sabrecyd · in Torque Game Engine · 06/28/2002 (5:44 am) · 4 replies

Hi,
There's a couple questions I have about some networking things. Hope someone can help.

1 - what is this exactly - $pref::Master[0] = "2:v12master.dyndns.org:28002"; It's in the defaults.cs file in the fps server folder.
Is this trying to connect to a GG server on the internet?
I've noticed when I run a dedicated server while connected to the internet I get an IP address of "216.116.33.156". If I run a dedicated server w/o an internet connection. I get a "bad server" message.

2 - Where is that extra player image coming from when you connect 2 computers on a LAN? It can't be killed or controlled. I start a multiplayer game and then do the connect ("x.x.x.x"); function to connect the second computer to the first. There are two working players plus that 3rd "freak".

Any insight would be greatly appriciated. Maybe I missed something in another thread, but I couldn't find anything.

Thanks,
-Sabrecyd

#1
07/01/2002 (6:27 am)
Never mind question 2 there. That was caused by my own stupidity. I hosted a game on one computer, started a game from a second computer, opened the console and typed the connect command. Well, this connects fine, but it loads a second game over the first on that second computer. This was causing that extra freak player to appear. I noticed it when the mission timer hit 20 minutes and the server loaded another mission. On the client machine the second mission terrain/objects were overlapping the terrain/objects from the original mission. Very odd. When I started a -console game and connected to the host, it worked fine. At least I know what was happening now.
#2
07/01/2002 (1:33 pm)
The $pref::master is the address of the master server which the game will try to contact for a list of game servers. The default has been changed to master.garagegames.com, but the address you have should work fine.

When a dedicated server is run, it registers itself with the master server so that game players can find it.

Games & servers also broadcast on their local lan to find lan games.
#3
07/01/2002 (1:41 pm)
Thanks for the reply Tim.
That does make sense.
#4
07/02/2002 (12:11 pm)
So Tim just by replacing that line you can have the game look for your own master server, that you can make. Correct? Or is the GG master server have some special things it in that Torque looks for...

Bryan