Setting up a Master Server?
by Kevin Petrychyn · in Torque Game Builder · 08/04/2006 (5:36 pm) · 5 replies
Hi! First, I have to apologize for asking what is probably some uber n00b questions, but I haven't been able to find the answers anywhere.
1) What exactly would be involved in setting up a dedicated server for a game written with TGB? Basically what I want is to have a "server" that users can connect to in order to play online games with each other, something like the concept of Yahoo! Games (except not a website, and not in Java). My best guess is that I would need to have a computer/server on which I load a copy of the game, get a static IP for that computer/server, and then add that IP to $pref::Master. From there, I think I should be able to do things like queryMaster(), and it should work as expected. Is there anything else I'd need to do to allow clients to access that server?
2) Would this server need to be running Windows? Or would it be possible to have it running Linux? What would I need to do for that to work? I remember reading in another topic that I can run a "DEDICATED" build on a Linux machine, but it didn't specify how to do so.
3) What exactly is master.garagegames.com for that I keep reading about? Could it possibly help me do what I want to do in number 1 above?
Any help is appreciated. Sorry again for the n00b questions.
Kevin Petrychyn
1) What exactly would be involved in setting up a dedicated server for a game written with TGB? Basically what I want is to have a "server" that users can connect to in order to play online games with each other, something like the concept of Yahoo! Games (except not a website, and not in Java). My best guess is that I would need to have a computer/server on which I load a copy of the game, get a static IP for that computer/server, and then add that IP to $pref::Master. From there, I think I should be able to do things like queryMaster(), and it should work as expected. Is there anything else I'd need to do to allow clients to access that server?
2) Would this server need to be running Windows? Or would it be possible to have it running Linux? What would I need to do for that to work? I remember reading in another topic that I can run a "DEDICATED" build on a Linux machine, but it didn't specify how to do so.
3) What exactly is master.garagegames.com for that I keep reading about? Could it possibly help me do what I want to do in number 1 above?
Any help is appreciated. Sorry again for the n00b questions.
Kevin Petrychyn
About the author
#2
Since there is a nice big 'query Master server' button in there by default..
I was honestly hoping to not have to create my own and got all happy when I saw the button while doing the checkers tutorial..
08/14/2006 (9:27 am)
So any chance the default Networking GUIs are going to be updated to reflect this?Since there is a nice big 'query Master server' button in there by default..
I was honestly hoping to not have to create my own and got all happy when I saw the button while doing the checkers tutorial..
#3
And I was able to create my own "Master Server" for the checkers Demo.
It took less than an hour including the download and setup time for ActiveState Perl.
08/14/2006 (9:51 am)
I followed this link CLICK HEREAnd I was able to create my own "Master Server" for the checkers Demo.
It took less than an hour including the download and setup time for ActiveState Perl.
Torque Owner Ricky Taylor
What I'd do would be the following:
+ Client Starts
+ Connects to your server (NOT a master server)
+ Lists games (cmdToServer/Client etc)
+ User finds/creates a game
+ Lobby...
+ Then the game starts:
Host:
+ Starts a listen server
+ Game starts.
Client:
+ Waits 10s
+ Connects to host's IP.
+ Game Starts.
2) You can run on windows/linux/mac. You could even disable GUI for the dedicated server and run it on a standard dedicated linux server.
3) master.garagegames.com is the master server for TGE. All games made with TGE default to finding games via that server. They use game-name filters to make sure they cant connect to other games.
Hope that helps!
-- Ricky