FlightGear configuration via XML: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "{{stub}} Next to using graphical launchers like Fgrun or fgx or parsing console commands to FlightGear's binary, FlightGear's configuration can also be set by means o...")
 
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}


Next to using graphical launchers like [[Fgrun]] or [[fgx]] or parsing console commands to FlightGear's binary, FlightGear's configuration can also be set by means of two .xml files.
Next to using graphical launchers like [[Fgrun]] or [[fgx]] or parsing console commands to FlightGear's binary, FlightGear's configuration can also be set by means of two .xml files.
Line 10: Line 12:
By using Preferences.xml to configure FlightGear, running a launcher is not necessary to start the simulator. Just start the binary/executable (FGFS) and fly away.
By using Preferences.xml to configure FlightGear, running a launcher is not necessary to start the simulator. Just start the binary/executable (FGFS) and fly away.


'''Since the Preferences.xml is considered a FlightGear core file, it is strongly advised to back it up before doing any initial editing. It is also most likely to be overwritten when FlightGear is updated. Uninstalling FlightGear will also delete this file.'''
'''Since the Preferences.xml is considered a FlightGear core file, it is strongly advised to back it up before doing any initial editing. It is also most likely to be overwritten when FlightGear is updated. Uninstalling FlightGear will also delete this file!'''





Revision as of 19:04, 21 February 2013

This article is a stub. You can help the wiki by expanding it.


Next to using graphical launchers like Fgrun or fgx or parsing console commands to FlightGear's binary, FlightGear's configuration can also be set by means of two .xml files.


Preferences.xml

This is FlightGear's main configuration file and located within $FG_ROOT. It contains nearly all options that can be set, enabled or disabled to configure FlightGear to the user's preference. All options contained within this file get parsed to FlightGear's binary file upon its startup.

By using Preferences.xml to configure FlightGear, running a launcher is not necessary to start the simulator. Just start the binary/executable (FGFS) and fly away.

Since the Preferences.xml is considered a FlightGear core file, it is strongly advised to back it up before doing any initial editing. It is also most likely to be overwritten when FlightGear is updated. Uninstalling FlightGear will also delete this file!


Autosave.xml

Autosave.xml is a child of Preferences.xml in user space. Location depends on the operating system used.

  • Windows Vista/7/8: C:\Users\{Your username}\AppData\Roaming\flightgear.org\
  • Windows XP: C:\Documents and Settings\{Your username}\Application Data\flightgear.org\
  • Linux/OS X: ~/.fgfs

If not present, it is generated upon launching FGFS with the options set in its parent file Preferences.xml. Any changes you do within FlightGear's user interface are saved into autosave.xml, so a manual edit is, in most cases, not necessary. The next time you launch FGFS, the settings stored in autosave.xml will be used.