Howto:Multiplayer: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
TODO: provide a short guide about how to use FlightGear's multiplayer features from fgrun
= Using the Windows launcher / fgrun =
 
Select your aircraft and starting airport as normal.  On the next screen, tick the "Multiplayer" box, enter a callsign of your choice, enter mpserver01.flightgear.org in the "Hostname" box and 5000 into both the "in" and "out" boxes.  Click run and you're hopefully sorted!
 
To confirm that it's working, you can go to http://mpmap01.flightgear.org and use the multiplayer map there.
 
You may wish to use a different server (i.e. "Hostname" entry); currently available are:
 
mpserver01.flightgear.org (in Germany)
mpserver02.flightgear.org (in Hong Kong)
mpserver03.flightgear.org (East Coast USA)
 
= Using fgfs from the command line =


First, for those who are very impatient and have a vague idea about what they're doing, the basic arguments to pass to fgfs for multiplayer are these;
First, for those who are very impatient and have a vague idea about what they're doing, the basic arguments to pass to fgfs for multiplayer are these;
Line 8: Line 20:


     --callsign=anything  
     --callsign=anything  


Where portnumber is usually 5000 or 5002 and your.ip.address is the ip address of the network interface being used by FG to connect to the server - even if that's a local 192.168 type address.  Please note that although this limitation has been removed in the most recent versions of the FG server; you should still specify a valid (non-loopback, i.e. not 127.0.0.1) IP address to keep the FG client happy.
Where portnumber is usually 5000 or 5002 and your.ip.address is the ip address of the network interface being used by FG to connect to the server - even if that's a local 192.168 type address.  Please note that although this limitation has been removed in the most recent versions of the FG server; you should still specify a valid (non-loopback, i.e. not 127.0.0.1) IP address to keep the FG client happy.
Servers currently available are:
* mpserver01.flightgear.org (in Germany)
* mpserver02.flightgear.org (in Hong Kong)
* mpserver03.flightgear.org (East Coast USA)


Port 5000 is usually for the latest stable version of FlightGear. Currently 0.9.10
Port 5000 is usually for the latest stable version of FlightGear. Currently 0.9.10
Line 21: Line 27:
Port 5002 is mainly used for development, i.e. stable version of FlightGear might not work with this server.
Port 5002 is mainly used for development, i.e. stable version of FlightGear might not work with this server.


Now, going more slowly for those who are completely lost... Try the above first, and if it doesn't work, read on.
== Now, going more slowly for those who are completely lost... ==
 
Try the above first, and if it doesn't work, read on.


First of all, you need to know the IP address of the network interface you're going to be running FG multiplayer over. If your Internet connection is via an ADSL modem that plugs directly into your computer with a USB connection, you should be able to find your IP address by visiting http://www.whatismyip.com . Please note that this address may very well change every now and again - if MP stops working, check this first.
First of all, you need to know the IP address of the network interface you're going to be running FG multiplayer over. If your Internet connection is via an ADSL modem that plugs directly into your computer with a USB connection, you should be able to find your IP address by visiting http://www.whatismyip.com . Please note that this address may very well change every now and again - if MP stops working, check this first.
Line 49: Line 57:


Once you have started FG, you should, if others are flying, see messages in the terminal from which FG was started, similar to the following;
Once you have started FG, you should, if others are flying, see messages in the terminal from which FG was started, similar to the following;


     Initialising john51a using 'Aircraft/ufo/Models/ufo.xml'   
     Initialising john51a using 'Aircraft/ufo/Models/ufo.xml'   
Line 63: Line 70:
There is a very nice online map which displays the location of online pilots at http://mpmap01.flightgear.org .  You will also find this useful to check that you are successfully connecting to the server.
There is a very nice online map which displays the location of online pilots at http://mpmap01.flightgear.org .  You will also find this useful to check that you are successfully connecting to the server.


THE FLIGHTGEAR MULTIPLAYER ROUGH HOWTO


(Courtesy of Stuart Buchanan, copied from the FG Devel mailing list, 04/17/2006)
2006-05-27
 
OK. Using the launcher, after you select your aircraft and starting
airport you are presented with a window showing lots of options and the
"Run" button on the bottom right.
 
Above that you'll see a big load of text (which is actually what will be
run to start FG). Above that text on the right is a box titled
"Multiplayer" with a checkbox beside the word "Multiplayer" and a series
of text input fields.
 
To run multiplayer, do the following.
 
1) Check the checkbox. This enables multiplayer
2) Choose an identifier for yourself - For example "TODD".
3) Enter the multiplayer server you wish to use. If you are in Europe, use
"mpserver01.flightgear.org", in Asia use "mpserver02.flightgear.org", and
in the USA use "mpserver03.flightgear.org". They are all connected
together, but it is best to use the one closest to you
3) In the text boxes labeled "in" and "out", enter "5000"
4) Press Run.
 
You should see FG start up as normal. If you point a browser at
http://mpmap01.flightgear.org/ and select the server you chose, you should
see yourself on the "pilots" tab.
 
In the instructions above, when you enter values, don't include the
quotation marks - i.e. for your callsign you'd enter TODD rather than
"TODD".
 
If that doesn't work, your should see something in the FG text window
indicating if FG can't reach the server. Typically this will be due to
firewalls, and I don't know enough about Macs to help.
 
You might want to try the FG IRC channel to see if someone there can help.
 
 
 
TH E FLIGHTGEAR MULTIPLAYER ROUGH HOWTO
 
2005-09-08
6

edits

Navigation menu