Setting up multiplayer
by Derek Stanton · in Torque Game Engine · 11/04/2007 (1:49 am) · 5 replies
I am just trying to set up a multiplayer game for a friend and I to mess around in using starter.fps. How can I go about doing this? In the console it is sending and recieving heartbeats from the master server but my server isn't showing up on the list. Is there a way he can just put in an IP and connect to it or something? Are there certain ports I need to open? Can someone help me!??!
Thank you.
Thank you.
About the author
#2
11/04/2007 (1:14 pm)
I am still having troubles.. I was thinking that the line you posted about was for just the Master Server, is this not the case?
#3
11/04/2007 (1:29 pm)
I was looking in the Client/NewMission.cs and found this.function connect(%server)
{
%conn = new GameConnection();
%conn.connect(%server);
}Would it work if his friend entered connect("IP ADDRESS HERE");into the console during runtime to try and force a connection to a specific IP?
#4
see: http://www.garagegames.com/docs/tge/general/apbs05.php
see the section on "Torque Demo Command Line Arguments:"
i.e.: torqueDemo -connect
Where adding "-connect " to your command-line will connect to a specific server clean as you please, and no messy or unwanted editing that will ruin any flexibility later or cause un-wanted/expected hardships in code.
11/04/2007 (8:40 pm)
Mmmm.. that might not be such a good idea... for several reasons, but particularly when it appears that you can you can simply put it in the command-line as stated in the docs.see: http://www.garagegames.com/docs/tge/general/apbs05.php
see the section on "Torque Demo Command Line Arguments:"
i.e.: torqueDemo -connect
Where adding "-connect " to your command-line will connect to a specific server clean as you please, and no messy or unwanted editing that will ruin any flexibility later or cause un-wanted/expected hardships in code.
#5
11/05/2007 (12:07 pm)
Using the console and using the .bat file with -connect work.. But one problem. I was told that I don't have a connection named ServerConnection and because of that many client side things which are looking at the object name won't work.
Torque Owner Garth Johnson
$pref::Master[0] = "2:
..you will want to make that reflect your server address and port. Then open the port in any firewalls in between you and the server.
You can launch the game client using the supplied Starter.FPS.bat and the server with Starter.FPS Dedicated.bat.
Hope that helps.