by rcbarend » Thu Oct 13, 2005 5:07 pm
Hi
As background, this is some info I posted in another forum last year.
*************************************
FS uses two types of gauges: "C"-compiled gauges (.gau files) and XML-interpreted gauges (.xml files).
.gau files may contain several gauges, and also includes the bitmaps for the gauges.
E.g. the default B737 uses a gauge file 737-400.gau, that contains o.a. the gauges Airspeed and Flaps which are defined in the panel.cfg as:
gauge00=737-400!Airspeed, 0, 64
gauge01=737-400!Flaps, 586, 64
.xml files are pure text files using XML-syntax (interpreted by FS) which refer to external bitmap (.bmp) files. Multiple .xml gauge plus their bitmaps can be bundled into one .cab file by a MStool called Cabdir.exe.
Note that Winzip can extract files from a .cab file, but NOT pack them.
E.g. the default B747 uses a gauge file Boeing747-400.cab, that contains o.a. the gauges Autobrakes and Gear Lever, defined as:
gauge07=Boeing747-400!Autobrakes Switch, 521, 90
gauge08=Boeing747-400!Gear Lever, 603, 87
Placement of gauge files
========================
Assume the panel.cfg is in the folder:
....\aircraft\youraircraft\yourpanel\
If you panel.cfg contains a definition like:
gauge** = filename!gaugename, ..,..
FS seaches for that gauge in the following order:
1. The gauge "gaugename", in file "filename.gau" in folder ...\yourpanel\
2. The gauge/file "gaugename.xml" in folder ....\yourpanel\filename\
3. The gauge "gaugename.xml", in file "filename.cab" in folder ...\yourpanel\
4. The gauge "gaugename", in file "filename.gau" in folder ...\gauges\
5. The gauge/file "gaugename.xml" in folder ....\gauges\filename\
6. The gauge "gaugename.xml", in file "filename.cab" in folder ...\gauges\
A few notes
===========
1. As you can see, with the same panel.cfg definition, you can choose to place your gaugefile (.gau or .cab) either in the ....\gauges\ or ...\yourpanel\ folder.
Avantage of ...\gauges\:
- Only one, shared gauge file (saves diskspace)
- Installing a newer version of the gauge, you only have to overwrite one file for all panels using it.
Advantages of ....\yourpanel\:
- Allows for multiple versions of a gauge.
- You never (accidentally) overwrite a gauge with an older version.
- Easy maintenance if you decide to remove a plane with it's panel: you simply delete the whole \aircraft\ folder (and panel subfolder) without leaving (potentially unused gauges) in the \gauges folder; or accidentally delete a gauge that is still used by another aircraft panel.
So you can decide yourself which "strategy" best suites you.
2. For XML gauges, you can decided to unpack the .cab file (e.g. using WinZip) into a subfolder with the same name as the .cab filename.
Adavantage:
-
Last edited by
rcbarend on Thu Oct 13, 2005 5:09 pm, edited 1 time in total.