FlightGear configuration via XML: Difference between revisions

Jump to navigation Jump to search
Adding a neat trick from Anders G's post here: http://forum.flightgear.org/viewtopic.php?p=227837#p227837
m (+cat: FlightGear)
(Adding a neat trick from Anders G's post here: http://forum.flightgear.org/viewtopic.php?p=227837#p227837)
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.


== Preferences.xml ==
== 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.
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.
=== Personalized settings ===
If you are doing modifications to preferences.xml, keep in mind that those might cause problems with your FlightGear installation and that changes to these files will be lost when you install a newer version of FlightGear or uninstall FlightGear.


'''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!'''
In order to have your settings separated from preferences.xml and be used instead of the default settings you could add your changes to a separate configuration file and adding this command-line parameter either in .fgfsrc or when you start FlightGear:


== Autosave.xml ==
--config=/home/<user name>/.fgfs/<my-preferences>.xml
Autosave.xml is a child of Preferences.xml in user space. Location depends on the operating system used.
 
== 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 Vista/7/8''': C:\Users\{Your username}\AppData\Roaming\flightgear.org\

Navigation menu