Community Forum

Paintable Foliage Question

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created01.07.2020 12:16


Rob Peters (Unknown) 01.07.2020 12:16
This is what I have in my mapUS.xml:

<paintableFoliages>
<paintableFoliage id="1" layerName="grass" firstDensityMapChannel="0" numDensityMapChannels="4" value="4" />
<paintableFoliage id="2" layerName="bush01" firstDensityMapChannel="0" numDensityMapChannels="4" value="1"/>
<paintableFoliage id="3" layerName="bush01" firstDensityMapChannel="0" numDensityMapChannels="4" value="3"/>
<paintableFoliage id="4" layerName="decoFoliage" firstDensityMapChannel="0" numDensityMapChannels="4" value="5"/>
<paintableFoliage id="5" layerName="decoFoliage" firstDensityMapChannel="0" numDensityMapChannels="4" value="6"/>
<paintableFoliage id="6" layerName="decoFoliage" firstDensityMapChannel="0" numDensityMapChannels="4" value="9"/>
<paintableFoliage id="7" layerName="decoFoliage" firstDensityMapChannel="0" numDensityMapChannels="4" value="11"/>
</paintableFoliages>


Id's 1, 2 and 6 work correctly in game, while the others do not. I am not sure what I am doing wrong that causes the others not to work.

Any help?

Bilbo Beutlin (BBeutlin) 02.07.2020 00:12
See the related foliage.xml, the 'value' must match the described bitmask.

Rob Peters (Unknown) 02.07.2020 15:10
This is the deco foliage.xml, not sure what the bitmask is or what number represents the proper value.

<?xml version="1.0" encoding="utf-8"?>
<foliageType distanceTexturePath="distance">
<!-- decoFoliage

5 6 7 8

1 0 0 0 - grassLong small
0 1 0 0 - grassLong middle
1 1 0 0 - smallAlive
0 0 1 0 - smallAlive rumex
1 0 1 0 - bigAlive apera
0 1 1 0 - bigAlive chaerophyllum
1 1 1 0 - bigAlive chenopodium
0 0 0 1 - bigAlive cirsium
1 0 0 1 - bigAlive papaverRhoeas
0 1 0 1 - bigAlive rumex
1 1 0 1 - grassDense

-->
<foliageLayer cellSize="8" objectMask="16711935" decalLayer="0" densityMapChannelOffset="0" numDensityMapChannels="4" numBlocksPerUnit="1.5" shapeSource="decoFoliage.i3d">
<foliageStateDefaults distanceMapLayer="0" widthVariance="0.2" heightVariance="0.3" horizontalPositionVariance="0.3" />
<!-- default LOD distances etc -->
<foliageLodDefaults lod="0" viewDistance="40" blendOutDistance="1" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
<foliageLodDefaults lod="1" viewDistance="80" blendOutDistance="1" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
<!-- 1 0 0 0 - grassLong small -->
<foliageState width="0.8" height="0.2" numBlocksPerUnit="1.5" >
<foliageShape>
<foliageLod blockShape="4>0|0" />
<foliageLod blockShape="4>1|0" />
</foliageShape>
</foliageState>
<!-- 0 1 0 0 - grassLong middle -->
<foliageState width="1.1" height="0.25" numBlocksPerUnit="1.5" >
<foliageShape>
<foliageLod blockShape="4>0|1" />
<foliageLod blockShape="4>1|1" />
</foliageShape>
</foliageState>
<!-- 1 1 0 0 - smallAlive -->
<foliageState width="0.45" height="0.45" numBlocksPerUnit="3">
<foliageShape>
<foliageLod blockShape="0>0|0" />
<foliageLod blockShape="0>0|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>1|0" />
<foliageLod blockShape="0>1|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>2|0" />
<foliageLod blockShape="0>2|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>3|0" />
<foliageLod blockShape="0>3|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>4|0" />
<foliageLod blockShape="0>4|1" />
</foliageShape>
</foliageState>
<!-- 0 0 1 0 - smallAlive rumex -->
<foliageState width="0.45" height="0.45" numBlocksPerUnit="3">
<foliageShape>
<foliageLod blockShape="0>5|0" />
<foliageLod blockShape="0>5|1" />
</foliageShape>
</foliageState>
<!-- 1 0 1 0 - bigAlive apera -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>0|0" />
<foliageLod blockShape="1>0|1" />
</foliageShape>
</foliageState>
<!-- 0 1 1 0 - bigAlive chaerophyllum -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>1|0" />
<foliageLod blockShape="1>1|1" />
</foliageShape>
</foliageState>
<!-- 1 1 1 0 - bigAlive chenopodium -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>2|0" />
<foliageLod blockShape="1>2|1" />
</foliageShape>
</foliageState>
<!-- 0 0 0 1 - bigAlive cirsium -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>3|0" />
<foliageLod blockShape="1>3|1" />
</foliageShape>
</foliageState>
<!-- 1 0 0 1 - bigAlive papaverRhoeas -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>4|0" />
<foliageLod blockShape="1>4|1" />
</foliageShape>
</foliageState>
<!-- 0 1 0 1 - bigAlive rumex -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>5|0" />
<foliageLod blockShape="1>5|1" />
</foliageShape>
</foliageState>
<!-- 1 1 0 1 - grassDense -->
<foliageState width="0.35" height="0.095" numBlocksPerUnit="5">
<foliageShape>
<foliageLod blockShape="5>0|0" />
<foliageLod blockShape="5>1|0" />
</foliageShape>
</foliageState>
<!-- -->
</foliageLayer>
</foliageType>

In game deco foliage 9 is the only deco foliage that works when painting.

Rob Peters (Unknown) 02.07.2020 15:11
Double posted for some reason.

Rob Peters (Unknown) 04.07.2020 09:15
This is the deco foliage.xml, not sure what the bitmask is or what number represents the proper value.

<?xml version="1.0" encoding="utf-8"?>
<foliageType distanceTexturePath="distance">
<!-- decoFoliage

5 6 7 8

1 0 0 0 - grassLong small
0 1 0 0 - grassLong middle
1 1 0 0 - smallAlive
0 0 1 0 - smallAlive rumex
1 0 1 0 - bigAlive apera
0 1 1 0 - bigAlive chaerophyllum
1 1 1 0 - bigAlive chenopodium
0 0 0 1 - bigAlive cirsium
1 0 0 1 - bigAlive papaverRhoeas
0 1 0 1 - bigAlive rumex
1 1 0 1 - grassDense

-->
<foliageLayer cellSize="8" objectMask="16711935" decalLayer="0" densityMapChannelOffset="0" numDensityMapChannels="4" numBlocksPerUnit="1.5" shapeSource="decoFoliage.i3d">
<foliageStateDefaults distanceMapLayer="0" widthVariance="0.2" heightVariance="0.3" horizontalPositionVariance="0.3" />
<!-- default LOD distances etc -->
<foliageLodDefaults lod="0" viewDistance="40" blendOutDistance="1" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
<foliageLodDefaults lod="1" viewDistance="80" blendOutDistance="1" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
<!-- 1 0 0 0 - grassLong small -->
<foliageState width="0.8" height="0.2" numBlocksPerUnit="1.5" >
<foliageShape>
<foliageLod blockShape="4>0|0" />
<foliageLod blockShape="4>1|0" />
</foliageShape>
</foliageState>
<!-- 0 1 0 0 - grassLong middle -->
<foliageState width="1.1" height="0.25" numBlocksPerUnit="1.5" >
<foliageShape>
<foliageLod blockShape="4>0|1" />
<foliageLod blockShape="4>1|1" />
</foliageShape>
</foliageState>
<!-- 1 1 0 0 - smallAlive -->
<foliageState width="0.45" height="0.45" numBlocksPerUnit="3">
<foliageShape>
<foliageLod blockShape="0>0|0" />
<foliageLod blockShape="0>0|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>1|0" />
<foliageLod blockShape="0>1|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>2|0" />
<foliageLod blockShape="0>2|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>3|0" />
<foliageLod blockShape="0>3|1" />
</foliageShape>
<foliageShape>
<foliageLod blockShape="0>4|0" />
<foliageLod blockShape="0>4|1" />
</foliageShape>
</foliageState>
<!-- 0 0 1 0 - smallAlive rumex -->
<foliageState width="0.45" height="0.45" numBlocksPerUnit="3">
<foliageShape>
<foliageLod blockShape="0>5|0" />
<foliageLod blockShape="0>5|1" />
</foliageShape>
</foliageState>
<!-- 1 0 1 0 - bigAlive apera -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>0|0" />
<foliageLod blockShape="1>0|1" />
</foliageShape>
</foliageState>
<!-- 0 1 1 0 - bigAlive chaerophyllum -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>1|0" />
<foliageLod blockShape="1>1|1" />
</foliageShape>
</foliageState>
<!-- 1 1 1 0 - bigAlive chenopodium -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>2|0" />
<foliageLod blockShape="1>2|1" />
</foliageShape>
</foliageState>
<!-- 0 0 0 1 - bigAlive cirsium -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>3|0" />
<foliageLod blockShape="1>3|1" />
</foliageShape>
</foliageState>
<!-- 1 0 0 1 - bigAlive papaverRhoeas -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>4|0" />
<foliageLod blockShape="1>4|1" />
</foliageShape>
</foliageState>
<!-- 0 1 0 1 - bigAlive rumex -->
<foliageState width="1.1" height="1.1">
<foliageShape>
<foliageLod blockShape="1>5|0" />
<foliageLod blockShape="1>5|1" />
</foliageShape>
</foliageState>
<!-- 1 1 0 1 - grassDense -->
<foliageState width="0.35" height="0.095" numBlocksPerUnit="5">
<foliageShape>
<foliageLod blockShape="5>0|0" />
<foliageLod blockShape="5>1|0" />
</foliageShape>
</foliageState>
<!-- -->
</foliageLayer>
</foliageType>

In game deco foliage 9 is the only deco foliage that works when painting.

Rob Peters (Unknown) 06.07.2020 16:52
Is there anyone who can explain what numbers I need for the appropriate paint-able foliage?

Rob Peters (Unknown) 09.07.2020 08:33
Bilbo, can you help me with this? I have tried a number of different things, but can't get this working right.


Note: Log in to post. Create a new account here.