De/Howto: Multiplayer: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "Mit der '''multiplayer''' Funktion von FlightGear können Sie andere Piloten sehen. Das macht es möglich in Formation zu fliegen, [[Howto: Air-Air Refueling|zu Lufttankern z...")
 
No edit summary
Line 137: Line 137:


== Den Windows Starter benutzen / FGRun ==
== Den Windows Starter benutzen / FGRun ==
[[File:Multiplayer.jpg|thumb|300px|Multiplayer options in [[FlightGear Wizard|Der Flightgear Starter FGRUN]]]]
[[File:Multiplayer.jpg|thumb|300px|Multiplayer options in [[FlightGear Wizard|FGRUN]]]]
# Select your [[aircraft]] and starting airport as normal in [[FlightGear Launch Control|FGRun]].
# Wählen Sie ihr [[Flugzeug]] und Startflughafen wie normal in [[FlightGear Launch Control|FGRun]].
# On the next screen, tick the "Multiplayer" box. Also tick the "AI models" box or you will not be able to see the other pilots' aircraft. Enter the callsign of your choice (check [http://fgfs.i-net.hu/modules/fgtracker/ this page] to see whether it is already in use or not. Do not pick a callsign that is already used!), enter mpserver01.flightgear.org in the "Hostname" box and 5000 into both the "in" and "out" boxes.
# Im nächsten Dialog, wählen Sie die "Multiplayer" Box an. Wählen Sie auch die Box "AI models" an, da Sie sonst die Flugzeuge anderer Piloten nicht sehen könnten. Geben Sie ein gewünschtes Rufzeichen ein (Bitte überprüfen Sie auf [http://fgfs.i-net.hu/modules/fgtracker/ dieser Seite] ob ihr gewünschtes Rufzeichen bereits in Verwendung ist oder nicht. Nehmen Sie kein Rufzeichen, das bereits verwendet wird!), geben Sie mpserver01.flightgear.org im Feld "Hostname" an, und 5000 in die Felder "in" und "out".
# Click run and you'll soon be flying with other pilots!
# Nach einem Klick auf "Run" werden Sie mit anderen Piloten fliegen können.


To confirm that it's working, you can go to the multiplayer map at; http://mpmap02.flightgear.org/ (in Hong Kong). Once FlightGear has started, you will notice chat messages that say "Hello" indicating pilots that are online and then as they join (you can change this message by editing the <tt><chat type="string">Hello</chat></tt> line in <tt>[[$FG ROOT]]/preferences.xml</tt>). You may wish to use a different server (i.e. "Hostname" entry).  
To confirm that it's working, you can go to the multiplayer map at; http://mpmap02.flightgear.org/ (in Hong Kong). Once FlightGear has started, you will notice chat messages that say "Hello" indicating pilots that are online and then as they join (you can change this message by editing the <tt><chat type="string">Hello</chat></tt> line in <tt>[[$FG ROOT]]/preferences.xml</tt>). You may wish to use a different server (i.e. "Hostname" entry).  

Revision as of 22:53, 29 September 2011

Mit der multiplayer Funktion von FlightGear können Sie andere Piloten sehen. Das macht es möglich in Formation zu fliegen, zu Lufttankern zu verbinden, die von echten Personen gesteuert werden, oder eine echte Flugsicherung um Start/Landefreigabe zu erbitten.

Der Multiplayermodus kann extrem hohe Frameraten verursachen, während dem Laden der Flugzeugmodellen. Gerade grosse Modelle können Stocken verursachen. Es wird empfohlen mit diesen an anderen Orten als KSFO zu fliegen, wo weniger Piloten in der Luft sind.

Servers

Bitte beachten Sie: Die Multiplayerserver sind untereinander verbunden; Sie müssen sich nicht zu einem bestimmten Server verbinden, damit Sie andere Piloten sehen können, die gerade auf diesem Server spielen. Am schnellsten geht es, wenn Sie sich mit dem Server verbinden, der ihnen geographisch am nähesten liegt, der der die kleinste Ping Zeit hat, oder zu denen, die am wenigsten besetzt sind.

Server Standort Tracker Verantwortlicher IRC Name Forum Name Kommentare
mpserver01.flightgear.org Deutschland Ja Oliver Schroeder os
mpserver02.flightgear.org Kansas, USA Sabin S-GECKO S-GECKO
mpserver03.flightgear.org Germany Ja Tobias Marx DocMarten
mpserver04.flightgear.org Vereinigtes Königreich Ja Jon Stockill Nav JonS
mpserver05.flightgear.org Chicago, USA Ja Brant IonCannon218
mpserver06.flightgear.org Göteborg, Sweden Nein Anders Gidenstam AndersG AndersG Offline seit 20.6.2011 bis in unbestimmte Zeit.
mpserver07.flightgear.org Wisconsin, USA Ja Tom Betka TB
mpserver08.flightgear.org Frankfurt am Main, Germany Ja Roland Quix0r Quix0r 10 TByte traffic, meistens kurze Pings
mpserver09.flightgear.org Köln, Germany Ja Daniel Vigano Fauchi95
mpserver10.flightgear.org Montpellier, France Ja Alexis Bory xiii xiii
mpserver11.flightgear.org Vilnius, Lithuania Ja Darius ffg
mpserver12.flightgear.org Amsterdam, the Netherlands Nein Rob evilslut evilslut
mpserver13.flightgear.org Grenoble, France Ja Charles Ingels charles cbz-026

Benutzen Sie das hier, dieses or das hier um zu überprüfen, ob die Multiplayer Server online sind. Die Standorte der Server können auch auf Google Maps abgerufen werden.

Wenn Sie daran interessiert sind, einen eigenen Multiplayer Server zu hosten, könnte das hier für Sie interessant sein. Einen Multiplayer Server aufsetzen.

MPMap screenshot

Multiplayer Karte

1rightarrow.png Unter MPMap gibt es zu diesem Thema einen Hauptartikel.

Es gibt eine schöne Online Karte, die die Position der Piloten, die gerade online sind, anzeigt. Die Karten sind hier zu finden: mpmap01 und/oder mpmap02. Das kann auch nützlich sein, um herauszufinden, ob Sie zu einem bestimmten Server verbinden können.

Mehrere Verbindungen pro Computer

Es ist möglich mehrere FlightGear Instanzen auf einem einzigen Computer auszuführen und mit all denjenigen zu einem Multiplayer Netzwerk zu verbinden. Bei dem jedoch muss man folgendes beachten:

  • Beide Instanzen benutzen denselben out Port
  • Die eine Instanz benützt den in port 5001, die Andere den in Port 5002.
  • Natürlich müssen beide Instanzen ein unterschiedliches Rufzeichen haben.

Den Windows Starter benutzen / FGRun

Multiplayer options in FGRUN
  1. Wählen Sie ihr Flugzeug und Startflughafen wie normal in FGRun.
  2. Im nächsten Dialog, wählen Sie die "Multiplayer" Box an. Wählen Sie auch die Box "AI models" an, da Sie sonst die Flugzeuge anderer Piloten nicht sehen könnten. Geben Sie ein gewünschtes Rufzeichen ein (Bitte überprüfen Sie auf dieser Seite ob ihr gewünschtes Rufzeichen bereits in Verwendung ist oder nicht. Nehmen Sie kein Rufzeichen, das bereits verwendet wird!), geben Sie mpserver01.flightgear.org im Feld "Hostname" an, und 5000 in die Felder "in" und "out".
  3. Nach einem Klick auf "Run" werden Sie mit anderen Piloten fliegen können.

To confirm that it's working, you can go to the multiplayer map at; http://mpmap02.flightgear.org/ (in Hong Kong). Once FlightGear has started, you will notice chat messages that say "Hello" indicating pilots that are online and then as they join (you can change this message by editing the <chat type="string">Hello</chat> line in $FG ROOT/preferences.xml). You may wish to use a different server (i.e. "Hostname" entry).

For more advanced settings, the Advanced > Network tab can be opened. You are able to remove the in or out lines only through this method for example.

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;

--multiplay=out,10,server.ip.address,5000
--callsign=anything 

where 5000 is the port number the server is listening on (which is 5000 for the official servers).

If you for some reason need to specify which local port and/or interface FlightGear should use add the following argument:

--multiplay=in,10,your.ip.address,portnumber

where portnumber is usually 5000 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. You can also leave your.ip.address blank. FlightGear will then listen on all network interfaces:

--multiplay=in,10,,5000

If you are using fgrun, please note that fgrun expects you to enter a valid (non-loopback, i.e. not 127.0.0.1) IP address or hostname for the local network interface.

Check this page to see whether your callsign is already in use or not. Do not pick a callsign that is already used, as that will create problems!

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'll be using for multiplayer FG. 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 your ISP might not give you the same IP address each time - if MP stops working, check this first.

Otherwise, your connection is likely via some kind of router that connects to your computer via an RJ-45, or "Ethernet" connector (similar shape to most Western telephone plugs), or by a wireless link. You need to find the IP address of that network interface.

  • Under linux, this can be found by logging in as root and typing "ifconfig". You may find more than one interface listed, beginning with "lo" - ignore that one. You should have something like "eth0" or "wlan0" also listed - look through this block of text for "inet addr". This will be followed directly by the number you're looking for, e.g. "inet addr:192.168.0.150"
  • Under Windows XP or Vista, click start, run, and type "cmd". In the terminal window which appears, type "ipconfig" This should show you your IP address - write it down.
  • With Windows 98, click start, run, and type "winipcfg" to get information about your IP address.

This section _ought_ to be unnecessary now with recent versions of the FG server. If you have problems though, it won't hurt to follow through.

Now, all (!) that remains is to configure your router to forward UDP port 5000 to the IP address you've just found. This is not something that can be described in step-by-step detail, because each manufacturer's configuration interfaces differ greatly. Some tips are given here - if you get stuck, ask nicely on the FlightGear IRC channel for help (details on the flightgear website).

You should know how to log on to your router's configuration page, usually via a web browser. You are looking for settings pertaining to "port forwarding" "virtual server" "Forwarding Rules" or similar. When you have found the relevant settings, you need to add a rule that forwards port 5000 to the IP address you discovered earlier. If there is a choice given, ensure it is UDP ports that are forwarded. If there is no choice, you may assume that both TCP and UDP are being forwarded. Save your configuration, and most routers will probably then need to be rebooted to apply the changes.

Note: (for BSD users) If you are using a ADSL modem, you might have to put the port forward command into the ppp.conf file rather than firewall. This is because the firewall script will only run each time the machine is booted rather than the ppp line coming back online.

Finally, start FG using the command line given right at the start (if you're using the windows launcher you will find entry boxes for Multiplayer arguments - insert the relevant details there). You will end up with something like this;

fgfs --callsign=test --multiplay=in,10,192.168.0.2,5000 --multiplay=out,10,mpserver05.flightgear.org,5000 \
--airport=KSFO --runway=28R --aircraft=hunter 

Choose your own callsign - this is currently limited to seven characters. Check this page to see whether your callsign is already in use or not. Do not pick a callsign that is already used, as that will create problems!

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'  
FGMultiplayRxMgr::ProcessRxData - Add new player. IP: 10.0.0.36,  
Call: john51a,model: Aircraft/ufo/Models/ufo.xml 

You MUST give your local, behind-the-router IP address for MultiPlayer to work. Trust me on this one!

You should check that your firewall is not causing problems - either turn it off _temporarily_ or add an exception to allow incoming connections on port 5000.

If it's still just not working for you, ask nicely on the FlightGear IRC channel and someone should be able to assist.

Multiplayer Chat

1rightarrow.png Unter Chat Menu gibt es zu diesem Thema einen Hauptartikel.

To chat with other pilots, go to the "Network" menu and select "Chat" or "Chat Menu" at the bottom of the menu. Note that the other pilots may not have their chat box open nor chat messages enabled, so they may not see your messages.

The shortcut for chatting is "_" (underscore) and it brings up a small window where you can type. By default, other people's messages are displayed at the top of Flightgear's window for a few seconds, but it will appear for a much longer time in the window at Network > Chat. So if you think you have missed anything, go check there.

NOTE: Multiplayer chat is not supported by FlightGear 0.9.10 or older.

Coping with abusive behaviour

Should you become victim of abusive or annoying behaviour by any pilot you have option to ignore him or her. To activate the ignore function open the Network->"Pilot list" dialog and click the ignore button next to the pilot's call sign. In FlightGear 2.0.0 this will prevent chat messages from the ignored pilot from appearing and in FlightGear GIT of 21 May 2010 and later it will additionally prevent his aircraft from appearing.

NOTE: The ignore function is supported by FlightGear 2.0.0 or later.

Related content