Howto:Multiplayer: Difference between revisions

Jump to navigation Jump to search
Save
mNo edit summary
(Save)
Line 38: Line 38:
# In the <tt>Multiplayer Options</tt> area …
# In the <tt>Multiplayer Options</tt> area …
#* Type your desired callsign into the box.
#* Type your desired callsign into the box.
#* Set the parameters for the two other boxes; see below for correct syntax.
#* Set the parameters for the two other boxes; see [[#Using multiplayer from the command line|below]] for correct syntax.
#* Click {{button|OK}}, then run FlightGear.
#* Click {{button|OK}}, then run FlightGear.
{{-}}
{{-}}


=== Using multiplayer from the command line ===
=== Using multiplayer from the command line ===
{{WIP}}
When running FlightGear from the [[command line]], you can specify multiplayer settings.  The two arguments are as follows:
When running FlightGear from the [[command line]], you can specify multiplayer settings.  The two arguments are as follows:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 84: Line 83:
</syntaxhighlight>
</syntaxhighlight>


Additionally, the "in"-argument above tells FG to listen '''only''' on the loopback/local interface - it will not receive packets arriving on the other network interface(s). If you want to also bind to other interfaces, just omit the IP address by using   
Additionally, the <code>in</code> argument above tells FG to listen '''only''' on the loopback/local interface - it will not receive packets arriving on the other network interface(s). If you want to also bind to other interfaces, just omit the IP address by using   
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
--multiplay=in,10,,5000
--multiplay=in,10,,5000
Line 92: Line 91:


==== Now, going more slowly for those who are completely lost... ====
==== Now, going more slowly for those who are completely lost... ====
Try the above first, and if it doesn't work, read on.
Although this section shoould be unnecessary with newer versions of [[FGMS]], you may still run into problems.
 
First of all, you need to know the IP address of the network interface you'll be using for multiplayer FG.  


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.
If your Internet connection is via an ADSL modem that plugs directly into your computer, you should be able to find your IP address by visiting http://www.whatismyip.com.  
{{Note|Your {{Abbr|ISP|Internet Service Provider}} might not give you the same IP address each time.}}


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.
If your connection is via an Ethernet connector or by a wireless link.


* 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"
* '''Linux:''' Log in as root and run <code>ifconfig</code> in the terminal. In the text that is returned, you should to look for an interface name such as <code>eth0</code> or <code>wlan0</code>.  Finally, look in the text below the interface name for <code>inet addr:ip.address</code>. For example, this should read something like <code>inet addr:192.168.0.150</code>.
* Under '''Windows XP or later''', click start, run, and type "cmd". In the terminal window which appears, type "ipconfig" This should show you your IP address - write it down.
* '''Windows:'''
* With '''Windows 98''', click start, run, and type "winipcfg" to get information about your IP address.
** '''Windows XP or later''', click start, run, and type "cmd". In the terminal window which appears, type "ipconfig" This should show you your IP address - write it down.
** '''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.
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.
Line 123: Line 126:
  Call: john51a,model: Aircraft/ufo/Models/ufo.xml  
  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 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.
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.
Line 140: Line 143:
To chat with other pilots, go to the <tt>Multiplayer</tt> menu and select <tt>Chat Menu</tt> 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.
To chat with other pilots, go to the <tt>Multiplayer</tt> menu and select <tt>Chat Menu</tt> 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 {{Key press|<nowiki>_</nowiki>}} (underscore) and it brings up a small window that you can type in. 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 <tt>Network > Chat</tt>. So if you think you have missed anything, go check there.
The shortcut for chatting is {{Key press|Shift|<nowiki>-</nowiki>}} (underscore) and it brings up a small window that you can type in. 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 <tt>Network > Chat</tt>. So if you think you have missed anything, go check there.


== Dealing with abusive behaviour ==
== Dealing with abusive behaviour ==

Navigation menu