Community Forum

densityMapHeightTypes

Forum Overview >> Editor

CategoryEditor
Created21.01.2019 14:09


Andrei Sprinseana (xsenio) 21.01.2019 14:09
Greetings I'm trying to add my paths to textures to densityMapHeightTypes, but for some reason the game doesn't want to see them. Can anyone know what I am doing wrong? Thank you in advance.

<densityMapHeightType fillTypeName="wheat" maxSurfaceAngle="26" fillToGroundScale="1.0" allowsSmoothing="false" >
<collision scale="1.0" baseOffset="0.08" minOffset="0.0" maxOffset="0.08" />
<textures diffuse="fillPlanes/wheat_diffuse.png" normal="fillPlanes/wheat_normal.png" distance="fillPlanes/distance/wheatDistance_diffuse.png" />
</densityMapHeightType>

That's how I did, all the textures are set correctly. But there is a mistake in the game.

Error: Failed to load distance texture 'fillPlanes/distance/wheatDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/barleyDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/oatDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/canolaDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/maizeDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/potatoesDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/sugarBeetsDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/soybeanDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/sunflowerDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/chaffDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/genericSeedDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/limeDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/fertilizerDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/sugarCaneDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/strawDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/grassDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/hayDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/silageDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/forageDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/pigFoodDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/manureDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/woodChipsDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/tarpDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/carrotDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/onionDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/cloverDistance_diffuse.png'.
Error: Failed to load distance texture 'fillPlanes/distance/drycloverDistance_diffuse.png'.
Error: Failed to create texture array. Texture 'fillPlanes/wheat_diffuse.png' couldn't be loaded.
Error: Failed to create texture array. Texture 'fillPlanes/wheat_normal.png' couldn't be loaded.

Bilbo Beutlin (BBeutlin) 21.01.2019 14:57
I'd guess you made something wrong at exporting.

Are the files really in your modmap folder?
Then make sure, that the folder 'fillPlanes' is just in folder of the map.i3d.

Or do you want to use the default game files?
Then replace in your map.i3d all filename="fillplanes/" with filename="$data/fillplanes/"

Andrei Sprinseana (xsenio) 21.01.2019 16:07
I apologize, I didn’t quite understand what it has to do with densityMapHeightTypes, that is, densityMapHeightTypes is responsible for what will be sprinkled directly on the ground, that is, straw or grass_windrow or different heaps on the ground. if in densityMapHeightTypes to register like this

<densityMapHeightType fillTypeName="wheat" maxSurfaceAngle="26" fillToGroundScale="1.0" allowsSmoothing="false" >
<collision scale="1.0" baseOffset="0.08" minOffset="0.0" maxOffset="0.08" />
<textures diffuse="data/fillPlanes/wheat_diffuse.png" normal="data/fillPlanes/wheat_normal.png"
distance="data/fillPlanes/distance/wheatDistance_diffuse.png" />
</densityMapHeightType>

Then it works without errors.
But I need to prescribe my textures to the heaps.

Andrei Sprinseana (xsenio) 21.01.2019 16:14
All I need is how can I edit the texture path in this densityMapHeightTypes.xml file

Bilbo Beutlin (BBeutlin) 21.01.2019 22:16
The <densityMapHeightTypes> are assigned in the map.xml. For usual commented out so the game defaults are taken.

You had to edit the map.xml
<densityMapHeightTypes filename="myDensityMapHeightTypes.xml" />

If you have all relevant stuff in the modmap's root folder (incl. folder 'fillPlanes'), you can use for the filepath "$modmap$fillPlanes/.."

Andrei Sprinseana (xsenio) 21.01.2019 22:52
Everything is done. I registered the path correctly, the game does not see everything.
I tried and with $ modmap $ fillPlanes the textures are not loaded anyway.

<animalNames filename="xml/animalNames.xml" />
<baleTypes filename="xml/baleTypes.xml" />
<colorGrading filename="$data/maps/mapDE_colorGrading.xml" />
<densityMapHeightTypes filename="xml/densityMapHeightTypes.xml" />
<environment filename="xml/environment.xml" />
<farmlands filename="xml/farmlands.xml" />
<fillTypes filename="xml/fillTypes.xml" />
<fruitTypes filename="xml/fruitTypes.xml" />
<gameplayHints filename="xml/gameplayHints.xml" />
<helpers filename="xml/helpers.xml" />
<helpline filename="xml/helpLine.xml" />
<husbandryAnimals filename="xml/husbandryAnimals.xml" />
<husbandryFood filename="xml/husbandryFoodDefinition.xml" />
<missionVehicles filename="$dataS/missionVehicles.xml" />
<npcs filename="xml/npcs.xml" />
<shop filename="$data/store/ui/shop.xml" />
<sounds filename="xml/sound.xml" />
<sprayTypes filename="xml/sprayTypes.xml" />
<storeItems filename="xml/storeItems.xml" />
<transportMissions filename="xml/transportMissions.xml" />
<treeTypes filename="xml/treeTypes.xml" />
<wildlife filename="xml/wildlifeSpawner.xml" />

Andrei Sprinseana (xsenio) 21.01.2019 22:54
With bales the same nonsense turns out, made my bales prescribed the path to them, the game does not load them and that's it.

Bilbo Beutlin (BBeutlin) 22.01.2019 03:31
See https://gdn.giants-software.com/thread.php?categoryId=4&threadId=6502
espec. the post of Jos Kuijpers 07.01.2019 10:16

Andrei Sprinseana (xsenio) 22.01.2019 08:59
Thanks Bilbo, it means that the problem is not solved yet. Although with a full path works fine. And about the duplication of the list of cultures, I fully agree with you, you need to make sure that there is any opportunity to turn them off. Thank you again Bilbo, we will wait for the new patch.

Andrei Sprinseana (xsenio) 16.02.2019 14:18
Greetings! The maximum number of crops in densityMapHeightTypes is only 31. If you prescribe 32, then the map simply does not start and the game crashes, so it was in 17 farm that still remains, that is, the number of crops did not increase, I tried to remove default unnecessary cultures, but they are not completely removed . From such a question, can we somehow increase this value or how can we remove it from default cultures? Thank you in advance.

Onkel Yogi (onkelyogi) 30.06.2019 23:09
looks like it doesn't help to insert an edited version of the densityMapHeightTypes.xml into the map.xml where i deleted
several types i.ex. tarp ...

the savegame shows me that the game still reads the default version from the game folder and simply adds new types
from my edited version up to the max of 31 and crashing if i add more in my edited version ...

so anybody found out how to increase that magical number 31 ???

Bilbo Beutlin (BBeutlin) 01.07.2019 08:25
At least it requires changes in the map.i3d <DetailLayer name="terrainDetailHeight" ..
The available 31 types (= $1F = %11111) are restricted by the lower 5 bits, where the upper bits represent the height.
'numDensityMapChannels' must be increased, the depending attributes to be adapted accordingly (compressionChannels, heightFirstChannel, heightNumChannels, ..)

Perhaps that's sufficient, but might be there's also a global control variable to be set by LUA script in the style 'variableName.SEND_NUM_BITS = .."


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