Game Development Community

How do I make a Master Server on a linux server

by Weston Elliott · in Torque Game Engine · 01/28/2007 (2:47 pm) · 55 replies

I would really like to setup a master server on my linux server. Is it possible to setup a Master Server in PHP, MySQL, or PERL? Is there a script or something I can download to make my own Master server? Are there any good tutorials or previous threads like this that could help me out?

I know I am asking a lot of questions (sorry), but here is another question to throw into this thread so I don't have to start a whole new one... I made a game using the TGE 1.5 FPS Starter Kit. Whenever a client makes a game it creates a LAN server. How do I set it so it makes a dedicated server?

I really appreciate anybody who attempts to help me with these questions (thanks in advance).
Page«First 1 2 3 Next»
#41
02/01/2007 (10:40 am)
It took me longer to write the README.txt than it took to compile and test it.

I posted a link to a basic howto to compiling applications on Linux. here it is again.

You will need to login to the machine, get TNL there, check the version of gcc, make the Makefiles and test it in much the same way that you did the XP version. You can even test it with the XP clients as long as you put in the server address. You will have to make sure that the server firewall lets you through.
#42
02/01/2007 (11:52 am)
Isn't there a C++ compiler somewhere that I can get that will allow me to compile C++ applications for linux on a windows operating system?
#43
02/01/2007 (11:53 am)
Quote:Isn't there a C++ compiler somewhere that I can get that will allow me to compile C++ applications for linux on a windows operating system?

GCC can do that. But then how would you run it?

It's easier just to install linux than it would be to set up a cross compilation environment like that.

Gary (-;
#44
02/01/2007 (11:57 am)
What I want to do is download and install a C++ compiler on my Windows XP computer that will compile applications for linux. After I compile the master server app for linux I will upload it to my linux server, configure it, and run it...

If GCC can do that then where can I get that version of GCC?
#45
02/01/2007 (12:17 pm)
gcc.gnu.org

There is a lot of information on targeting platforms available. Do a Google search, read the gcc documentation, roll up your sleeves and get your hands dirty. Also, make sure you become intimate with the TNL example code because you will most likely be making some changes to accommodate your game.

I would recommend doing it natively on the Linux server. Shell into the server, run gcc --version to see what version is installed (if it is installed). You will have a much easier time doing it from there.
#46
02/01/2007 (1:14 pm)
Cross compilation can be done. Heres a link:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4610
#47
02/01/2007 (1:16 pm)
Just keep in mind that to cross-compile, you are going to have to go through more steps and hoops (downloading, installing, and most especially configuring gcc for example) than if you simply did those on your linux box and compiled natively.
#48
02/04/2007 (5:54 pm)
Right now it will only let me make a server on LAN. How do I get it to make a non-LAN game?

This is what I am using right now...

Game.exe -dedicated -prefs Game/server/game_1_prefs.cs -mission Game/data/missions/cpdemo1.mis
#49
02/04/2007 (7:24 pm)
How do I set my game server up so It is displayed on the master server list instead of the LAN server list?
#50
02/05/2007 (7:36 am)
Which master server?

It would be a good idea to go through the serverQuery.cc/h files in engine/game/net to see what information Torque sends to the master server.

Right now you are starting a dedicated server client, but I don't know if you've actually changed your broadcast to point to a different master server.
#51
02/05/2007 (4:48 pm)
Do I change my broadcast in the serverQuery.cc/h ?
#52
02/05/2007 (5:32 pm)
I thought I just had to change the server info in the client and server prefs and defults...

$Pref::Server::RegionMask = 2;
$pref::Master[0] = "2:my computers IP:28001";
#53
02/06/2007 (7:58 am)
You don't have to change anything in the .cc/h files. But you have to make sure what you are broadcasting can be parsed by the master server. That was the point of looking through the source. To find out what information you're sending so that it can match you up correctly.

EDIT:
I'm assuming that 28001 is the port that you specified and not 29001, which is the default.
#54
02/07/2007 (8:18 am)
Yes the port I specified was 28001. Also I am trying to get a game server to display on the Master Server and not on LAN. I cant seem to stop the game server from showing up in LAN for some reason. How do I get it to conect to the Master Server instead of LAN?
#55
02/07/2007 (6:25 pm)
How do I get the game to connect to the master server instead of LAN?
Page«First 1 2 3 Next»