• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Scenery.cfg layer and area correlation

Fibber

Charter Member
:help:Could someone please explain to me in plain english (mono tongue here:wave:) the correlation between the "Area= #" and the "Layer=#" in the Scenery.cfg file?
All the examples I see having the numbers matching, where-as none of mine will match. In addition my area numbers are not in sequential order in the file. IE; will jump from say 23 to 30.
-Should the 2 #'s (layer and area) match.
-Are the Area #'s predesignated or are they changeable.
-Is the layer number the number that the file should be in or is in?
 
When you add scenery layers through the sim itself, sometimes things can get out of whack.

As a general rule, scenery layers should correlate to their respective areas.

[General]
Title=CFS2 World
Description=CFS 2 Scenery data
Cache_Size=10M
Clean_on_Exit=TRUE

[Area.001]
Title=Default Scenery
Local=scenery
Active=TRUE
Layer=2
Required=TRUE
Remote=

[Area.002]
Title=Terrain
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\World (ETO)
Active=TRUE
Texture_ID=1
Layer=1
Required=TRUE
Remote=

[Area.003]
Title=CFS1 Library
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\library
Active=TRUE
Layer=3
Remote=
Required=FALSE

[Area.004]
Title=Airport Facilities Data
Local=Scenedb\AFDFiles
Active=TRUE
Layer=4
Required=TRUE
Remote=

[Area.005]
Title=Scenery Ships
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\Ships
Active=TRUE
Layer=5
Remote=
Required=FALSE

[Area.006]
Title=Aircraft Weapons
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\weapons
Active=TRUE
Layer=6
Required=TRUE
Remote=

[Area.007]
Title=Vehicles
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\veh
Active=TRUE
Layer=7
Required=TRUE
Remote=

[Area.008]
Title=Effects
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\fx
Active=TRUE
Layer=8
Required=TRUE
Remote=

[Area.009]
Title=Runways
Local=Scenedb\runways
Active=TRUE
Layer=9
Required=TRUE
Remote=

[Area.010]
Title=Buildings
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\inf
Active=TRUE
Layer=10
Required=TRUE
Remote=

[Area.011]
Title=FS2000_props
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\fs2kprop
Active=TRUE
Layer=11
Required=TRUE
Remote=

[Area.012]
Title=DEM mesh
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\DEM mesh
Active=TRUE
Layer=12
Required=TRUE
Remote=

[Area.013]
Title=DEM mesh LOD 8
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\DEM mesh LOD 8
Active=TRUE
Layer=13
Required=TRUE
Remote=

[Area.014]
Title=Global Exclude
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\Global exclude
Active=TRUE
Layer=14
Required=TRUE
Remote=

[Area.015]
Title=SdC's Europe Landclass
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\SdC's Europe Landclass
Active=TRUE
Layer=15
Required=TRUE
Remote=

[Area.016]
Title=SdC's Eurw
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\SdC's Eurw
Active=TRUE
Layer=16
Required=TRUE
Remote=

[Area.017]
Title=Europe enhancements
Local=C:\Program Files\Microsoft Games\CFS2 Scenery\Scenedb\Europe Enhancements
Active=TRUE
Layer=17
Required=TRUE
Remote=

This is especially true when you're dealing with Rhumbaflappy's mesh or Sander's scenery layers. If you, for example had areas 16 and 15 reversed, the Eurw would load BEFORE the Landlcass, creating all sorts of headaches and issues.

However, once you get beyond mesh and scenery layers into airbases, then the order becomes much less critical.
 
Rami;
Is the Layer number the number that the file should be at and the Area # is where it is presently, or reversed? Can these be edited manually in word?
 
Get outa wack? You aint kiddin!

Here is what my scenery cfg currently looks like...

[General]
Title=CFS2 World
Description=CFS 2 Scenery data
Cache_Size=10M
Clean_on_Exit=TRUE


[Area.001]
Title=Default Scenery
Local=scenery
Active=TRUE
Layer=2
Required=TRUE
Remote=


[Area.002]
Title=Terrain
Local=Scenedb\world
Active=TRUE
Texture_ID=1
Layer=1
Required=TRUE
Remote=


[Area.003]
Title=CFS1 Library
Local=Scenedb\library
Active=TRUE
Layer=3
Remote=
Required=FALSE


[Area.004]
Title=Airport Facilities Data
Local=Scenedb\AFDFiles
Active=TRUE
Layer=4
Required=TRUE
Remote=


[Area.005]
Title=Scenery Ships
Local=Scenedb\Ships
Active=TRUE
Layer=5
Remote=
Required=FALSE


[Area.006]
Title=Aircraft Weapons
Local=Scenedb\weapons
Active=TRUE
Layer=6
Required=TRUE
Remote=


[Area.007]
Title=Vehicles
Local=Scenedb\veh
Active=TRUE
Layer=7
Required=TRUE
Remote=


[Area.008]
Title=Effects
Local=Scenedb\fx
Active=TRUE
Layer=8
Required=TRUE
Remote=


[Area.009]
Title=Runways
Local=Scenedb\runways
Active=TRUE
Layer=9
Required=TRUE
Remote=


[Area.010]
Title=Buildings
Local=Scenedb\inf
Active=TRUE
Layer=10
Required=TRUE
Remote=


[Area.011]
Title=FS2000_props
Local=Scenedb\fs2kprop
Active=TRUE
Layer=11
Required=TRUE
Remote=


[Area.012]
Title=Malta_BSK_V2
Local=SCENEDB\Malta_BSK_V2
Active=TRUE
Layer=12
Required=TRUE
Remote=

[Area.013]
Title=DEM7
Local=SCENEDB\DEM7
Active=TRUE
Layer=13
Required=TRUE
Remote=

[Area.014]
Title=DEM8
Local=SCENEDB\DEM8
Active=TRUE
Layer=14
Required=True
Remote=

[Area.015]
Title=Global_Exclude
Local=SCENEDB\Global_Exclude
Active=TRUE
Layer=15
Required=TRUE
Remote=

[Area.016]
Title=cfs2_eurw_LC_su_BETA3
Local=SCENEDB\cfs2_eurw_LC_su_BETA3
Active=TRUE
Layer=16
Required=TRUE
Remote=

[Area.017]
Title=Eurw
Local=SCENEDB\Eurw
Active=TRUE
Layer=17
Required=TRUE
Remote=

[Area.023]
Title=SC_Eurw_FeaturePack
Local=SCENEDB\SC_Eurw_FeaturePack
Remote=
Active=TRUE
Required=FALSE
Layer=9


[Area.025]
Title=MtFuji
Local=SCENEDB\MtFuji
Remote=
Active=TRUE
Required=FALSE
Layer=26


[Area.027]
Title=eawwii_scenery
Local=SCENEDB\eawwii_scenery
Remote=
Active=TRUE
Required=FALSE
Layer=19

[Area.028]
Title=Ajax
Local=SCENEDB\Ajax
Remote=
Active=TRUE
Required=FALSE
Layer=14

[Area.029]
Title=Maskrider Milne Bay (Full)
Local=scenedb\MilneBay_Full
Active=TRUE
Layer=12
Remote=
Required=FALSE





[Area.035]
Title=CFS2 BoB Scenery
Local=scenedb\CFS2BoB
Active=TRUE
Layer=18

Remote=
Required=FALSE
[Area.036]
Title=cfs2_london
Local=SCENEDB\cfs2_london
Remote=
Active=TRUE
Required=FALSE
Layer=23
[Area.037]
Title=B17Bases
Local=SCENEDB\B17Bases
Remote=
Active=TRUE
Required=FALSE
Layer=15
[Area.039]
Title=Oahu
Local=SCENEDB\Oahu
Remote=
Active=TRUE
Required=FALSE
Layer=17
[Area.040]
Title=EuroTargets
Local=SCENEDB\EuroTargets
Remote=
Active=TRUE
Required=FALSE
Layer=24
[Area.041]
Title=AF Papua New Guinea
Local=SCENEDB\AF Papua New Guinea
Remote=
Active=TRUE
Required=FALSE
Layer=16
[Area.043]
Title=Kammhuber Line
Local=SCENEDB\Kammhuber Line
Remote=
Active=TRUE
Required=FALSE
Layer=25
[Area.045]
Title=TrukIslands
Local=SCENEDB\TrukIslands
Remote=
Active=TRUE
Required=FALSE
Layer=21
[Area.044]
Title=AtollTruk
Local=SCENEDB\AtollTruk
Remote=
Active=TRUE
Required=FALSE
Layer=22
[Area.047]
Title=EuroFields
Local=SCENEDB\EuroFields
Remote=
Active=TRUE
Required=FALSE
Layer=5
[Area.048]
Title=Maskrider
Local=SCENEDB\Maskrider
Remote=
Active=TRUE
Required=FALSE
Layer=11




[Area.050]
Title=Aru-Island Scenery
Local=SCENEDB\Aru-Island Scenery
Remote=
Active=TRUE
Required=FALSE
Layer=20


[Area.051]
Title=DEM8
Local=SCENEDB\DEM8
Remote=
Active=TRUE
Required=FALSE
Layer=4



...and yes I'm in the middle of fixing it.
 
OK here's mine all sorted out.... kinda....

[General]
Title=CFS2 World
Description=CFS 2 Scenery data
Cache_Size=10M
Clean_on_Exit=TRUE


[Area.001]
Title=Default Scenery
Local=scenery
Active=TRUE
Layer=2
Required=TRUE
Remote=


[Area.002]
Title=Terrain
Local=Scenedb\world
Active=TRUE
Texture_ID=1
Layer=1
Required=TRUE
Remote=


[Area.003]
Title=CFS1 Library
Local=Scenedb\library
Active=TRUE
Layer=3
Remote=
Required=FALSE


[Area.004]
Title=Airport Facilities Data
Local=Scenedb\AFDFiles
Active=TRUE
Layer=4
Required=TRUE
Remote=


[Area.005]
Title=Scenery Ships
Local=Scenedb\Ships
Active=TRUE
Layer=5
Remote=
Required=FALSE


[Area.006]
Title=Aircraft Weapons
Local=Scenedb\weapons
Active=TRUE
Layer=6
Required=TRUE
Remote=


[Area.007]
Title=Vehicles
Local=Scenedb\veh
Active=TRUE
Layer=7
Required=TRUE
Remote=


[Area.008]
Title=Effects
Local=Scenedb\fx
Active=TRUE
Layer=8
Required=TRUE
Remote=


[Area.009]
Title=Runways
Local=Scenedb\runways
Active=TRUE
Layer=9
Required=TRUE
Remote=


[Area.010]
Title=Buildings
Local=Scenedb\inf
Active=TRUE
Layer=10
Required=TRUE
Remote=


[Area.011]
Title=FS2000_props
Local=Scenedb\fs2kprop
Active=TRUE
Layer=11
Required=TRUE
Remote=


[Area.012]
Title=DEM7
Local=SCENEDB\DEM7
Active=TRUE
Layer=12
Required=TRUE
Remote=


[Area.013]
Title=DEM8
Local=SCENEDB\DEM8
Active=TRUE
Layer=13
Required=TRUE
Remote=


[Area.014]
Title=Global_Exclude
Local=SCENEDB\Global_Exclude
Active=TRUE
Layer=14
Required=TRUE
Remote=


[Area.015]
Title=cfs2_eurw_LC_su_BETA3
Local=SCENEDB\cfs2_eurw_LC_su_BETA3
Active=TRUE
Layer=15
Required=TRUE
Remote=


[Area.016]
Title=Eurw
Local=SCENEDB\Eurw
Active=TRUE
Layer=16
Required=TRUE
Remote=


[Area.017]
Title=SC_Eurw_FeaturePack
Local=SCENEDB\SC_Eurw_FeaturePack
Active=TRUE
Layer=17
Required=TRUE
Remote=


[Area.018]
Title=Malta_BSK_V2
Local=SCENEDB\Malta_BSK_V2
Active=TRUE
Layer=18
Required=TRUE
Remote=


[Area.019]
Title=MtFuji
Local=SCENEDB\MtFuji
Active=TRUE
Layer=19
Required=TRUE
Remote=


[Area.020]
Title=Oahu
Local=SCENEDB\Oahu
Active=TRUE
Layer=20
Required=TRUE
Remote=


[Area.021]
Title=TrukIslands
Local=SCENEDB\TrukIslands
Active=TRUE
Layer=21
Required=TRUE
Remote=


[Area.022]
Title=AtollTruk
Local=SCENEDB\AtollTruk
Active=TRUE
Layer=22
Required=TRUE
Remote=


[Area.023]
Title=cfs2_london
Local=SCENEDB\cfs2_london
Active=TRUE
Layer=23
Required=FALSE
Remote=


[Area.025]
Title=EuroTargets
Local=SCENEDB\EuroTargets
Active=TRUE
Layer=24
Required=FALSE
Remote=


[Area.026]
Title=Kammhuber Line
Local=SCENEDB\Kammhuber Line
Active=TRUE
Layer=25
Required=FALSE
Remote=


[Area.027]
Title=EuroFields
Local=SCENEDB\EuroFields
Active=TRUE
Layer=26
Required=FALSE
Remote=


[Area.028]
Title=Maskrider
Local=SCENEDB\Maskrider
Active=TRUE
Layer=27
Required=FALSE
Remote=


[Area.029]
Title=eawwii_scenery
Local=SCENEDB\eawwii_scenery
Active=TRUE
Layer=28
Required=FALSE
Remote=


[Area.030]
Title=Ajax
Local=SCENEDB\Ajax
Active=TRUE
Layer=29
Required=FALSE
Remote=


[Area.031]
Title=Maskrider Milne Bay (Full)
Local=scenedb\MilneBay_Full
Active=TRUE
Layer=30
Required=FALSE
Remote=


[Area.032]
Title=CFS2 BoB Scenery
Local=scenedb\CFS2BoB
Active=TRUE
Layer=31
Required=FALSE
Remote=


[Area.033]
Title=B17Bases
Local=SCENEDB\B17Bases
Active=TRUE
Layer=32
Required=FALSE
Remote=


[Area.034]
Title=AF Papua New Guinea
Local=SCENEDB\AF Papua New Guinea
Active=TRUE
Layer=33
Required=FALSE
Remote=


[Area.035]
Title=Aru-Island Scenery
Local=SCENEDB\Aru-Island Scenery
Active=TRUE
Layer=34
Required=FALSE
Remote=
 
Will plain British do ?

Fibber,
I don't know whether this will help or hinder you but here goes. This is the situation as I understand it. I hope someone will correct me if I'm wrong ...

The Area number shows the order in which the layer was added to CFS2. The Layer number shows the sequence in which the scenery settings screen shows the layers. When you move a layer up or down, the Layer number changes.

The reason that the numbers get jumbled up is that all changes that CFS2 makes to the scenery.cfg are driven by the maximum value in that field (Layer or Area) already appearing in the file. For example, when you delete a layer, the Area number of that layer gets dropped from that sequence. For the Layer numbers, it's the sequence that matters, not the actual numbers.

When you see a scenery.cfg file that has the numbers all neat and shiny in a row, it's because that user edits the file manually, and knows how to change the numbers to achieve what they want. By the way, it's better to use Notepad instead of Word to edit files like scenery.cfg, because Word has a habit of adding other "characters" that have nothing to do with the user's changes when it saves the file.

Hope that helps,
Ro
:typing:
 
Ro;
Thanks helped a little. Actually wrote Word when I meant Notepad. I guess I had a case of MS syndrome when I was typing.:wavey:
 
Back
Top