Game Development Community

Getiing your game to be listed on the master server.

by AllynMcelrath · in Torque Game Engine · 04/18/2006 (12:13 pm) · 25 replies

Im curently looking at all the info i can find about using the master server.

I cant seem to get my name to be uniquely listed on the master server. Im checking this by using the server monator located at gnometech.com.

While i have found and changed the following

SERVER


In /server/defaults.cs

// List of master servers to query, each one is tried in order
// until one responds
$Pref::Server::RegionMask = 2;
$pref::Master[0] = "2:master.garagegames.com:28002";

// Information about the server
$Pref::Server::Name = "mygame";
$Pref::Server::Info = "This is a Private test server.";

in /server/game.cs

[code]

function onServerCreated()
{
   // Server::GameType is sent to the master server.
   // This variable should uniquely identify your game and/or mod.
   $Server::GameType = "mygame";

   // Server::MissionType sent to the master server.  Clients can
   // filter servers based on mission type.
   $Server::MissionType = "Any";

   // GameStartTime is the sim time the game started. Used to calculated
   // game elapsed time.
   $Game::StartTime = 0;

in /server/prefs.cs

$Pref::Server::AdminPassword = "";
$Pref::Server::BanTime = 1800;
$Pref::Server::ConnectionError = "You do not have the correct version of the FPS starter kit or the related art 

needed to play on this server, please contact the server operator for more information.";
$Pref::Server::FloodProtectionEnabled = 1;
$Pref::Server::Info = "This is a Private test server.";
$Pref::Server::KickBanTime = 300;
$Pref::Server::MaxChatLen = 120;
$Pref::Server::MaxPlayers = 64;
$Pref::Server::Name = "mygame";
$Pref::Server::Password = "";
$Pref::Server::Port = 28000;
$Pref::Server::RegionMask = 2;
$Pref::Server::RPGDialog::ActionPath = "starter.fps/data/dialogs/dla/";
$Pref::Server::TimeLimit = 20;

CLIENT



as well as in /client/init.cs

// Game information used to query the master server
   $CLient::GameType = "mygame";
   $Client::GameTypeQuery = "mygame";
   $Client::MissionTypeQuery = "Any";

in /client/prefs.cs i found ...

$pref::Master0 = "2:master.garagegames.com:28002";
$Pref::Server::Info = "This is a Private test server.";
$Pref::Server::Name = "mygame";
$Pref::Server::Port = 28000;
$Pref::Server::RegionMask = 2;

what am i missing? what did i get wrong?

If some one could list all the .cs files that need to change and what to change in each to uniquley list your game i would be very gratefull!
Page«First 1 2 Next»
#21
01/11/2009 (5:05 am)
I know this thread is quite old but I still have the same problem that our game
is not listed on the master server. I was looking all the sources I could find here
in the forum but nothing helps. Is there something I can make completely wrong
thats working like this ?? I can see in the console that the game sents the heart-
beat to the master server, all seems to work. I took down my firewall but doesn't
help. When I'm looking to Gnometech site, also our game is not listed there.
Until here it took me about three days with no luck....
Any help or adwise to sucksess will be wonderfull....

Michael
#22
01/11/2009 (9:32 am)
From my notes on getting this to work(my game is usually listed under Test App, www.60tons.com

Change these global variables in starter.fps\client\init.cs. Used later to search for servers
$Client::GameTypeQuery = "Test App";
$Client::MissionTypeQuery = "Any";

Change in common\server\game.cs
$Server::GameType = "Test App";
$Server::MissionType = "TeamPlay";

Comment out in server\default.cs and delete pref files
// $Pref::Net::DisplayOnMaster = "Never";

Change port forwarding router to allow both TCP(?) and UDP ports 28000 to 28000 to server machine
#23
01/11/2009 (9:55 am)
The most common problem is that the machine hosting the game is not reachable from the outside of the network the hosting machine resides in. Meaning Internet users cannot connect to the hosting machine at all due to a firewall or NAT. So make sure that the port forwarding is setup correctly if the machine doesn't have a public IP address dedicated to it. Also make sure that any firewall hardware or even Windows firewall (for those of you who host on Windows) isn't blocking incoming connections or in this case specifically UDP incoming traffic.
#24
01/12/2009 (4:12 am)
Joseph R.
Thanks a lot, your notes makes it possible for us to see our game on the list.
A bit strange why it must be "Test App" but its working.
Again , thank you....

Best regards Michael
#25
05/24/2010 (10:56 pm)

Hi all


http://www.torquepowered.com/community/resources/view/14666/

use this above link for master server. First you have to run the python script then only the master server will displayed.

Page«First 1 2 Next»