looking for information: Dedicated Servers and Master Servers
by James Brad Barnette · in Torque 3D Professional · 06/17/2009 (12:47 pm) · 4 replies
I'm looking for information or someone with the knowledge of how to make both a Torque 3D Dedicated server as well as a master server that will list them. The Master server is not that critical but I defiantly need dedicated servers.
so if anyone can point me in the right direction here...
Thanx in advance,
James Brad Barnette
so if anyone can point me in the right direction here...
Thanx in advance,
James Brad Barnette
About the author
#2
06/17/2009 (2:20 pm)
ok actually there is only ever going to be maybe 2 servers to connect to is there a way I can manually put those in a txt file or something so that they show in the server list without having a master server?
#3
A "dedicated" server is merely a scripting concept. For a dedicated server you:
- Don't create a window (canvas).
- Don't initialize direct input (unneeded).
- Use the null devices for graphics and sound.
- Open a command-line console (enableWinConsole(true)).
- Don't perform a local connection when hosting a game (since the server is dedicated and won't play the game itself).
06/18/2009 (5:21 am)
You can use a simple PHP page or something like that. Your master servers connect to it to add themselves to a list, and clients connect to get said list, using either HTTPObject or the libcurl resource.A "dedicated" server is merely a scripting concept. For a dedicated server you:
- Don't create a window (canvas).
- Don't initialize direct input (unneeded).
- Use the null devices for graphics and sound.
- Open a command-line console (enableWinConsole(true)).
- Don't perform a local connection when hosting a game (since the server is dedicated and won't play the game itself).
#4
It's best to have a way to download this list from somewhere... Manoel's suggestion of having this as a dynamic PHP page (or even a static HTML or text file) on a web server is a great one.
06/18/2009 (5:39 am)
@James - Keep your own list of servers and then use the script connect() function to connect to the one the user selects.It's best to have a way to download this list from somewhere... Manoel's suggestion of having this as a dynamic PHP page (or even a static HTML or text file) on a web server is a great one.
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
MasterServer: there has been a cgi resource in the old days for TGE / TGEA, potentially its still around. (don't worry about it not beeing for T3D, i highly doubt that that part of the source has been touched since TGE )