Fr/Howto: Multijoueur: Difference between revisions

Jump to navigation Jump to search
m (languages)
Line 127: Line 127:
=== Plus détaillé, pour ceux qui ont du mal à suivre... ===
=== 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.
Essayez en premier ce qui précède, et si vous rencontrez des difficultés, lisez la suite. Notez qu'avec les versions récentes de FlightGear, l'adresse IP locale n'est plus forcément nécessaire ce qui simplifie grandement la mise en oeuvre du mode multi-joueurs. Cependant, gardez à l'esprit les manipulations suivantes au cas où vous rencontriez des problèmes, elles peuvent vous aider.




Dans un premier temps, vous avez besoin de connaître l'adresse IP de votre ordinateur. En général, il s'agit d'une adresse de classe C du type 192.168.0.x mais elle peut être différente, tout dépend de votre installation.
La configuration la plus courante est un ordinateur derrière une box avec une connexion Ethernet entre les deux, cette vox étant en fait un routeur.
Au niveau de ce routeur, vous devrez rediriger toutes les connexions entrantes sur les ports 5000 et 5001 en UDP vers votre ordinateur en ajoutant une route statique. Pour cela, connectez-vous via un navigateur sur votre box et cherchez un menu de configuration du type "route statique" ou quelque chose comme cela.
Cette modification indiquera à votre box qu'elle devra rediriger toute connexion entrante sur les ports 5000 et 5001 vers votre ordinateur.
Selon le modèle de votre box (et il y en a beaucoup), vous serez sûrement obligé de la redémarrer.


'''** Page en cours de traduction ** Page en cours de traduction ** Page en cours de traduction **'''
Si votre ordinateur est directement connecté à un modem ADSL via une liaison USB, vous aurez alors besoin de connaître l'adresse IP qui vous est attribuée par votre fournisseur d'accès. Pour cela, ouvrez un navigateur et allez sur [http://www.whatismyip.com cette page]. Dans ce cas, vous n'avez pas besoin de suivre les manipulations qui suivent et qui permettent de connaître l'adresse IP locale.




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.
Pour connaitre l'adresse IP de votre ordinateur, voici comment faire:


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.
* Sous '''Linux''', dans un shell, tapez la commande suivante:


* 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"
<code>
* 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.
/sbin/ifconfig
*With '''Windows 98''', click start, run, and type "winipcfg" to get information about your IP address.
</code>


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.
Vous devriez obtenir quelque chose comme ça:


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).
<code>


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.
eth0      Link encap:Ethernet  HWaddr 00:0b:cd:98:4a:5c 
          inet adr:192.168.1.67  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::20b:cdff:fe98:4a5c/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:2379 erreurs:0 :0 overruns:0 frame:0
          TX packets:1915 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          Octets reçus:1595650 (1.5 MB) Octets transmis:331672 (331.6 KB)
...


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.
</code>


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;
Dans cet exemple, la commande ''ifconfig'' renvoie la configuration de l'interface eth0. Vous pouvez bien sûr disposer d'interfaces réseau supplémentaires. L'important est de connaitre l'adresse IP de l'interface réseau par laquelle vous êtes connecté à internet.
Si vous êtes connecté par une interface Wifi, vous aurez vraisemblablement une interface nommée ''wlan0''.


fgfs --callsign=MyName --multiplay=in,10,192.168.0.2,5000 --multiplay=out,10,mpserver02.flightgear.org,5000 --airport=KSFO --runway=28R --aircraft=hunter
* Sous Windows 98/Me/Se, faites ''Démarrer->Executer'', puis tapez ''winipcfg''.


Choose your own callsign - this is currently limited to seven characters. Check [http://fgfs.i-net.hu/modules/fgtracker/ 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!
Ceci devrait ouvrir une fenêtre vous montrant tous les paramètres des interfaces réseau, dont l'adresse IP de votre machine.


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;
* Sous Windows XP/Vista, ouvrez une commande DOS ''Démarrer->Accessoires->Invite de commande'', puis tapez la commande suivante:


  Initialising john51a using 'Aircraft/ufo/Models/ufo.xml' 
<code>
FGMultiplayRxMgr::ProcessRxData - Add new player. IP: 10.0.0.36, 
  ipconfig /all
Call: john51a,model: Aircraft/ufo/Models/ufo.xml
</code>


You MUST give your local, behind-the-router IP address for MultiPlayer to work. Trust me on this one!
Ceci devrait également vous fournir toutes les informations relatives à votre (ou vos) carte réseau.


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.
Si votre routeur (votre box) et/ou votre machine met en oeuvre un firewall, vous devrez lui indiquer de laisser passer les requêtes entrantes et sortantes sur les ports 5000 et 5001 sinon elles resteront bloquées et vous ne pourrez pas vous connecter en multi-joueurs.


If it's still just not working for you, ask nicely on the [[FlightGear IRC channel]] and someone should be able to assist.
 
Finalement, une fois votre installation correctement configurée, vous pouvez lancer FlightGear avec la commande suivante:
 
<code>
fgfs --callsign=''votre_callsign'' --multiplay=in,10,''votre_adresse_ip'',5000
--multiplay=out,10,mpserver10.flightgear.org,5000 --airport=KSFO
--runway=19R --aircraft=c172p
</code>
 
Remplacez ''votre_callsign'' par votre indicatif dans ''FlightGear''. De même, remplacez ''votre_adresse_ip'' par l'adresse IP de votre ordinateur (par exemple: 192.168.0.15).
Notez que votre indicatif sera tronqué à une longueur de 7 caractères maximum.
 
 
Si tout se passe bien, vous devriez vous retrouver sur l'aéroport (ici KSFO, San Francisco) et voir les autres joueurs connectés. Il vous sera également possible de chatter avec eux.
 
Vous pouvez consulter le tracker à cette URL: [http://fgfs.i-net.hu/modules/fgtracker/ this page] pour voir si vous voyez votre indicatif. Si vous le voyez, cela signifie que tous vos vols seront enregistrés ce qui vous permettra d'avoir un relevé précis de votre nombre d'heures de vol.
 
Si malgré tout ceci, vous rencontrez des difficultés, allez jeter un coup d'oeil au forum, vous trouverez sûrement des posts faisant état de problèmes similaires, ainsi que des solutions apportées.
Si au final vous n'avez toujours rien, n'hésitez pas à poster un message sur le forum et à être le plus précis possible.


== Multiplayer Chat ==
== Multiplayer Chat ==
35

edits

Navigation menu