Fgfsrc: Difference between revisions

777 bytes added ,  12 October 2009
major update
mNo edit summary
(major update)
Line 1: Line 1:
= fgfsrc =
= fgfsrc =
The files ''fgfsrc'' purpose is to contain [[Command Line Parameters]] which are read by ''fgfs'' at startup. This is for users who start FlightGear from the [[command line]], so users using a graphical user interface like [[fgrun]] don't have to bother with this at all. Anyhow, it is possible to use fgrun to create your personal set of options by copy-and-pasting them from the ''Show command line'' textbox (on the last page of FGRun) into ''fgfsrc''.
 
Like all [http://www.catb.org/jargon/html/R/rc-file.html rc-files], the ''fgfsrc''s purpose is to contain [[Command Line Parameters]] (options) which are read by ''fgfs'' at startup. This is for users who start FlightGear from the [[command line]], so users using a graphical user interface like [[fgrun]] don't have to bother with this at all. Anyhow, it is possible to use fgrun to create your personal set of options by copy-and-pasting them from the ''Show command line'' textbox (on the last page of FGRun) into ''fgfsrc''.




Line 11: Line 12:




===== Some 'rules' for the content: =====
A simple way to have more than one setup is to replace ''fgfsrc'' by a link which can be changed according to the setup one wants to load. On a GNU/Linux system this could look like
ls -l ~/.fgfsrc*
... /home/user/.fgfsrc -> .fgfsrc.cvs
... /home/user/.fgfsrc.1.9.1
... /home/user/.fgfsrc.cvs
 
 
===== Some 'rules' for the file and it's content: =====
 
* The file is plain text (ASCII), like saving a .txt-file with Wordpad.
* Each line contains one option only.
* Each line contains one option only.
* If the first 'visible' character is a '#', ''fgfs'' totally ignores the line (comment).
* If the first 'visible' character is a '#', ''fgfs'' totally ignores the line (comment).
Line 18: Line 28:


===== An example of a basic ''fgfsrc'' file: =====
===== An example of a basic ''fgfsrc'' file: =====
Have in mind, that *at least* the local paths (like fg-root and fg-scenery) and the [[Multiplayer]] options have to be altered to work on your system!


  # $HOME/.fgfsrc
  # $HOME/.fgfsrc
Line 51: Line 63:
  #
  #
  --timeofday=noon
  --timeofday=noon
  --random-wind
  #--enable-real-weather-fetch
--enable-real-weather-fetch
  ## rain/snow:
--prop:/sim/rendering/precipitation-enable=false
  --enable-horizon-effect
  --enable-horizon-effect
  --enable-specular-highlight
  --enable-specular-highlight
Line 63: Line 72:
  --enable-random-objects
  --enable-random-objects
  --prop:/sim/rendering/random-vegetation=true
  --prop:/sim/rendering/random-vegetation=true
  ## limit fps to 30:
  --prop:/sim/frame-rate-throttle-hz=30
  --prop:/sim/frame-rate-throttle-hz=30
  ## rain/snow:
--prop:/sim/rendering/precipitation-enable=true
  --ai-scenario=nimitz_demo
  --ai-scenario=nimitz_demo
 
--ai-scenario=clemenceau_demo
#--ai-scenario=aircraft_demo
    
    
  ### Network
  ### Network
Line 96: Line 109:
Some options (mostly properties) are only temporary of interest to the 'normal' user or even only for CVS users:
Some options (mostly properties) are only temporary of interest to the 'normal' user or even only for CVS users:


  ## parkpos, temporary:
* <code>--prop:/sim/traffic-manager/use-custom-scenery-data=true</code><BR>See [http://www.flightgear.org/forums/viewtopic.php?f=5&t=5589&p=42156&hilit=parking+positions#p42151 forum] and [http://sourceforge.net/mailarchive/message.php?msg_name=g87kri%24u4q%241%40osprey.mgras.de mailing list] for more info on this.
#--prop:/sim/traffic-manager/use-custom-scenery-data=true
 
See [http://www.flightgear.org/forums/viewtopic.php?f=5&t=5589&p=42156&hilit=parking+positions#p42151 forum] and [http://sourceforge.net/mailarchive/message.php?msg_name=g87kri%24u4q%241%40osprey.mgras.de mailing list] for more info on this.
* <code>--random-wind  # not in 1.9.1 and former versions</code><BR>Nice turbulences during approaches ;-).




Please feel free to add other useful options to the temporary and basic ones!!!
Please feel free to add other useful options to the temporary and basic ones!!!
392

edits