There is also this simple little program that keeps the cfg clean and orderly.
Application: FSTscenery.exe (last update: 27 Feb, 2007)
Purpose:
========
This application creates a new version of scenery.cfg with Areas sorted by your current Layer number sequence/priority, with matching Area and Layer numbers assigned sequentially. Existing Area numbers are ignored in greating the output. Gaps in Area or Layer numbers are closed.
This process can solve some problems with the scenery.cfg file when Areas/Layers are numbered incorrectly. The warning messages may help identify the source of such problems.
The program checks for obvious issues first:
Areas - correct format is [Area.xxx]
the following issues may have caused problems, but do not interfere here,
so warnings are issued but processing continues:
incorrect line length
non-numeric value
duplicate area numbers
out of numerical sequence
Layers
critical errors, processing halted:
non-numeric values
duplicate layer numbers
Because the new file will be sorted by Layer value,
these must be corrected manually before program will proceed.
The simplest solution for duplicates is to assign a layer
number greater than any in use. Then run the program.
You can then set the correct priority using the Scenery Library menu
and run this program again if desired.
Issues: Any issues identified in the above checks are reported in _issues.txt.
Use:
====
Place FSTscenery.exe and scenery.cfg in the same folder.
Double-click FSTscenery.exe to run the program.
The application creates a copy of your original as scenery.org
and constructs a new scenery.cfg file in the same folder
Move your new scenery.cfg file to your FS folder, if created elsewhere.
Notes:
======
I do not know if any or all conditions checked above can cause problems in the sim, but they seemed worth checking anyway. Please let me know if you encounter other conditions that should be added to the checks.
There are no other checks of the integrity of the file; I assume it is otherwise "well-formed". If you stil have problems, you should probably restore your original cfg file (delete scenery.cfg and rename scenery.org to scenery.cfg) and resolve those problems before continuing.
An "Area" block begins with a line starting with "[Area" and continues up to the next occurrence of "[Area"
Blank lines are removed, then a single blank line is inserted between each scenery area.
Comment lines are included with the preceding area, so you may have to manually
reposition any comments used to identify regions in the file.
This is a Visual Basic Application and requires MSVBVM60.DLL for VB runtime support on your computer. This file can be placed in the folder with this application if you would rather not install it, but it is normally installed in the Windows\System folder.
If this file is not present, you can download and install it from:
http://www.microsoft.com/downloads/...f9-b5c5-48f4-8edd-cdf2d29a79d5&DisplayLang=en
Limitations:
==========================
Maximum Areas: 2000
Maximum lines per Area: 50 (to handle possible comment, flatten, exclude lines for the Area)
Steve Greenwood
http://home.earthlink.net/~smgreenwood/
fs-traveler@earthlink.net