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).
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).
#22
01/31/2007 (2:42 pm)
When you load and convert the solution (back it up, too when prompted), right-click on masterd and build it. Do the same with masterclientd. Then look in your EXE folder. Test them on your XP config to get an idea of what you should expect.
#23
"------ Build started: Project: masterclient, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file 'wsock32.lib'
Build log was saved at "file://c:\Documents and Settings\Ron Elliott\Desktop\tnl-1.5.0-source\tnl\masterclient\Debug\BuildLog.htm"
masterclient - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
No EXE files are made.
::(
01/31/2007 (2:55 pm)
When I build them I get..."------ Build started: Project: masterclient, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file 'wsock32.lib'
Build log was saved at "file://c:\Documents and Settings\Ron Elliott\Desktop\tnl-1.5.0-source\tnl\masterclient\Debug\BuildLog.htm"
masterclient - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
No EXE files are made.
::(
#24
Edit: and the last i checked, it didn't support GCC4
01/31/2007 (3:01 pm)
Building on windows won't do you any good if you intend to run it on linux. You need to build it on linux.Edit: and the last i checked, it didn't support GCC4
#25
And Armed is right. Have you ever compiled anything from the command line before on linux?
01/31/2007 (3:03 pm)
Install the Platform SDK from Microsoft.And Armed is right. Have you ever compiled anything from the command line before on linux?
#26
[edit] I have never compiled anything from the command line on Linux before.
01/31/2007 (3:12 pm)
How do I build it for Linux?[edit] I have never compiled anything from the command line on Linux before.
#28
01/31/2007 (3:29 pm)
I installed the Platform SDK PSDK-x86.exe <-- thats the correct one right?
#29
Once you have that, you should be able to compile it and test it on your XP machine.
01/31/2007 (3:30 pm)
It should be, though there have been several updates to it. Did you do the web install? It will check for the most current version and updates.Once you have that, you should be able to compile it and test it on your XP machine.
#30
01/31/2007 (3:43 pm)
I did use the web installer. Its still installing though...
#31
01/31/2007 (3:44 pm)
It'll be installing for a bit. Nothing like installing VS2005 Pro, but it will take a while.
#32
01/31/2007 (3:51 pm)
This will allow me to compile something for a Linux system?
#33
You will either have to login to the linux system or learn platform targeting with gcc to compile it for linux.
EDIT: grammatical clarification. I'm really sucking today.
01/31/2007 (3:53 pm)
No. It will let you compile it to test on XP so that you can adequately judge whether it is working on the linux system.You will either have to login to the linux system or learn platform targeting with gcc to compile it for linux.
EDIT: grammatical clarification. I'm really sucking today.
#34
01/31/2007 (4:06 pm)
David, we all have days like that ;)
#35
01/31/2007 (4:59 pm)
Well the Platform SDK PSDK-x86.exe finished installing and I tried to build master and masterclient again, but I am getting the same errors as before... I have pulled most of my hair out over this master server thing now. Is there a pre-compiled master server or TNL master server anywhere?
#36
I have the copy I compiled, but I won't be able to get to it until tomorrow morning. It's XP, though, and I don't have a linux base to compile it on right now. Vista took up my linux test station.
It would be good if you made sure that you understood the code and exactly what is happening for support purposes.
01/31/2007 (5:05 pm)
Did you add it to your libraries and such?I have the copy I compiled, but I won't be able to get to it until tomorrow morning. It's XP, though, and I don't have a linux base to compile it on right now. Vista took up my linux test station.
It would be good if you made sure that you understood the code and exactly what is happening for support purposes.
#37
01/31/2007 (5:52 pm)
Yes, I added it to my libraries and whatnot - still getting the same errors... My hair is gone, my legs are next ::(
#38
01/31/2007 (6:02 pm)
Does anybody have a pre-compiled linux master server that I could have a copy of? It would really help me out a TON...
#40
However, exactly how do I get the master server to compile and run on a linux operating system?
02/01/2007 (10:21 am)
Great, thank you David! Did you just put all of that together? It helped me a lot...However, exactly how do I get the master server to compile and run on a linux operating system?
Torque Owner Weston Elliott
Weston Elliott