Howto:Add shared models manually: Difference between revisions

Jump to navigation Jump to search
(General cleanup)
Line 51: Line 51:


=== Step 5 ===
=== Step 5 ===
Next locate a .stg file into which you will place a reference to the new model and its position. The .stg files are named according to tile number and stored under the scenery directories.  The default installation places a limited amount of scenery in <tt>[[$FG_ROOT]]/scenery</tt> but you may have scenery in other directories as specified in <tt>[[$FG_SCENERY]]</tt>.  Under the scenery directories, you will find directories called <tt>Objects</tt> and <tt>Terrain</tt>, and under them directories that group tiles into larger and smaller quadrants.  Thus, if the tile number is 2039314, you might find <tt>2039314.stg</tt> at <tt>$FG_ROOT/Scenery/Terrain/w060n30/w056n30/2039314.stg</tt>. 
Next locate a .stg file into which you will place a reference to the new model and its position.  


There may be more than one such file with that name, in different directories.  You can (presumably) modify any of them, but it is best if you create a personal customized scenery directory separate from the standard installation.  That way, if you upgrade FG your customizations won't get overwritten.  (If create such a directory, add it to <tt>[[$FG_SCENERY]]</tt>, create an internal directory structure like the one in the standard scenery story, and create a .stg file in the appropriate place.) For the same reason, it is best not to edit the .stg files in the folder where TerraSync stores the scenery it has fetched.  (Another page in the wiki currently recommends modifying or creating the .stg file under the Terrain directory rather than under the Objects directory; the current editor knows no reason to prefer one over the other.  Try one and see if it works.  It seems that FG takes all objects that it finds mentioned in any .stg file with the appropriate name and places them all into the world.)
There is more information about .stg files, below, but in brief:  The .stg files are named according to tile number and stored under the scenery directories.  The default installation places a limited amount of scenery (for the area around San Francisco) in <tt>[[$FG_ROOT]]/scenery</tt> but you may have scenery in other directories, as specified in <tt>[[$FG_SCENERY]]</tt>.  (See [[Howto: Install scenery]].)  Under each scenery directory, you will find directories called <tt>Objects</tt> and <tt>Terrain</tt>, and under them directories that group tiles into larger and smaller quadrants.  Thus, if the tile number is 942058, you will find <tt>942058.stg</tt> under <tt>$FG_ROOT</tt> as <tt>$FG_Root/Scenery/Objects/w130n30/w123n37/942058.stg</tt>. 
 
There is generally more than one .stg file for a given tile, in different directories.  It's important to edit one that will actually be read by flightgear (see below).  One thing you can do is create a personal customized scenery directory separate from the standard installation.  That way, if you upgrade FG your customizations won't get overwritten.  (If you create such a directory, add it first in <tt>[[$FG_SCENERY]]</tt>, create a directory structure inside it parallel to the one in the standard scenery story, and create a .stg file in the appropriate place.) For the same reason, it is best not to edit the .stg files in the folder where TerraSync stores the scenery it has fetched, since TerraSync may overwrite them with newer versionsObjects associated with airports are usually put into a .stg file under a "Terrain" directory; other objects are put under "Objects".


=== Step 6 ===
=== Step 6 ===

Navigation menu