Community Forum

No colours on crawlers

Forum Overview >> Scripting

CategoryScripting
Created05.06.2021 23:02


Loiret Matteo (Tellto) 05.06.2021 23:02
Hello Guys, I'm Tellto. I'm here today because i've a problem with a weelconfiguration : I can't put colors on crawler I want to add on the T560. Indeed, I can put my reference in the "Hubs" part to color it, the crawlers appear white in the game. Does anyone see where the problem may come from. Thank you all in advance for your help.

Tellto

Here's the crawler part :

<wheelConfiguration name="$l10n_configuration_valueCrawler" price="21500" brand="MICHELIN">
<wheels autoRotateBackSpeed="2.2" differentialIndex="2" ackermannSteeringIndex="2">
<wheel hasTireTracks="true" hasParticles="true">
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="2.4" repr="crawlerLeftBackWheel" driveNode="crawlerLeftBackWheelDriveNode" radius="0.349" width="0.7" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="22" suspTravel="0.2" spring="34" damper="30" maxWheelSink="0.125" brakeFactor="0.4"/>
<tire tireTrackAtlasIndex="7" isCareWheel="false"/>
</wheel>
<wheel>
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="2.0" repr="crawlerLeftFrontWheel" radius="0.349" width="0.7" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="30" suspTravel="0.2" spring="34" damper="30" maxWheelSink="0.125" brakeFactor="0.4"/>
<tire isCareWheel="false" />
</wheel>
<wheel hasTireTracks="true" hasParticles="true">
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="2.4" repr="crawlerRightBackWheel" driveNode="crawlerRightBackWheelDriveNode" radius="0.349" width="0.7" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="22" suspTravel="0.2" spring="34" damper="30" maxWheelSink="0.125" brakeFactor="0.4"/>
<tire tireTrackAtlasIndex="7" isCareWheel="false"/>
</wheel>
<wheel>
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="2.0" repr="crawlerRightFrontWheel" radius="0.349" width="0.7" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="30" suspTravel="0.2" spring="34" damper="30" maxWheelSink="0.125" brakeFactor="0.4"/>
<tire isCareWheel="false" />
</wheel>

<wheel filename="$data/shared/wheels/michelin/cereXBib/620_70R26.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
<physics tipOcclusionAreaGroupId="1" rotSpeed="-1" restLoad="5.0" repr="axisBackLeft" driveNode="wheelBackLeft" forcePointRatio="0.5" frictionScale="2" initialCompression="50" suspTravel="0.12" spring="79" damper="40"/>
<steering node="steeringBar" nodeMinTransX="-0.125" nodeMaxTransX="0.125" />
</wheel>
<wheel filename="$data/shared/wheels/michelin/cereXBib/620_70R26.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
<physics tipOcclusionAreaGroupId="1" rotSpeed="-1" restLoad="5.0" repr="axisBackRight" driveNode="wheelBackRight" forcePointRatio="0.5" frictionScale="2" initialCompression="50" suspTravel="0.12" spring="79" damper="40"/>
</wheel>
<foliageBendingModifier index="2" minX="-1.38" maxX="1.38" minZ="-3" maxZ="-0.4" />
</wheels>
<crawlers>
<crawler filename="wheels/S700_tracksNarrow.xml" linkNode="crawlerLeftLinkNode" wheelIndex="1" isLeft="true" trackWidth="1.0"/>
<crawler filename="wheels/S700_tracksNarrow.xml" linkNode="crawlerRightLinkNode" wheelIndex="3" isLeft="false" trackWidth="1.0"/>
</crawlers>
<objectChange node="wheelFrontLeft" visibilityActive="false" />
<objectChange node="wheelFrontRight" visibilityActive="false" />
</wheelConfiguration>


And here the Hubs part :

<rimColor>JOHNDEERE_YELLOW1</rimColor>

<hubs>
<color0>JOHNDEERE_YELLOW1</color0>
<hub linkNode="wheelFrontLeft" filename="$data/shared/wheels/hubs/hub_n10_14.xml" isLeft="true" scale="0.58 0.38 0.38" />
<hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n10_14.xml" isLeft="false" scale="0.58 0.38 0.38" />
<hub linkNode="wheelBackLeft" filename="$data/shared/wheels/hubs/hub_n10_7.xml" isLeft="true" scale="0.28 0.28 0.28"/>
<hub linkNode="wheelBackRight" filename="$data/shared/wheels/hubs/hub_n10_7.xml" isLeft="false" scale="0.28 0.28 0.28"/>
</hubs>

Bilbo Beutlin (BBeutlin) 05.06.2021 23:39
Probably you need to define in <hubs> beneath <color0> also <color1>

Loiret Matteo (Tellto) 06.06.2021 10:47
Thank you, but what do I've to put in the color1 section ?
Also, I'm taking the part of an other mods and there's somme objectnode put in the crawler section like :


<wheelConfiguration name="$l10n_configuration_crawlerS700_36" price="24500" brand="MICHELIN">
<wheels autoRotateBackSpeed="2.2" differentialIndex="2" ackermannSteeringIndex="2" >
<wheel hasTireTracks="true" hasParticles="true" >
<physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="crawlerLeftBackWheel" driveNode="crawlerLeftBackWheelDriveNode" radius="0.39" width="1.1" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="20" suspTravel="0.25" spring="30" damper="40" brakeFactor="0.15" />
<tire tireTrackAtlasIndex="7" isCareWheel="false"/>
</wheel>
<wheel>
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="1.0" repr="crawlerLeftFrontWheel" radius="0.38" width="1.1" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="30" suspTravel="0.25" spring="30" damper="40" brakeFactor="0.15" />
<tire isCareWheel="false" />
</wheel>
<wheel hasTireTracks="true" hasParticles="true" >
<physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="crawlerRightBackWheel" driveNode="crawlerRightBackWheelDriveNode" radius="0.39" width="1.1" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="20" suspTravel="0.25" spring="30" damper="40" brakeFactor="0.15" />
<tire tireTrackAtlasIndex="7" isCareWheel="false"/>
</wheel>
<wheel>
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="1.0" repr="crawlerRightFrontWheel" radius="0.38" width="1.1" mass="0.2" frictionScale="2" tireType="crawler" initialCompression="30" suspTravel="0.25" spring="30" damper="40" brakeFactor="0.15" />
<tire isCareWheel="false" />
</wheel>
<wheel filename="$data/shared/wheels/michelin/cereXBib/750_65R26.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
<physics tipOcclusionAreaGroupId="1" rotSpeed="-1" restLoad="8.3" repr="axisBackLeft" driveNode="wheelBackLeft" forcePointRatio="0.5" frictionScale="2" initialCompression="50" suspTravel="0.15" spring="90" damper="40"/>
</wheel>
<wheel filename="$data/shared/wheels/michelin/cereXBib/750_65R26.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
<physics tipOcclusionAreaGroupId="1" rotSpeed="-1" restLoad="8.3" repr="axisBackRight" driveNode="wheelBackRight" forcePointRatio="0.5" frictionScale="2" initialCompression="50" suspTravel="0.15" spring="90" damper="40"/>
</wheel>
</wheels>
<crawlers>
<crawler filename="wheels/S700_tracks.xml" linkNode="crawlerLeftLinkNode" wheelIndex="1" isLeft="true" trackWidth="1.2"/>
<crawler filename="wheels/S700_tracks.xml" linkNode="crawlerRightLinkNode" wheelIndex="3" isLeft="false" trackWidth="1.2"/>
</crawlers>
<objectChange node="extensionLight" visibilityActive="true" />
<objectChange node="axisLeftFront" visibilityActive="false" />
<objectChange node="axisRightFront" visibilityActive="false" />
<objectChange node="axisExtension" visibilityActive="true" visibilityInative="false" />
<objectChange node="stairsDual" visibilityActive="false" />
<objectChange node="stairsNonDual" visibilityActive="true" />
<objectChange node="innerStairs" visibilityActive="false" />
<objectChange node="outerStairs" translationActive="-0.493 0.124 0.124" />
<objectChange node="lancuszki" visibilityActive="false" />

<objectChange node="crawlerLeft_translation" translationActive="1.5 0.45 0.9" />
<objectChange node="crawlerRight_translation" translationActive="-1.5 0.45 0.9" />
</wheelConfiguration>

Thank you.

Bilbo Beutlin (BBeutlin) 06.06.2021 21:20
Simply try at first with another color, eg. with the default colors in "$data/shared/brandColors.xml".
But if you have some stuff from an earlier FS, it might not work because these had a different material system.
Also look into the game log for errors.

Object nodes from other mods you must certainly adapt to fit on your mod.
Either use direct node index like "0>1|0|0" or a label defined in the xml section <i3dMappings>.


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