How to get Starter.FPS game working over the internet?
by Highlander · in Torque Game Engine · 12/13/2006 (1:33 pm) · 21 replies
Hello,
I want to play the starter.FPS game with a friend to start development of a game. I choose Start Mission, click on Host Multiplayer, and launch the mission. He clicks on Join Server, Query Master, but he gets the message "No servers found."
I am guessing this is because there is no master server at garagegames any longer?
So, how do we play over the Internet? Can I download a master server program that will work with Torque 1.4.2?
-Highlander
PS
I've got Torque 1.4.2 but I'd be willing to upgrade to 1.5 if anyone can tell me how to make the starter.FPS game work over the Internet using it.
I want to play the starter.FPS game with a friend to start development of a game. I choose Start Mission, click on Host Multiplayer, and launch the mission. He clicks on Join Server, Query Master, but he gets the message "No servers found."
I am guessing this is because there is no master server at garagegames any longer?
So, how do we play over the Internet? Can I download a master server program that will work with Torque 1.4.2?
-Highlander
PS
I've got Torque 1.4.2 but I'd be willing to upgrade to 1.5 if anyone can tell me how to make the starter.FPS game work over the Internet using it.
#2
I tried what you said (in Torque 1.4.2). This is what happened:
a cmd.exe window popped up with the line:
C:\Torque\SDK\example>torqueDemo.exe -game starter.fps -dedicated -mission starter.fps/data/missions/stronghold.mis
nothing is displayed in the cmd window below that line. After the cmd window opened, a second window opened called Torque Tutorial Base with a gray-background set of icons at the top, a white screen, and "Torque Game Engine" in large black letters with a red logo above it. I didn't see a list of what is loading.
I tried running Starter.FPS.Bat after that the CMD window was running (on the same PC), but it gave me an error saying:
"Copy of Torque is already running; exiting."
This is on Torque 1.4.2. What am I doing wrong?
12/13/2006 (2:06 pm)
Hi Mike,I tried what you said (in Torque 1.4.2). This is what happened:
a cmd.exe window popped up with the line:
C:\Torque\SDK\example>torqueDemo.exe -game starter.fps -dedicated -mission starter.fps/data/missions/stronghold.mis
nothing is displayed in the cmd window below that line. After the cmd window opened, a second window opened called Torque Tutorial Base with a gray-background set of icons at the top, a white screen, and "Torque Game Engine" in large black letters with a red logo above it. I didn't see a list of what is loading.
I tried running Starter.FPS.Bat after that the CMD window was running (on the same PC), but it gave me an error saying:
"Copy of Torque is already running; exiting."
This is on Torque 1.4.2. What am I doing wrong?
#3
If so, try joining it.
Aside from that, just make sure the spelling and caps are right.
12/13/2006 (2:20 pm)
Did the first window remain open?If so, try joining it.
Aside from that, just make sure the spelling and caps are right.
#4
Processor Init:
Intel Pentium 4
...
Math Init:
Installing standard C extensions
...
Input Init:
keyboard() input device created
...
where the ... represent more text under each section.
So it seems to be what you are referring to. However, how do I get around the "Copy of Torque is already running; exiting." error? Can you run the master server AND then click on Starter.FPS.bat on the same PC?
12/13/2006 (2:37 pm)
Yes, the first window remained open. I click on "console" in the second window (an option in the menu at the top) and I saw what stuff loaded apparently. It starts out with:Processor Init:
Intel Pentium 4
...
Math Init:
Installing standard C extensions
...
Input Init:
keyboard() input device created
...
where the ... represent more text under each section.
So it seems to be what you are referring to. However, how do I get around the "Copy of Torque is already running; exiting." error? Can you run the master server AND then click on Starter.FPS.bat on the same PC?
#5
12/13/2006 (2:37 pm)
Also, where does my friend put the IP address of my computer in?
#6
Your friend should find starter.fps in his quiery master window. He doesn't need the IP addy of your computer.
12/13/2006 (2:41 pm)
Once the masterserver is running, you can minimise it and then click the torqueDemo.exe, (make sure the main.cs points to starter.fps) and then join mission, then querie master. It will put you in the game.Your friend should find starter.fps in his quiery master window. He doesn't need the IP addy of your computer.
#7
12/14/2006 (5:49 am)
Huh? i tried that and i see my server in LAN query and when i try connect it hangs on mission loading.
#8
*a side note the ports you really need to forward are;
28000-28002 UDP
1031 UDP
1048 UDP
There is a product that is open source as well as indie licensed called Torque Network Library(TNL) that has the ability to force communication through routers without needing to have all of your customers/users forward ports in their routers, but until GG makes a resource for this integration I'm afraid most of us we will be stuck with praying that our users are advanced enough to know how to forward ports. Which I'm guessing if you are lucky will be about ~10% of the end users.
12/14/2006 (6:27 am)
I believe you may be having problems with your router. If you DMZ yourself that may fix the problem.*a side note the ports you really need to forward are;
28000-28002 UDP
1031 UDP
1048 UDP
There is a product that is open source as well as indie licensed called Torque Network Library(TNL) that has the ability to force communication through routers without needing to have all of your customers/users forward ports in their routers, but until GG makes a resource for this integration I'm afraid most of us we will be stuck with praying that our users are advanced enough to know how to forward ports. Which I'm guessing if you are lucky will be about ~10% of the end users.
#9
$defaultGame = "tutorial.base";
I changed it to
$defaultGame = "starter.fps";
and then double-clicked torqueDemo.exe and it worked fine. Someone @ GG should really put a readme.txt file in the example directory explaining that you need to do this despite the batch files.
Thanks Mike!!
Now I have a question about why my friend would not need my ip address to connect to the game. If the master server is running on my computer, how would his computer know how to connect to it ***over the internet***?? I mean when I open defaults.cs in the starter.fps\client directory, I see the lines:
// The master server is declared with the server defaults, which is
// loaded on both clients & dedicated servers. If the server mod
// is not loaded on a client, then the master must be defined.
// $pref::Master[0] = "2:master.garagegames.com:28002";
it seems to me therefore that the client on his computer will look for a master server at that address. Doesn't he need to change that to my ip address? Remember we're trying to do this over the Internet, not a LAN...
12/14/2006 (8:03 am)
OK I got it working. There's a batch file called "Starter.FPS.bat" that I assumed would launch Starter.FPS. However, when I looked in main.cs, it pointed to $defaultGame = "tutorial.base";
I changed it to
$defaultGame = "starter.fps";
and then double-clicked torqueDemo.exe and it worked fine. Someone @ GG should really put a readme.txt file in the example directory explaining that you need to do this despite the batch files.
Thanks Mike!!
Now I have a question about why my friend would not need my ip address to connect to the game. If the master server is running on my computer, how would his computer know how to connect to it ***over the internet***?? I mean when I open defaults.cs in the starter.fps\client directory, I see the lines:
// The master server is declared with the server defaults, which is
// loaded on both clients & dedicated servers. If the server mod
// is not loaded on a client, then the master must be defined.
// $pref::Master[0] = "2:master.garagegames.com:28002";
it seems to me therefore that the client on his computer will look for a master server at that address. Doesn't he need to change that to my ip address? Remember we're trying to do this over the Internet, not a LAN...
#10
I think there might be some confusion of terms, I think Mike Rowley meant to say that you were setting up a 'Dedicated' Server when he told you how to create that batch file, however the master server that the demo has the initial heartbeat with is at GG.
Hope I was of some help
12/14/2006 (8:18 am)
Umm... I think you are actually setting up the 'dedicated' server on your machine and using the 'master' server at '2:master.garagegames.com:28002'. If you aren't then I suggest you do just for testing purposes because everything is already setup for you.I think there might be some confusion of terms, I think Mike Rowley meant to say that you were setting up a 'Dedicated' Server when he told you how to create that batch file, however the master server that the demo has the initial heartbeat with is at GG.
Hope I was of some help
#11
12/14/2006 (10:04 am)
Yay i got it working but now i get it to show up on LAN , i can join the game, but would my friend be able to too?
#12
12/14/2006 (10:04 am)
Like if me and my friend had the same copy of the game.
#13
Affectworks is correct in his assumptions. I have a bad time with terms. :blush:
12/14/2006 (5:39 pm)
When your friend presses "querie master" he will see your starter.fps in the list. He clicks it and joins your game.Affectworks is correct in his assumptions. I have a bad time with terms. :blush:
#14
12/15/2006 (4:21 am)
So i see it on LAN and then i join, then my friend sees it on INTERNET ahh ok. I get it now
#15
or am i missing something
12/15/2006 (8:04 am)
Hey wait a minute i just tried with a friend and he cant see it in his list but i can in myn :@ im angry.or am i missing something
#16
For some unexplained reason many people cannot get their servers to show up on the GG master server. Whenever somebody posts complaining about this it ends up dismissed as user error, but it is a real problem.
12/15/2006 (10:02 am)
Saska,For some unexplained reason many people cannot get their servers to show up on the GG master server. Whenever somebody posts complaining about this it ends up dismissed as user error, but it is a real problem.
#17
12/15/2006 (7:05 pm)
It's usually a firewall problem.
#18
then it will join the dedicated server he made
I hope this works, i haven't tried it yet though.
12/16/2006 (12:03 am)
Well i found out one way you can play with your friends, one guy makes a dedicated server, then the other guy ingame goes to the console and does this command: -connect I hope this works, i haven't tried it yet though.
#19
But i think i got 1 gametype missing that i forgot to change back ive searched for hours cant find it, anyplace it might be hidden? ive checked:
server scripts game.cs
server init.cs,prefs.cs,defaults.cs
client prefs.cs,init.cs,defaults.cs
any hidden place you guys would know where it is?
12/16/2006 (2:26 am)
Guys, i found out how every other torque game got the servers working, they kept there folders name at starter.fps , so i changed everything i remember i changed etc. the prefs that pointed to what my game type is.But i think i got 1 gametype missing that i forgot to change back ive searched for hours cant find it, anyplace it might be hidden? ive checked:
server scripts game.cs
server init.cs,prefs.cs,defaults.cs
client prefs.cs,init.cs,defaults.cs
any hidden place you guys would know where it is?
#20
12/16/2006 (3:24 am)
Search your common folder.
Torque Owner Mike Rowley
Mike Rowley
Open notepad
Paste:
in it and save as masterServer.bat. Place this in the same folder as your torqueDemo.exe and click it. It will give you the dos window and you can watch all the files load. Then, when it's done, minimize it, open your game, and join. Have your friend join as well. It works. When you are done playing, just click the X to shut it down.
Now, this will work if you haven't changed the server names and types in the starter.fps demo.
If you have, make sure they all match.
Oh, and have fun.