Fr/Howto: Multijoueur: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (→‎Serveurs: +server11)
m (languages)
Line 181: Line 181:
   
   
[[Category:Howto|Multiplayer]]
[[Category:Howto|Multiplayer]]
[[es:Howto: Multijugador]]
[[fr:Howto: Multijoueur]]
[[nl:Howto: Multiplayer]]


[[en:Howto: Multiplayer]]
[[en:Howto: Multiplayer]]
[[es:Howto: Multijugador]]
[[es:Howto: Multijugador]]
[[nl:Howto: Multiplayer]]
[[nl:Howto: Multiplayer]]

Revision as of 14:57, 12 November 2009

Grâce aux fonctions multi-joueurs de FlightGear, vous allez être capable de voir les autres pilotes connectés et vice-versa. Vous aurez alors la possibilité de voler en formation, de tester le ravitaillement en vol avec un avion ravitailleur piloté par un autre pilote ou de contacter le contrôle aérien pour les phases de décollage et d'atterrissage.

Si vous souhaitez héberger votre propre serveur multi-joueurs, vous serez sûrement intéressé par la page Howto: Héberger un serveur multi-joueurs.

Cependant, voler en mode multi-joueurs peut engendrer une chute du nombre d'images par secondes, en particulier lors du chargement de modèles d'avions très détaillés, ce qui cause ce qu'on pourrait appeler du lag (saccade des images). Etant donné que l'aéroport par défaut est celui de San Francisco (KSFO) et qu'aux heures de pointe il peut être très chargé, il vous est conseillé de voler soit en Europe (EDDT, LFLL, etc), soit dans des endroits peu fréquentés.

Serveurs

Veuillez noter: Les serveurs multi-joueurs sont tous interconnectés; cela signifie que vous n'avez pas besoin de vous connecter à un serveur particulier pour voir les autres pilotes connectés sur ce même serveur. Cependant, pour assurer des temps de réponse optimaux, il vous est fortement recommandé de vous connecter sur un serveur qui est géographiquement situé le plus près de chez vous, c'est-à-dire un serveur qui a un temps de réponse au ping le plus bas possible ou le moins fréquenté. Il est aussi recommandé de voler sur le même serveur pour un vol en formation rapprochée.


Server Localisation Tracked Opérateur Commentaires
mpserver01.flightgear.org Allemagne Oui Oliver Schroeder
mpserver02.flightgear.org Hong Kong Oui Pigeond Actuellement arrêté pour des raisons de bande passante consommée.
mpserver03.flightgear.org Allemagne Oui Arrêté depuis un temps certain.
mpserver04.flightgear.org UK Oui Jon Stockill
mpserver05.flightgear.org Dallas, Texas, USA Oui Brant Gipson
mpserver06.flightgear.org Suède Non Anders Gidenstam Bande passante restreinte.
mpserver07.flightgear.org Wisconsin, USA Oui Tom Betka
mpserver08.flightgear.org Frankfut am Main, Germany Oui Roland
mpserver09.flightgear.org Köln, Germany Oui Daniel Vigano
mpserver10.flightgear.org Montpellier, France Oui Alexis Bory
mpserver11.flightgear.org Vilnius, Lithuania Oui Darius

Utilisez ce lien pour vérifier la disponibilité des serveurs.

MPMap screenshot

Cartes multi-joueurs

1rightarrow.png Consultez la page MPMap à ce sujet.

Il y a une magnifique carte de visualisation temps réel des pilotes connectés mpmap01 et/ou mpmap02. Cela vous aidera à vérifier que vous êtes bien connecté sur un serveur.

Utilisation de fgrun

Options multi-joueurs sous fgrun
  1. Choisissez votre Aircraft ainsi que l'aéroport de départ comme indiqué dans Fgrun.
  2. Sur l'écran suivant, cochez la case Multiplayer. Cochez également AI models afin de voir les autres pilotes connectés et d'être vu. Dans la zone de saisie de texte, entrez votre callsign, puis dans la zone hostname, entrez l'adresse d'un serveur multi-joueurs (par exemple: mpserver01.flightgear.org). Indiquez 5000 pour le numéro de port à utiliser en entrée et en sortie (numéro par défaut).
  3. Cliquez sur run et vous allez pouvoir voler avec d'autres pilotes du monde entier !

Pour vérifier que vous êtes bien connecté en mode multi-joueurs, ouvrez votre navigateur et pointez sur l'URL http://mpmap02.flightgear.org/ (Hong Kong).

Lors de votre connexion, vous allez constater que vous serez prévenu de l'arrivée de tout nouveau pilote par un message du type: "<pilote>: Hello".

Pour des options plus avancées, l'onglet Advanced > network peut être ouvert où vous pourrez supprimer/modifier les lignes in et out.

Lancer fgfs multijoueur en ligne de commande

Pour ceux qui sont impatients et ont déjà une vague idée de ce qu'il font, les lignes de base pour le mode multijoueur sont:

--multiplay=out,10,server.adresse.ip,portnumber
--multiplay=in,10,votre.adresse.ip,portnumber
--callsign=anything 

Où le portnumber est habituellement 5000 et votre.adresse.ip l'adresse de votre interface réseau utilisée par FG pour se connecter au serveur - même si c'est une adresse locale en 192.168... Notez qu'il faut spécifier une adresse valide (non loopback: ie non 127.0.0.1) pour que FG soit heureux, même si cette limitation a été enlevée sur les versions les plus récentes des serveurs FG.

Avec les dernières versions de FG (depuis OSG), vous pouvez aussi laisser votre.adresse.ip blanche. FlightGear écoutera alors sur toutes les interfaces réseau.

--multiplay=in,10,,5000

Dans la plupart des cas et avec les FG récents, cette ligne est d'ailleurs facultative.

Regarder sur cette page pour voir si votre callsign est déjà utilisé, ne prenez pas un nom existant, ce qui peut causer de problèmes.

Plus détaillé, pour ceux qui ont du mal à suivre...

Essayez en premier ce qui précède, et si c'est un echec, lisez la suite.


** Page en cours de traduction ** Page en cours de traduction ** Page en cours de traduction **


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=MyName --multiplay=in,10,192.168.0.2,5000 --multiplay=out,10,mpserver02.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 Consultez la page Chat Menu à ce sujet.

To chat with other pilots, go to the "View" menu and select "Chat" at the bottom of the menu. Note that the other pilots may not have their chat box open, so they may not see your messages. NOTE: Multiplayer chat is not supported by FlightGear 0.9.10 or older.

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 View -> Chat. So if you think you've missed anything, go check there.

Related content