Howto:Install aircraft: Difference between revisions

Jump to navigation Jump to search
Some tips on when to rename the aircraft folder. From http://forum.flightgear.org/viewtopic.php?p=217554#p217554; Headings
(Update the instructions to mention $FG_AIRCRAFT)
(Some tips on when to rename the aircraft folder. From http://forum.flightgear.org/viewtopic.php?p=217554#p217554; Headings)
Line 5: Line 5:
An open source file archiver is [http://www.7-zip.org/ 7-Zip], although be aware of user setup.
An open source file archiver is [http://www.7-zip.org/ 7-Zip], although be aware of user setup.


== Installation process ==
=== Linux ===
=== Linux ===
(Ubuntu 12.04)  
(Ubuntu 12.04)  
Line 24: Line 25:
=== Windows ===
=== Windows ===
# Download an aircraft and save it on your desktop.
# Download an aircraft and save it on your desktop.
# Unzip the file, using a file archiver like 7-Zip.
# Unzip the file using a file archiver, like for example 7-Zip.
# Create a directory to store your aircraft if you have not already done so. Make sure this directory is outside your <tt>[[$FG_ROOT]]</tt> directory. For example, use <tt>C:/Users/{YourUserName}/Documents/FlightGear/Aircraft</tt>.
# Create a directory to store your aircraft if you have not already done so. Make sure this directory is outside your <tt>[[$FG_ROOT]]</tt> directory. For example, use <tt>C:/Users/{YourUserName}/Documents/FlightGear/Aircraft</tt>.
# Move the unzipped folder (usually the aircraft's name) to your that aircraft directory.
# Move the unzipped folder (usually the aircraft's name) to your that aircraft directory.
# Start up FlightGear. Append the root aircraft folder to the $FG_AIRCRAFT list on the first page (previous to aircraft selection) of the launcher. Your aircraft should now show up in the list.
# Start up FlightGear. Append the root aircraft folder to the $FG_AIRCRAFT list on the first page (previous to aircraft selection) of the launcher. Your aircraft should now show up in the list.
== When installing an aircraft fails ==
=== XML files with wrong encoding ===
If you start FlightGear with the new plane you installed and there is no cockpit or exterior, this may be because the XML files are in the wrong encoding.
To fix this on Linux try this:
$ cd path/to/aircraft/directory/
$ find . -name "*.xml" -print | xargs sed -i 's/<?xml version="1.0" encoding="UTF-8"?>/<?xml version="1.0" encoding="ISO-8859-1"?>/g'
=== The aircraft folder have to be renamed ===
If you start FlightGear with the aircraft you installed it is invisible or if FlightGear will not start with your newly installed aircraft, but will start with other aircraft you might need to rename the aircraft folder.
If there is a readme file have a look there for instructions, otherwise try change to more obvious names like renaming for example "A320-master" to "A320" or "boeing-707" to "707".  If that does not work ask around on the [[Howto:Multiplayer#Multiplayer chat|multiplayer chat]], [[FlightGear IRC channel|IRC]] or on the [http://forum.flightgear.org/viewforum.php?f=11 forum].


== Choosing aircraft ==
== Choosing aircraft ==
Line 36: Line 51:
* [[Table of models]]
* [[Table of models]]
External links to third party aircraft can be found at [[FlightGear hangars]]. Remember that the latest aircraft may not load with previous versions. If you happen to use an older version of FlightGear, look for older aircraft in the links section.
External links to third party aircraft can be found at [[FlightGear hangars]]. Remember that the latest aircraft may not load with previous versions. If you happen to use an older version of FlightGear, look for older aircraft in the links section.
== Invisible model ==
If you start FlightGear with the new plane you installed and there is no cockpit or exterior, this may be because the XML files are in the wrong encoding.
To fix this on linux try this:
$ cd path/to/aircraft/directory/
$ find . -name "*.xml" -print | xargs sed -i 's/<?xml version="1.0" encoding="UTF-8"?>/<?xml version="1.0" encoding="ISO-8859-1"?>/g'


== For developers ==
== For developers ==

Navigation menu