Layer hinzufügen

Eure Foren für alle Diskussionen rund ums Thema Modding.
Sheldon
Posts: 426
Joined: Fri Oct 08, 2010 6:50 pm

Layer hinzufügen

Post by Sheldon »

Hallo,
ich wollte der Modmap neue Layer hinzufügen.
oben die entsprechenden Files eingetragen und unten unter Layers nach dem pigMud Layer die neuen Layer eingefügt.
Wenn ich die Map dann starte, bricht es ab beim laden.

Was hab ich falsch gemacht?
<File fileId="3000" filename="map01/asphalt_weight.png" relativePath="true"/>
<File fileId="3001" filename="map01/water_weight.png" relativePath="true"/>
<File fileId="3002" filename="map01/bodenplatte_weight.png" relativePath="true"/>
<File fileId="3003" filename="map01/pflastersteine_weight.png" relativePath="true"/>
<File fileId="3004" filename="textures/terrain/asphalt_diffuse.png" relativePath="true"/>
<File fileId="3005" filename="textures/terrain/asphalt_distance_diffuse.png" relativePath="true"/>
<File fileId="3006" filename="textures/terrain/asphalt_normal.png" relativePath="true"/>
<File fileId="3007" filename="textures/terrain/water_diffuse.png" relativePath="true"/>
<File fileId="3008" filename="textures/terrain/water_distance_diffuse.png" relativePath="true"/>
<File fileId="3009" filename="textures/terrain/water_normal.png" relativePath="true"/>
<File fileId="3010" filename="textures/terrain/bodenplatte_diffuse.png" relativePath="true"/>
<File fileId="3011" filename="textures/terrain/bodenplatte_distance_diffuse.png" relativePath="true"/>
<File fileId="3012" filename="textures/terrain/bodenplatte_normal.png" relativePath="true"/>
<File fileId="3013" filename="textures/terrain/pflastersteine_diffuse.png" relativePath="true"/>
<File fileId="3014" filename="textures/terrain/pflastersteine_distance_diffuse.png" relativePath="true"/>
<File fileId="3015" filename="textures/terrain/pflastersteine_normal.png" relativePath="true"/>

<Layer name="asphalt" detailMapId="3004" normalMapId="3006" unitSize="16" weightMapId="3000" distanceMapId="3005" attributes="0.408 0.412 0.4 0 7" priority="0"/>
<Layer name="water" detailMapId="3007" normalMapId="3009" unitSize="16" weightMapId="3001" distanceMapId="3008" attributes="0.443 0.424 0.4 0.7 1" priority="0"/>
<Layer name="bodenplatte" detailMapId="3010" normalMapId="3012" unitSize="16" weightMapId="3002" distanceMapId="3011" attributes="0.376 0.38 0.376 0 1" priority="0"/>
<Layer name="pflastersteine" detailMapId="3013" normalMapId="3015" unitSize="16" weightMapId="3003" distanceMapId="3014" attributes="0.376 0.38 0.376 0 1" priority="0"/>
User avatar
kevink98
Posts: 171
Joined: Thu Jul 23, 2015 3:29 pm
Contact:

Re: Layer hinzufügen

Post by kevink98 »

Schick doch erstmal die Log!

Edit: Wo hast du das Material?
Meine Mods: LS-Modcompany - Mods

Facebook: LS-Modcompany
Website: LS-Modcompany
Sheldon
Posts: 426
Joined: Fri Oct 08, 2010 6:50 pm

Re: Layer hinzufügen

Post by Sheldon »

Ich habe es jetzt hinbekommen, es lag daran das die neuen Texturen nun im dds dxt5 Format sind.
Editor startet wieder, gibt keine Errormeldung.

Aber die neuen Layer sind nicht zu finden.

Was fehlt denn noch?
arii
Posts: 74
Joined: Tue Oct 25, 2016 3:19 am

Re: Layer hinzufügen

Post by arii »

Hi hier mal ein kleines tut das funksioniert 100% ein neue foliage muss in diese art gebaut werden

<File fileId="10000" filename="map01/kraut_density.png" relativePath="true"/>

<File fileId="10500" filename="foliage/foliage_kraut_diffuse.png" relativePath="true"/>

<Material name="foliage_kraut_mat" materialId="20000" ambientColor="1 1 1" customShaderId="49"> ------fruitGrowthFoliageShader.xml--id numer von eure i3d
<Texture fileId="10500"/>
<CustomParameter name="alphaBlendStartEnd" value="80 100 0 0"/>
<CustomParameter name="frequencyAndScale" value="0.3 0.1 0 0"/>
</Material>

<FoliageMultiLayer densityMapId="10000" numChannels="1" numTypeIndexChannels="0">
<FoliageSubLayer name="kraut" numDensityMapChannels="1" materialId="20000" cellSize="8" viewDistance="200" objectMask="65520" atlasSize="8" atlasOffsets="0.125 0" numBlocksPerUnit="1" width="1.6" height="1.3" widthVariance="0.1" heightVariance="0.2" horizontalPositionVariance="0.7"/>
</FoliageMultiLayer>
Sheldon
Posts: 426
Joined: Fri Oct 08, 2010 6:50 pm

Re: Layer hinzufügen

Post by Sheldon »

ja die foliage gehen, aber eben nicht die Textur Layer, also ich meine damit die wie roughdirt, pigmud,...
arii
Posts: 74
Joined: Tue Oct 25, 2016 3:19 am

Re: Layer hinzufügen

Post by arii »

hast du die id alles angepasst als beispiel hier <Layer name="gravel" detailMapId="21" normalMapId="22" unitSize="8" weightMapId="19" distanceMapId="20" die sind beim texture terrain
Sheldon
Posts: 426
Joined: Fri Oct 08, 2010 6:50 pm

Re: Layer hinzufügen

Post by Sheldon »

Ja habe ich:

Code: Select all

<File fileId="3007" filename="textures/terrain/water_diffuse.png" relativePath="true"/>
<File fileId="3008" filename="textures/terrain/water_distance_diffuse.png" relativePath="true"/>
<File fileId="3009" filename="textures/terrain/water_normal.png" relativePath="true"/>
<File fileId="3001" filename="map01/water_weight.png" relativePath="true"/>

<Layer name="water" detailMapId="3007" normalMapId="3009" unitSize="16" weightMapId="3001" distanceMapId="3008" attributes="0.443 0.424 0.4 0.7 1" priority="0"/>
arii
Posts: 74
Joined: Tue Oct 25, 2016 3:19 am

Re: Layer hinzufügen

Post by arii »

hmm leider habe jetzt keine ahnung was da nicht stimmt
Julian
Posts: 49
Joined: Tue Dec 18, 2007 3:06 pm
Location: Nürnberg
Contact:

Re: Layer hinzufügen

Post by Julian »

Hat hier jemand eine Lösung gefunden? Habe dasselbe Problem, irgendwas scheint sich im Vergleich zum LS15 grundlegend verändert zu haben

Error: Failed to create texture array. Texture 'E:/LS17/NeueMap/EIGENE MAP FS17/maps/textures/terrain/pflasterstein_diffuse.png' doesn't match the image properties of the other layers.
User avatar
Rene248
Posts: 191
Joined: Thu Dec 17, 2009 8:38 pm
Location: MV

Re: Layer hinzufügen

Post by Rene248 »

Ich habe heute mal meine Layer eingefügt und die funktionieren.

<File fileId="2195" filename="map01/schilf_density.png" relativePath="true"/>
<File fileId="2196" filename="../foliage/schilf_diffuse.dds" relativePath="true"/>
<File fileId="2197" filename="map01/brennnessel_density.png" relativePath="true"/>
<File fileId="2198" filename="../foliage/brennnessel_diffuse.dds" relativePath="true"/>
<File fileId="21100" filename="../foliage/haendelwurz_diffuse.dds" relativePath="true"/>
<File fileId="2199" filename="map01/haendelwurz_density.png" relativePath="true"/>
<File fileId="21102" filename="../foliage/trockengras_diffuse.dds" relativePath="true"/>
<File fileId="21101" filename="map01/trockengras_density.png" relativePath="true"/>

<Material name="foliage_schilf_mat" materialId="554" ambientColor="1 1 1" customShaderId="49">
<Texture fileId="2196"/>
<CustomParameter name="alphaBlendStartEnd" value="70 75 0 0"/>
<CustomParameter name="frequencyAndScale" value="0.3 0.1 0 0"/>
</Material>
<Material name="foliage_brennnessel_mat" materialId="838" ambientColor="1 1 1" customShaderId="49">
<Texture fileId="2198"/>
<CustomParameter name="alphaBlendStartEnd" value="70 75 0 0"/>
<CustomParameter name="frequencyAndScale" value="0.2 0.1 0 0"/>
</Material>
<Material name="foliage_haendelwurz_mat" materialId="810" ambientColor="1 1 1" customShaderId="49">
<Texture fileId="21100"/>
<CustomParameter name="alphaBlendStartEnd" value="70 75 0 0"/>
<CustomParameter name="frequencyAndScale" value="0.2 0.1 0 0"/>
</Material>
<Material name="foliage_trockengras_mat" materialId="627" ambientColor="1 1 1" customShaderId="49">
<Texture fileId="21102"/>
<CustomParameter name="alphaBlendStartEnd" value="70 75 0 0"/>
<CustomParameter name="frequencyAndScale" value="0.3 0.1 0 0"/>
</Material>

<FoliageMultiLayer densityMapId="2195" numChannels="1" numTypeIndexChannels="0">
<FoliageSubLayer name="Schilf" numDensityMapChannels="1" materialId="554" cellSize="8" viewDistance="80" objectMask="65520" atlasSize="8" atlasOffsets="0.125 0" numBlocksPerUnit="1.2" width="1" height="2.7" widthVariance="0.3" heightVariance="0.3" horizontalPositionVariance="0.5"/>
</FoliageMultiLayer>
<FoliageMultiLayer densityMapId="2197" numChannels="1" numTypeIndexChannels="0">
<FoliageSubLayer name="Brennnessel" numDensityMapChannels="1" materialId="838" cellSize="8" viewDistance="80" objectMask="65520" atlasSize="8" atlasOffsets="0.125 0" numBlocksPerUnit="1" width="1.4" height="1.5" widthVariance="0.3" heightVariance="0.3" horizontalPositionVariance="0.5"/>
</FoliageMultiLayer>
<FoliageMultiLayer densityMapId="2199" numChannels="1" numTypeIndexChannels="0">
<FoliageSubLayer name="Haendelwurz" numDensityMapChannels="1" materialId="810" cellSize="8" viewDistance="80" objectMask="65520" atlasSize="8" atlasOffsets="0.125 0" numBlocksPerUnit="1" width="1.7" height="1.5" widthVariance="0.1" heightVariance="0.3" horizontalPositionVariance="0.5"/>
</FoliageMultiLayer>
<FoliageMultiLayer densityMapId="21101" numChannels="1" numTypeIndexChannels="0">
<FoliageSubLayer name="Trockengras" numDensityMapChannels="1" materialId="627" cellSize="8" viewDistance="80" objectMask="65520" atlasSize="8" atlasOffsets="0.125 0" numBlocksPerUnit="1.2" width="1.4" height="1.4" widthVariance="0.2" heightVariance="0.2" horizontalPositionVariance="0.3"/>
</FoliageMultiLayer>
Ist der Bauer reicher, fahrt er einen Eicher
Julian
Posts: 49
Joined: Tue Dec 18, 2007 3:06 pm
Location: Nürnberg
Contact:

Re: Layer hinzufügen

Post by Julian »

Das sind Pflanzenlayer, in diesem Thread ging/geht es aber um Terrain Texturen ;)
Sheldon
Posts: 426
Joined: Fri Oct 08, 2010 6:50 pm

Re: Layer hinzufügen

Post by Sheldon »

Die Texturen müssen meiner Meinung nach im dds dxt5 Format sein, dann sollten sie auch keinen Fehler erzeugen.

Aber dieTextur Layer erscheinen immer noch nicht im GE.

Schade das es anscheinend immer noch keiner rausbekommen hat woran es liegt. Dann ist es vielleicht doch ein Fehler und sollte im Bugthread gemeldet werden?
arii
Posts: 74
Joined: Tue Oct 25, 2016 3:19 am

Re: Layer hinzufügen

Post by arii »

Error: Failed to create texture array. Texture 'E:/LS17/NeueMap/EIGENE MAP FS17/maps/textures/terrain/pflasterstein_diffuse.png' doesn't match the image properties of the other layers.

das hier sagt das die textur passt nicht zu die anderren texturen kann es sein das die texure falchen format hat ?
Flojoe7
Posts: 630
Joined: Mon May 25, 2009 8:19 pm

Re: Layer hinzufügen

Post by Flojoe7 »

Ich habe den Fehler auch :(

Code: Select all

Error: Failed to create texture array. Texture 'C:/Users/Flo/Desktop/Neuer Ordner/map/textures/terrain/grass_diffuse.png' doesn't match the image properties of the other layers.
Weiß er ne Lösung ?
Endlich vorbei mit den Kindergarten sc**** Neid in der LS Szene
User avatar
Yeti_222
Posts: 645
Joined: Thu Apr 30, 2009 8:39 pm
Location: Bayern/Oberpfalz

Re: Layer hinzufügen

Post by Yeti_222 »

Wenn ihr die original Texturen anschaut, seht ihr, dass die diffuse eine Größe von 2048 x 2048 haben. Gespeichert in DDS mit DXT 5.
Die Distance haben eine Größe von 256 x 256. Gespeichert in DDS mit DXT 1.
Die Normal haben eine Größe von 2048 x 2048. Gespeichert in DDS mit DXT 1.
Mein System:
Win 10 Prof 64bit
Prozessor AMD Ryzen 5 5600 6x 3,5 GHz
Board MSI X570-A PRO
Grafik Asus GTX 3070 8 GB DDR 6 256 bit
Speicher 32 GB DDR 4 3200 MHz
Post Reply