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 «Previous 1 2 3 Last »
#1
01/28/2007 (3:46 pm)
I don't know of any out-of-the-box solutions you can download, but certainly PHP+MySql can do the job. Go find a PHP telnet server example and extend it..
#2
01/28/2007 (4:00 pm)
Download TNL. It has a master server. It is under the GPL, so any changes that you make to the master server must be open as well.

-dedicated, I believe is the command line option to run in dedicated mode.
#3
01/28/2007 (4:09 pm)
Thank you all VERY much for your help!
#4
01/28/2007 (4:43 pm)
TNL costs $295 - I thought something like TLN came with TGE 1.5... Is there something like that that came with TGE?
#6
01/28/2007 (10:17 pm)
TNL is GPL'd. If you do not want to release your source code, then you pay the $295. Kind of like Quake/2/3.

You can also use the links that Benoit posted. Nice resources!
#7
01/28/2007 (10:19 pm)
Note: That if you do not distribute your masterserver, then you also do not have to distribute the source code.
#8
01/31/2007 (12:11 pm)
Benoit - I can't get the files from the 2 links you gave me to work with TGE version 1.5, it seems those were made for 1.3...

Also I can't find any tutorials on how to setup a master server with TNL.

Is there a tutorial / walkthrough somewhere that will teach me how to setup my own master server?
#9
01/31/2007 (12:24 pm)
I do not believe that there is.

Did you look through the source for the Master and MasterClient directories to get a handle on what it does?
#10
01/31/2007 (12:38 pm)
Yes I did, and I got really close to getting it working a few times. I don't know what I am doing wrong though...
#11
01/31/2007 (12:54 pm)
I am trying to setup my master server on master.xcomhome.com (in case this helps any)
#12
01/31/2007 (1:49 pm)
Do you have app-level access to the server?
#13
01/31/2007 (1:59 pm)
Just so I know I'm doing it right - what files and directories do I need on the Master Server?
#14
01/31/2007 (2:01 pm)
Then how are you starting the server process without such access? You need to be able to start the server to let it take and make connections.
#15
01/31/2007 (2:03 pm)
Oh never mind that last post - I DO have app-level access (sorry about that)...

"Just so I know I'm doing it right - what files and directories do I need on the Master Server?"
#16
01/31/2007 (2:10 pm)
Compile Master and MasterClient and test your connection.

You can also start the Master server and setup your Zap masterconfig. Then see if your client connects and reports the right data.
#17
01/31/2007 (2:20 pm)
So I upload the master directory and the masterclient directory to the server from TNL (along with all of the compiled files in those folders)?

777

Visual C++ 2005 Express Edition wont compile TNL for me for some reason. What do you use?
#18
01/31/2007 (2:30 pm)
You should only need the masterd.exe, master.cfg and masterclientd.exe from the EXE folder once you compile them. Change the port to whatever you want in master.cfg.

First, start the server (masterd.exe).
Second, start the client with a hosted server request (masterclientd.exe xxx.xxx.xxx.xxx:port -server).
Third, start the client with a hosted client request (masterclientd.exe xxx.xxx.xxx.xxx:port -client)

They will be connected.

I used VC 2005 Professional to compile the masterd and masterclientd projects.

Are you trying to run a windows compiled server on Linux?

EDIT: Spelling
#19
01/31/2007 (2:33 pm)
I am trying to compile the master server files on a Windows XP system and run it on a Linux server.
#20
01/31/2007 (2:39 pm)
That would be one problem there.

Try testing them on your windows box first. Then login to the linux box and compile them there. The makefiles are included.
Page «Previous 1 2 3 Last »