Howto:Name fuel tanks

From FlightGear wiki
Jump to navigation Jump to search

FlightGear names fuel tanks by default to 0, 1, 2 etc.. In real life however, tanks often have different names. Center tank, Main 1, Main 2 etc. are seen on most airliners, while Left and Right are often to be seen on General Aviation (= small) traffic. Since an aircraft author is free to decide the order of tanks in FlightGear, tank 0 is not always the center tank, and tank 1 is not always on the left side of the plane.

In order to (re)name fuel tanks in FlightGear; place the following lines outside of the <sim></sim> part of the -set.xml file of your aircraft.

 <consumables>
  <fuel>
   <tank n="0"><name>Center</name></tank>
  </fuel>
 </consumables>

This will (re)name tank 0 (the first in the FDM file) to Center. You can add more tanks, by increasing n to 1, 2 etc. The following example is taken from the Boeing 747-400.

 <consumables>
  <fuel>
   <tank n="0"><name>Center</name></tank>
   <tank n="1"><name>Res #2</name></tank>
   <tank n="2"><name>Main #1</name></tank>
   <tank n="3"><name>Main #2</name></tank>
   <tank n="4"><name>Main #3</name></tank>
   <tank n="5"><name>Main #4</name></tank>
   <tank n="6"><name>Res #3</name></tank>
   <tank n="7"><name>Stab</name></tank>
  </fuel>
 </consumables>