Dynamic hoses

Your forum for all discussions around Modding.
rodney241
Posts: 10
Joined: Fri Mar 31, 2017 8:31 pm

Dynamic hoses

Post by rodney241 »

Hi there!

I'm working on a mod to add some few things to make it more like my taste and wishes but i've got stuck into a problem with the dynamic hoses..

I've been checking the XML for a thousand times and even compaired it with some others where the dynamic hoses also are included (working) but I just cant find it.

Looks like the hoses are not being reconized by the mod or something like that..

Image

Image
(This picture is to show that the nodes are correctly overtaken into the XML)
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="waterTrailer">
<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

<storeData>
<name>Q-BIG Liner 32000TRS</name>
<specs>
<neededPower>175</neededPower>
</specs>
<functions>
<function>$l10n_function_tank</function>
</functions>
<image>store.png</image>
<price>38000</price>
<dailyUpkeep>60</dailyUpkeep>
<lifetime>600</lifetime>
<rotation>0</rotation>
<brand>JOSKIN</brand>
<category>animals</category>
<vertexBufferMemoryUsage>1010048</vertexBufferMemoryUsage>
<indexBufferMemoryUsage>124116</indexBufferMemoryUsage>
<textureMemoryUsage>22610632</textureMemoryUsage>
<instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
<instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
</storeData>

<typeDesc>$l10n_typeDesc_waterTrailer</typeDesc>
<filename>joskinwater.i3d</filename>

<size width="3.8" length="10" lengthOffset="0.3"/>

<powerConsumer ptoRpm="500" neededPtoPower="10"/>
<speedLimit value="17" />

<wheelConfigurations>
<wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
<wheels>
<wheel tipOcclusionAreaGroupId="1" restLoad="1.8" repr="0>0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_750_60R30_5.xml" isLeft="true" initialCompression="40" suspTravel="0.25" spring="40" damper="70" hasParticles="true" steeringAxleScale="0.3" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
<wheel tipOcclusionAreaGroupId="2" restLoad="1.8" repr="0>0|1" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_750_60R30_5.xml" isLeft="false" initialCompression="40" suspTravel="0.25" spring="40" damper="70" hasParticles="true" steeringAxleScale="0.3" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
<wheel tipOcclusionAreaGroupId="1" restLoad="1.9" repr="0>0|2" forcePointRatio="0.3" filename="$data/vehicles/wheels/trelleborg/TwinRadial_750_60R30_5.xml" isLeft="true" initialCompression="30" suspTravel="0.25" spring="40" damper="70" />
<wheel tipOcclusionAreaGroupId="2" restLoad="1.9" repr="0>0|3" forcePointRatio="0.3" filename="$data/vehicles/wheels/trelleborg/TwinRadial_750_60R30_5.xml" isLeft="false" initialCompression="30" suspTravel="0.25" spring="40" damper="70" />
<wheel tipOcclusionAreaGroupId="1" restLoad="1.8" repr="0>0|4" forcePointRatio="0.3" filename="$data/vehicles/wheels/trelleborg/TwinRadial_750_60R30_5.xml" isLeft="true" initialCompression="20" suspTravel="0.25" spring="40" damper="70" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
<wheel tipOcclusionAreaGroupId="2" restLoad="1.8" repr="0>0|5" forcePointRatio="0.3" filename="$data/vehicles/wheels/trelleborg/TwinRadial_750_60R30_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="40" damper="70" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
</wheels>
</wheelConfiguration>

<wheelConfiguration name="$l10n_AllianceFlotation" price="2800">
<wheels>
<wheel tipOcclusionAreaGroupId="1" restLoad="1.8" repr="0>0|0" forcePointRatio="0.2" filename="Wheels/AllianceFlotation.xml" isLeft="true" initialCompression="40" suspTravel="0.25" spring="40" damper="70" hasParticles="true" steeringAxleScale="0.3" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
<wheel tipOcclusionAreaGroupId="2" restLoad="1.8" repr="0>0|1" forcePointRatio="0.2" filename="Wheels/AllianceFlotation.xml" isLeft="false" initialCompression="40" suspTravel="0.25" spring="40" damper="70" hasParticles="true" steeringAxleScale="0.3" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
<wheel tipOcclusionAreaGroupId="1" restLoad="1.9" repr="0>0|2" forcePointRatio="0.3" filename="Wheels/AllianceFlotation.xml" isLeft="true" initialCompression="30" suspTravel="0.25" spring="40" damper="70" />
<wheel tipOcclusionAreaGroupId="2" restLoad="1.9" repr="0>0|3" forcePointRatio="0.3" filename="Wheels/AllianceFlotation.xml" isLeft="false" initialCompression="30" suspTravel="0.25" spring="40" damper="70" />
<wheel tipOcclusionAreaGroupId="1" restLoad="1.8" repr="0>0|4" forcePointRatio="0.3" filename="Wheels/AllianceFlotation.xml" isLeft="true" initialCompression="20" suspTravel="0.25" spring="40" damper="70" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
<wheel tipOcclusionAreaGroupId="2" restLoad="1.8" repr="0>0|5" forcePointRatio="0.3" filename="Wheels/AllianceFlotation.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="40" damper="70" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
</wheels>
</wheelConfiguration>

<rimColor>0.9490 0.3838 0.0104 1</rimColor>

<axisColor>0.0738 0.3993 0.0738 1</axisColor>

<steeringAxleAngleScale startSpeed="0" endSpeed="90" backwards="true" />
<brakeForce>1.8</brakeForce>
<maximalAirConsumptionPerFullStop value="0.4" />

<lights>
<low>
<light decoration="0>2|1|0" lightTypes="0 3" />
<!--> <light realLight="0>2|0|0|1" decoration="0>2|0|0|0" lightTypes="1" /> -->
</low>
<high>
<light realLight="0>2|1|1" decoration="0>2|1|0" lightTypes="0 3" />
<!-- <light realLight="0>2|0|0|2" decoration="0>2|0|0|0" lightTypes="1" /> -->
</high>
</lights>

<brakeLights>
<brakeLight realLight="0>2|1|1" decoration="0>2|3|0" />
</brakeLights>

<turnLights>
<turnLightLeft realLight="0>2|2|0|1" decoration="0>2|2|0|0" />
<turnLightRight realLight="0>2|2|1|1" decoration="0>2|2|1|0" />
</turnLights>

<reverseLights>
<reverseLight realLight="0>2|5|1" decoration="0>2|5|0" />
</reverseLights>
<beaconLights>
<beaconLight index="0>2|6" speed="0.012" filename="$data/shared/beaconLights/beaconLight06.i3d" />
</beaconLights>
<designConfigurations>
<designConfiguration name="$l10n_configuration_valueDefault" price="0">
<objectChange node="0>5|4|0" visibilityActive="true" visibilityInactive="false"/>
<objectChange node="0>5|4|1" visibilityActive="false" visibilityInactive="true"/>
<objectChange node="0>5|4|0|0" visibilityActive="true" visibilityInactive="false"/>
<objectChange node="0>5|4|1|0" visibilityActive="false" visibilityInactive="true"/>
</designConfiguration>
<designConfiguration name="$l10n_configuration_valueColor" price="0" icon="$dataS2/menu/hud/configurations/config_edition.png">
<objectChange node="0>5|4|1" visibilityActive="true" visibilityInactive="false"/>
<objectChange node="0>5|4|0" visibilityActive="false" visibilityInactive="true"/>
<objectChange node="0>5|4|1|0" visibilityActive="true" visibilityInactive="false"/>
<objectChange node="0>5|4|0|0" visibilityActive="false" visibilityInactive="true"/>
</designConfiguration>
</designConfigurations>
<attachSound file="$data/sounds/header_attach.wav" pitchOffset="1.00" volume="0.70" indoorVolumeFactor="0.60" indoorLowpassGain="0.90"/>

<inputAttacherJoints>
<inputAttacherJoint index="0>1" jointType="trailerLow" />
</inputAttacherJoints>

<fillUnits>
<fillUnit unit="$l10n_unit_literShort" fillTypes="water" capacity="32000" />
</fillUnits>

<tipReferencePoints>
<tipReferencePoint index="0>5|2" width="2.5" />
</tipReferencePoints>

<tipAnimations>
<tipAnimation speedScale="1" closeSpeedScale="-1.7" animationName="tipAnimationBack" doorAnimationName="tipAnimationBackDoor" dischargeStartTime="0.1" dischargeEndTime="18" name="info_tipSideBack">
</tipAnimation>
</tipAnimations>

<fillLitersPerSecond>800</fillLitersPerSecond>


<fillSound file="$data/maps/sounds/refuel.wav" pitchOffset="1.0" volume="1.0" indoorVolumeFactor="0.45" volume3D="1.0" innerRadius="10" radius="40" linkNode="0>0"/>

<animations>
<!-- move support wheel down/up -->

<animation name="moveSupport">
<part node="0>3|0" startTime="0.00" endTime="0.30" startRot="90 0 0" endRot="0 0 0" />
</animation>

<animation name="tipAnimationBack">
<part node="0>5|3" startTime="0" duration="1" startTrans="0 0 0" endTrans="0 0 1" />
</animation>
</animations>

<fillRootNode index="0>" />
<!--exactFillRootNode index="0>5|4|0" />
<fillAutoAimTargetNode index="0>5|4|1" /-->
<fillMassNode index="0>" />

<waterTrailerFillTrigger index="0>5|1" />

<support animationName="moveSupport" />

<washable dirtDuration="90" washDuration="1" workMultiplier="4" />


<components count="1">
<component1 centerOfMass="0 0.9 -0.7" solverIterationCount="10" />
</components>

<schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0" />

<dynamicHose>
<set>
<hose type="hydraulic" attached="0>7|0|0|0" detached="0>7|1|0" lastHoseIKNode="0>7|0|0|1|0"/>
<hose type="hydraulic" attached="0>7|0|1|0" detached="0>7|1|1" lastHoseIKNode="0>7|0|1|1|0"/>
<hose type="hydraulic" attached="0>7|0|2|0" detached="0>7|1|2" lastHoseIKNode="0>7|0|2|1|0"/>
<hose type="hydraulic" attached="0>7|0|3|0" detached="0>7|1|3" lastHoseIKNode="0>7|0|3|1|0"/>
<hose type="air" attached="0>7|0|5|0" detached="0>7|1|5" lastHoseIKNode="0>7|0|5|1|0"/>
<hose type="air" attached="0>7|0|4|0" detached="0>7|1|4" lastHoseIKNode="0>7|0|4|1|0"/>
<hose type="electric" attached="0>7|0|6|0" detached="0>7|1|6" lastHoseIKNode="0>7|0|6|1|0"/>
</set>
</dynamicHose>

<tirePressure minPressure="1.5" maxPressure="4.5">
<emptySound node="0" radius="20" innerRadius="8" pitchOffset="1.3"
volume="5.55" indoorVolumeFactor="0.85" indoorLowpassGain="0.65"/>
<fillSound node="0" radius="20" innerRadius="8" pitchOffset="1.25"
volume="5.4" indoorVolumeFactor="0.75" indoorLowpassGain="0.55"/>
<stopSound radius="20" innerRadius="8" pitchOffset="1.1"
volume="5" indoorVolumeFactor="0.75" indoorLowpassGain="0.55"/>
</tirePressure>

</vehicle>
Any ideas??
User avatar
Wopster
Posts: 163
Joined: Sun Feb 28, 2016 6:30 pm

Re: Dynamic hoses

Post by Wopster »

Hey,
I should be able to help you with this.. ^^

The hoses are skinned?
You did add the dynamicHoseIndice to the input attacherJoint?
rodney241
Posts: 10
Joined: Fri Mar 31, 2017 8:31 pm

Re: Dynamic hoses

Post by rodney241 »

Yea, they are.

I tried to apply the tire pressure and dynamic hoses in the slurry tank and both scripts/functions are working!

So theres a problem in the water tank XML I guess..
rodney241
Posts: 10
Joined: Fri Mar 31, 2017 8:31 pm

Re: Dynamic hoses

Post by rodney241 »

Problem solved!

The <vehicle type="waterTrailer"> is a default Giants type so it don't reconizes diffrent <specializations> so I changed that into joskinWater and also did that to the Moddesc and it works!

Thanks anyway for your hands to help!
Post Reply