422
edits
(updated with Git info for renaming the folder so FG will work as expected) |
(Removed wrong assumption, Folder name does not have to match $aircraft-set.xml name. Added proper explanation.) |
||
Line 31: | Line 31: | ||
== When installing an aircraft fails == | == When installing an aircraft fails == | ||
=== Rename Aircraft Folder === | |||
If FlightGear fails to start with the new aircraft you have installed, or if it starts but the aircraft is invisible you might have to rename the folder where the aircraft files are. | |||
This issue is most often encountered when downloading a .zip file from some online git repository. In those cases you will most likely end up with a folder name of the following form MyZippedRepo-[branch]. In this case you should rename the folder to be just '''MyZippedRepo'''. | |||
If the above doesn't work, or for other cases, check for a readme file and have a look there for instructions. | |||
Otherwise open the aircraft-set.xml file and search in it for paths containing '''Aircraft/AircraftFolderName'''. The name of the folder should match '''AircraftFolderName'''. | |||
For instance if in the imaginary-set.xml you would find an instance like this: | |||
<syntaxhighlight lang="xml"> | |||
<splash-texture>Aircraft/MyCreation/splash1.png</splash-texture> | |||
</syntaxhighlight> | |||
that means that you should rename the folder where imaginary-set.xml is to '''MyCreation'''. | |||
=== XML files with wrong encoding === | === 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. | 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. | ||
Line 39: | Line 53: | ||
$ find . -name "*.xml" -print | xargs sed -i 's/<?xml version="1.0" encoding="UTF-8"?>/<?xml version="1.0" encoding="ISO-8859-1"?>/g' | $ find . -name "*.xml" -print | xargs sed -i 's/<?xml version="1.0" encoding="UTF-8"?>/<?xml version="1.0" encoding="ISO-8859-1"?>/g' | ||
If any of the methods above do 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]. | |||
If | |||
== Choosing aircraft == | == Choosing aircraft == |
edits