Server Query Filtering
by Bryce · in General Discussion · 03/31/2009 (6:07 pm) · 1 replies
Hello,
I've been experimenting with getting multiplayer functionality into my TGE game. I've got it working the way I want it to, but I noticed something when testing it with two computers. If I host a server on the game I made (Computer 1), and open up a clean install of TGE on the other computer (Computer 2), the fresh TGE on computer 2 picks up the server on computer 1. I'm a little unfamiliar with the network code, and I want to know if there is anyone reading this who knows how to make my game only host servers visible to a game of the same type?
Thanks, help is appreciated!
I've been experimenting with getting multiplayer functionality into my TGE game. I've got it working the way I want it to, but I noticed something when testing it with two computers. If I host a server on the game I made (Computer 1), and open up a clean install of TGE on the other computer (Computer 2), the fresh TGE on computer 2 picks up the server on computer 1. I'm a little unfamiliar with the network code, and I want to know if there is anyone reading this who knows how to make my game only host servers visible to a game of the same type?
Thanks, help is appreciated!
Torque 3D Owner Bruce Wallace
in the function initClient() it sets the server query filter to the app name.
$Client::GameTypeQuery = $appName;
you can change it to not filter servers out by changing this to any.
$Client::GameTypeQuery = "Any";
There are a few filters that can be set including game type.