Es/Howto: Multijugador

From FlightGear wiki
Revision as of 03:33, 16 October 2009 by Aepcam (talk | contribs)
Jump to navigation Jump to search

Template:Languages

WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.

Con la función Multijugador de FlightGear puedes ver a otros pilotos y viceversa. Esto hace posible el vuelo en formación, y conectarse a aviones cisterna, controlados por usuarios reales o contactar con ATCs reales para pedir autorización aterrizaje/despegue.

Si estas interesado en alojar tu propio servidor Multijugador, necesitarás entrar en como configurar un servidor Multijugador...

Multijuego puede causar grandes caidas de la tasa de fotogramas, durante la carga de una nueva aeronave. Especialmente los modelos pesados pueden causar demoras. Por tanto se sugiere volar en Europa o en algun otra zona que no sea alrededor de San Francisco en donde hay muchos pilotos volando.

Servidores

Por favor ten encuenta que: Los servidores multijugador están interconectados; Tu no tienes la necesidad de conectarte a un servidor especifico para poder ver otros pilotos que esten volando en ese servidor. Para tener el mejor rendimiento, deberías conectarte al servidor que esté geográficamente mas próximo a ti, que tenga la menor latencia (tiempo de respuesta ping) o que sea el mas tránquilo.

Servidor Ubicación Rastreo Mantenedor Commentarios
mpserver01.flightgear.org Germany Yes Oliver Schroeder
mpserver02.flightgear.org Hong Kong Yes Pigeond Solo acepta direcciones de fuera de USA.
mpserver03.flightgear.org Germany Yes Caído por un largo periodo de tiempo
mpserver04.flightgear.org UK Yes Jon Stockill
mpserver05.flightgear.org Dallas, Texas, USA Yes Brant Gipson
mpserver06.flightgear.org Sweden No Anders Gidenstam Tubo estrecho.
mpserver07.flightgear.org Wisconsin, USA Yes Tom Betka
mpserver08.flightgear.org Frankfurt am Main, Germany Yes Roland

Usa este enlace para comprobar si los servidores Multijugador estan en línea.

MPMap screenshot

Mapa Multijugador

1rightarrow.png Hay un artículo MPMap .

Hay un mapa muy majo que muestra la ubicación de los pilotos en línea en mpmap01 y/o en mpmap02. También podrás encontrar útil comprobar que estás conectado con éxito en el servidor.

Usando el lanzador de Windows / fgrun

Multiplayer options in FG Launcher
  1. Selecciona tu aeronave y el aeropuerto de partida como es normal en Fgrun.
  2. En la siguiente pantalla, marca la casilla "Multiplayer". Marca también la casilla "AI models" o no podrás ver las aeronaves de otros pilotos. Introduce el identificativo ("Callsign") de tu elección, introduce mpserver01.flightgear.org en en la casilla de nombre de anfitrión ("Hostname") y 5000 en ambas casillas "in" and "out".
  3. Haz click en run y pronto estarás volando con otros pilotos!

Para confirmar que está funcionando, puedes ir al mapa multijugador de; http://mpmap02.flightgear.org/ (en Hong Kong). También advertirás mensajes de chat diciendo "Hello" indicando como se van uniendo pilotos que estan en linea. Quizás desees usar un servidor diferente (e.j. "Hostname" introducir);

Para más ajustes avanzados, la pestaña de Advanced > Network puede ser abierta.Por ejemplo solo a través de este metodo tienes la posibilidad de quitar las lineas in o out.

Usando fgfs desde la linea de comandos

De primeras, para todos aquellos que esten muy impacientes y que tengan una vaga idea de lo que estamos haciendo, los argumentos básicos que hay que pasar a fgfs para multijugador son estos.;

   --multiplay=out,10,server.ip.address,portnumber
   --multiplay=in,10,your.ip.address,portnumber
   --callsign=anything 

En donde portnumber es usualmente 5000 y tu.dirección.ip es la dirección ip de la interfaz de red usada por FG para conectar con el sevidor - incluso si esta fuera una dirección local tipo 192.168. Por favor ten en cuenta que aunque esta limitación ha sido quitada en las versiones más recientes del servidor FG; todavía deberias especificar una dirección IP (no-loopback, e.j. no 127.0.0.1) para mantener al cliente FG contento.

Con los últimos FlightGear (al menos con OSG), también puedes dejar tu.dirección.ip en blanco. FlightGear entonces escucha en todos las interfases de red:

   --multiplay=in,10,,5000

Ahora, vamos más despacio para aquellos que esten completamente perdidos...

Intenta lo de arriba primero, y si no funciona, lee esto.

Lo primero de todo, tienes que saber la dirección IP de la intefaz de red que estes utilizando para FlightGear multijugador. Si tu conexión a internet es via modem ADSL que esta conectado directamente sobre tu computadora con conexión USB, deberás poder encontrar tu dirección IP visitando http://www.whatismyip.com . Por favor advierte que tu ISP puede que no te de la misma dirección IP en cada momento. - si MP deja de funcionar, comprueba primero esto.

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, 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.

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 Hay un artículo Chat Menu .

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