Foliage MultiLayer .GDM

Your forum for all discussions around Modding.
lindbejb
Posts: 71
Joined: Tue Sep 01, 2015 10:32 pm

Foliage MultiLayer .GDM

Post by lindbejb »

I was wondering if anyone has had some foliageMuliLayers save a .gdm in the saved game folder but exclude others? I have one layer that saves a .gdm file and is tillable in game yet another that doesn't do either.

Tillabel and saves .gdm in saved game folder

Code: Select all

<FoliageMultiLayer densityMapId="113" numChannels="1" numTypeIndexChannels="0">
          <FoliageSubLayer name="bushes" numDensityMapChannels="1" materialId="130" cellSize="8" viewDistance="250" objectMask="65520" decalLayer="0" atlasSize="2" atlasOffsets="0.5 0" numBlocksPerUnitDefault="0.5" numBlocksPerUnitMin="0.25" numBlocksPerUnitMax="0.5" width="6" height="2" widthVariance="1" heightVariance="1" horizontalPositionVariance="1"/>
        </FoliageMultiLayer>
Isn't tillable and doesn't save .gdm in saved game folder

Code: Select all

<FoliageMultiLayer densityMapId="115" numChannels="1" numTypeIndexChannels="0">
          <FoliageSubLayer name="Schilf" numDensityMapChannels="1" materialId="561" cellSize="8" viewDistance="80" objectMask="65520" decalLayer="0" atlasSize="8" atlasOffsets="0.125 0" numBlocksPerUnitDefault="1" numBlocksPerUnitMin="1" numBlocksPerUnitMax="1.2" width="1" height="2.7" widthVariance="0.3" heightVariance="0.3" horizontalPositionVariance="0.5"/>
        </FoliageMultiLayer>
Both materials use same shader.

Thanks
lindbejb
Posts: 71
Joined: Tue Sep 01, 2015 10:32 pm

Re: Foliage MultiLayer .GDM

Post by lindbejb »

bump
User avatar
Aranea
Posts: 289
Joined: Thu Oct 06, 2016 9:51 pm
Location: meine Höhle

Re: Foliage MultiLayer .GDM

Post by Aranea »

check the fileId of the densityMap of your MultiLayers and see if the fileId is linked to the correct file to start off you may want an empty density file
and then edit the terrain in GE
MfG
die Spinne :hi:
FS modder & scripter
quality modding and support since 2012
viewtopic.php?f=884&t=115656
lindbejb
Posts: 71
Joined: Tue Sep 01, 2015 10:32 pm

Re: Foliage MultiLayer .GDM

Post by lindbejb »

they are correctly linked, otherwise the crops would not appear in GE/ GE would not make a new gdm when saving. They are both in the game where i placed them in GE, however, the saved game only creates a gdm for one and not the other in the saved game folder.
User avatar
Decker_MMIV
Posts: 287
Joined: Wed Aug 22, 2012 1:02 am

Re: Foliage MultiLayer .GDM

Post by Decker_MMIV »

In case you still need more information to your question.

I believe that a foliage multilayer / GDM file needs at least one of its foliage-sub-layers to be registered as either a 'fruit' or a 'dynamic layer', before the game will attempt to save it to the savegame folder.

Look for g_currentMission.loadFoliageLayer(...) - which unfortunately is not documented.

Some old stuff:
- https://www.fs-uk.com/forum/index.php?t ... msg1209994
- https://github.com/DeckerMMIV/FarmSim_M ... liageLayer
lindbejb
Posts: 71
Joined: Tue Sep 01, 2015 10:32 pm

Re: Foliage MultiLayer .GDM

Post by lindbejb »

Decker_MMIV wrote:In case you still need more information to your question.

I believe that a foliage multilayer / GDM file needs at least one of its foliage-sub-layers to be registered as either a 'fruit' or a 'dynamic layer', before the game will attempt to save it to the savegame folder.

Look for g_currentMission.loadFoliageLayer(...) - which unfortunately is not documented.

Some old stuff:
- https://www.fs-uk.com/forum/index.php?t ... msg1209994
- https://github.com/DeckerMMIV/FarmSim_M ... liageLayer
what is weird is it saves one but not the other in the saved game folder.
Post Reply