Ketten ein und ausblenbar machen

Moderator: Moderatoren



AbonnentenAbonnenten: 0
LesezeichenLesezeichen: 0
Zugriffe: 295
LSBauer Benutzeravatar
User

Beiträge: 50
Geschlecht: männlich
Moin Männer,

ich habe bei dem komatsu Harvester von modhoster http://www.modhoster.de/mods/komatsu-941_wood_harvester

in der i3d Ketten angebaut. Man sieht sie, sie drehen sich, alles gut... Ich wollte sie zum ein- und ausblenden machen, und nu fängt das Problem an...

xml Einträge habe ich wie folgt gemacht:
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="woodHarvester">
<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
<name>
<en>Komatsu_941</en>
<de>Komatsu_941</de>
</name>
<typeDesc>$l10n_TypeDesc_WoodHarvester</typeDesc>
<filename>Komatsu_941.i3d</filename>

<size width="4.5" length="10" />

<wheels autoRotateBackSpeed="2">
<wheel rotSpeed="1" restLoad="4.7" repr="0>0" driveNode="0>0|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="5.5" repr="0>1" driveNode="0>1|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="4.7" repr="0>2" driveNode="0>2|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="5.5" repr="0>3" driveNode="0>3|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="3.0" repr="1>0" driveNode="1>0|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="3.6" repr="1>1" driveNode="1>1|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="3.0" repr="1>2" driveNode="1>2|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
<wheel rotSpeed="1" restLoad="3.6" repr="1>3" driveNode="1>3|0" forcePointRatio="0.7" showSteeringAngle="false" radius="0.674" width="0.71" deltaY="0.1" suspTravel="0.15" spring="60" damper="80" mass="0.3" hasTyreTracks="true"/>
</wheels>

<dynamicallyLoadedParts>
<dynamicallyLoadedPart node="0|1" linkNode="0>0|3" filename="TM_2000.i3d" rotation="10 0 0" />
<dynamicallyLoadedPart node="0|1" linkNode="0>1|1" filename="TM_2000.i3d" rotation="60 0 0" />
<dynamicallyLoadedPart node="0|0" linkNode="0>2|3" filename="TM_2000.i3d" rotation="115 0 0" />
<dynamicallyLoadedPart node="0|0" linkNode="0>3|1" filename="TM_2000.i3d" rotation="175 0 0" />
<dynamicallyLoadedPart node="0|1" linkNode="1>0|3" filename="TM_2000.i3d" rotation="80 0 0" />
<dynamicallyLoadedPart node="0|1" linkNode="1>1|1" filename="TM_2000.i3d" rotation="45 0 0" />
<dynamicallyLoadedPart node="0|0" linkNode="1>2|3" filename="TM_2000.i3d" rotation="-50 0 0" />
<dynamicallyLoadedPart node="0|0" linkNode="1>3|1" filename="TM_2000.i3d" rotation="-70 0 0" />
</dynamicallyLoadedParts>

<differentials>
<differential torqueRatio="0.5" maxSpeedRatio="1.0" wheelIndex1="0" wheelIndex2="1" /> <!-- front right-right -->
<differential torqueRatio="0.5" maxSpeedRatio="1.0" wheelIndex1="2" wheelIndex2="3" /> <!-- front left-left -->
<differential torqueRatio="0.5" maxSpeedRatio="1.0" wheelIndex1="4" wheelIndex2="5" /> <!-- back left-left -->
<differential torqueRatio="0.5" maxSpeedRatio="1.0" wheelIndex1="6" wheelIndex2="7" /> <!-- back right-right -->

<differential torqueRatio="0.5" maxSpeedRatio="1.5" differentialIndex1="0" differentialIndex2="1" /><!-- front-left-right -->
<differential torqueRatio="0.5" maxSpeedRatio="1.5" differentialIndex1="2" differentialIndex2="3" /><!-- back-left-right -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" differentialIndex1="4" differentialIndex2="5" /><!-- front-back -->
</differentials>

<ackermannSteering rotSpeed="25" rotMax="15" rotCenter="0 -0.3" />

<motor torqueScale="1.267" minRpm="1000" maxRpm="2500" maxBackwardSpeed="44" brakeForce="12" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="38" maxForwardGearRatio="130" minBackwardGearRatio="38" maxBackwardGearRatio="130">
<torque normRpm="0.45" torque="0.9"/>
<torque normRpm="0.5" torque="0.97"/>
<torque normRpm="0.59" torque="1"/>
<torque normRpm="0.72" torque="1"/>
<torque normRpm="0.86" torque="0.88"/>
<torque normRpm="1" torque="0.72"/>
</motor>

<fuelCapacity>320</fuelCapacity>
<fuelUsage>64</fuelUsage>

<cameras count="2">
<camera1 index="0>8|0|0|0|2|0|0" rotatable="true" rotateNode="0>8|0|0|0|2|0" limit="true" rotYSteeringRotSpeed="-22.5" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="20" >
<raycastNode index="0>4|0"/>
<raycastNode index="0>4|1"/>
<raycastNode index="1>4"/>
</camera1>
<camera2 index="0>8|0|0|0|2|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" isInside="true" />
</cameras>

<crawlers>
<crawler index="0>0|1" speedRefNode="0>0|1" scrollSpeed="0.445" shaderParameterName="offsetUV" shaderParameterComponent="1" scrollLength="7.204" >
<rotatingPart index="0>0|3" speedScale="1.4837" />
<rotatingPart index="0>1|1" speedScale="1.4837" />
</crawler>
<crawler index="0>2|1" speedRefNode="0>2|1" scrollSpeed="0.445" shaderParameterName="offsetUV" shaderParameterComponent="1" scrollLength="7.204" >
<rotatingPart index="0>2|3" speedScale="1.4837" />
<rotatingPart index="0>3|1" speedScale="1.4837" />
</crawler>
<crawler index="1>0|1" speedRefNode="1>0|1" scrollSpeed="0.445" shaderParameterName="offsetUV" shaderParameterComponent="1" scrollLength="7.204" >
<rotatingPart index="1>0|3" speedScale="1.4837" />
<rotatingPart index="1>1|1" speedScale="1.4837" />
</crawler>
<crawler index="1>2|1" speedRefNode="1>2|1" scrollSpeed="0.445" shaderParameterName="offsetUV" shaderParameterComponent="1" scrollLength="7.204" >
<rotatingPart index="1>2|3" speedScale="1.4837" />
<rotatingPart index="1>3|1" speedScale="1.4837" />
</crawler>
</crawlers>

<indoorHud>
<cutLength numbers="0>8|0|0|0|4|0" precision="0" />
<diameter numbers="0>8|0|0|0|4|1" precision="0" />
</indoorHud>

<lights>

</lights>

<enterReferenceNode index="0>" />
<exitPoint index="0>5" />

<motorStartDuration>2500</motorStartDuration>
<attachSound file="$data/vehicles/shared/attach.wav" pitchOffset="1" />
<motorStartSound file="$data/vehicles/steerable/caseIH/caseIHMagnum380_start.wav" pitchOffset="0.8" volume="0.8" />
<motorSound file="$data/vehicles/steerable/caseIH/caseIHMagnum380_idle.wav" pitchOffset="0.8" pitchScale="0.0095" pitchMax="1.45" volume="0.8" radius="50" innerRadius="20" />
<motorSoundRun file="$data/vehicles/steerable/caseIH/caseIHMagnum380_run.wav" pitchOffset="0.75" pitchScale="0.01" pitchMax="1.35" volume="0.8" />
<motorSoundRun2 file="$data/vehicles/shared/transmissionCVT.wav" pitchOffset="0.55" volume="0.35" pitchMax="1.4" volumeMax="0.855"/>
<motorStopSound file="$data/vehicles/steerable/caseIH/caseIHMagnum380_stop.wav" pitchOffset="0.85" volume="0.85" />
<compressedAirSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.25"/>
<compressionSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.5"/>
<hydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.55" volume="0.8" />
<honkSound file="$data/vehicles/shared/horn.wav" volume="1" radius="70" innerRadius="10" />

<exhaustEffects>
<exhaustEffect index="1>5" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.09" maxRpmScale="0.4" forwardXRotations="-250 0 50" forwardZRotations="0 0 0" steerXRotations="0 0 0" steerZRotations="-100 0 100" />
</exhaustEffects>

<characterNode index="0>8|0|0|0|3|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" spineRotation="180 0 90" >
<ikChains>
<ikChain id="rightFoot" target="0>8|0|0|0|3|1" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true" >
<node index="0|1" />
<node index="0|1|0" minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0" maxRz="90" />
<node index="0|1|0|0" minRx="0" maxRx="0" minRy="0" maxRy="0" minRz="-100" maxRz="-7" />
<node index="0|1|0|0|0" />
</ikChain>
<ikChain id="leftFoot" target="0>8|0|0|0|3|2" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true">
<node index="0|2" />
<node index="0|2|0" minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0" maxRz="90" />
<node index="0|2|0|0" minRx="0" maxRx="0" minRy="0" maxRy="0" minRz="-100" maxRz="-7" />
<node index="0|2|0|0|0" />
</ikChain>
<ikChain id="rightArm" target="0>8|0|0|0|3|3" targetOffset="0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
<node index="0|0|0|1" />
<node index="0|0|0|1|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
<node index="0|0|0|1|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7" maxRz="130" />
<node index="0|0|0|1|0|0|0" />
<rotationNode index="0|0|0|1|0|0|0|0" rotation="0 0 -60" />
<rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -60" />
<rotationNode index="0|0|0|1|0|0|0|1" rotation="-90 20 -40" />
<rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 -40" />
</ikChain>
<ikChain id="leftArm" target="0>8|0|0|0|3|4" targetOffset="-0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
<node index="0|0|0|2" />
<node index="0|0|0|2|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80"/>
<node index="0|0|0|2|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7" maxRz="130" />
<node index="0|0|0|2|0|0|0" />
<rotationNode index="0|0|0|2|0|0|0|0" rotation="0 0 -60" />
<rotationNode index="0|0|0|2|0|0|0|0|0" rotation="0 0 -60" />
<rotationNode index="0|0|0|2|0|0|0|1" rotation="-90 20 -40" />
<rotationNode index="0|0|0|2|0|0|0|1|0" rotation="0 0 -40" />
</ikChain>
</ikChains>
</characterNode>

<aiTrafficCollisionTrigger index="0>9" />

<mouseControls>
<mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm1_rotX.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
<mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm1_rotY.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />
<mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm2_rot.png" mouseButton="RIGHT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM2" />
<mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/arm2_trans.png" mouseButton="RIGHT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL2" />
<mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/grab_rotY.png" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL3" />
</mouseControls>

<movingTools>
<!-- cabin rot -->
<movingTool index="0>8|0|0|0" componentJointIndex="1" anchorActor="0" rotSpeed="30" rotAcceleration="170" rotMax="130" rotMin="-130" rotationAxis="2" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" invertMouseAxis="true" speedFactor="0.7">
</movingTool>
<!-- arm1 -->
<movingTool index="0>8|0|0|0|1" componentJointIndex="1" anchorActor="0" rotSpeed="30" rotAcceleration="170" rotMax="40" rotMin="-40" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" invertMouseAxis="false" speedFactor="0.7">
<dependentPart index="0>8|0|0|0|1|2" />
<dependentPart index="0>11|0|0" />
</movingTool>
<!-- arm2 -->
<movingTool index="0>8|0|0|0|1|0" componentJointIndex="1" anchorActor="0" rotSpeed="30" rotAcceleration="170" rotMax="115" rotMin="-20" axis="AXIS_FRONTLOADER_ARM2" invertAxis="true" invertMouseAxis="true" speedFactor="0.7">
<dependentPart index="0>11|0|0|0" />
<dependentPart index="0>8|0|0|0|1|0|1" />
<dependentPart index="0>8|0|0|0|1|3" />
</movingTool>
<!-- arm3 -->
<movingTool index="0>8|0|0|0|1|0|0" componentJointIndex="1" anchorActor="0" transSpeed="1" transAcceleration="40" transMax="4.727" transMin="2" translationAxis="3" axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" invertMouseAxis="true" speedFactor="0.3" >
<dependentPart index="0>11|0|0|0|0" />
<dependentPart index="0>8|0|0|0|1|0|0|5" />
</movingTool>

<!-- cutter x rotation -->
<movingTool index="2>0" componentJointIndex="1" anchorActor="1" rotSpeed="-80" rotAcceleration="60" rotMax="180" rotMin="-180" rotationAxis="2" axis="AXIS_FRONTLOADER_TOOL3" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL3" invertMouseAxis="true" speedFactor="1" />

<!-- cutter y rotation -->
<movingTool index="2>1" componentJointIndex="2" anchorActor="0" rotSpeed="60" rotAcceleration="60" rotMax="150" rotMin="0" rotationAxis="1" axis="AXIS_FRONTLOADER_TOOL4" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL4" invertMouseAxis="true" speedFactor="1" />

<!-- cutter joint -->
<movingTool index="0>8|0|0|0|1|0|0|1" componentJointIndex="1" anchorActor="0"/>

<!-- cylinders in cutter -->
<movingTool index="0>8|0|0|0|1|0|0|1|0|0|0|0|2">
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|2|2" />
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|3|0" />
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|7" />
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|8" />
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0|1" />
</movingTool>
</movingTools>

<movingParts>

<!-- second arm hidraulic1 -->
<movingPart index="0>8|0|0|0|1|3" localReferencePoint="0>8|0|0|0|1|3|0" referencePoint="0>8|0|0|0|1|0|2" referenceFrame="0>8|0|0|0|1|0|2" playSound="true" >
<dependentPart index="0>8|0|0|0|1|3|0" />
<dependentPart index="0>8|0|0|0|1|1" /> hidraulic
</movingPart>
<movingPart index="0>8|0|0|0|1|3|0" referencePoint="0>8|0|0|0|1|0|2" referenceFrame="0>8|0|0|0|1|4" scaleZ="true" playSound="true" />
<movingPart index="0>8|0|0|0|1|1" referencePoint="0>8|0|0|0|1|3|0|0" referenceFrame="0>8|0|0|0|1|4" playSound="true" >
<translatingPart index="0>8|0|0|0|1|1|0" /> hidraulic
</movingPart>
<!-- second arm hidraulic2 -->
<movingPart index="0>8|0|0|0|1|3" localReferencePoint="0>8|0|0|0|1|3|0" referencePoint="0>8|0|0|0|1|0|2" referenceFrame="0>8|0|0|0|1|0|2" playSound="true" >
<dependentPart index="0>8|0|0|0|1|3|0" />
<dependentPart index="0>8|0|0|0|1|5" /> hidraulic
</movingPart>
<movingPart index="0>8|0|0|0|1|3|0" referencePoint="0>8|0|0|0|1|0|2" referenceFrame="0>8|0|0|0|1|4" scaleZ="true" playSound="true" />
<movingPart index="0>8|0|0|0|1|5" referencePoint="0>8|0|0|0|1|3|0|1" referenceFrame="0>8|0|0|0|1|4" playSound="true" >
<translatingPart index="0>8|0|0|0|1|5|0" /> hidraulic
</movingPart>

<!-- steering -->
<movingPart index="1>7|0" referencePoint="0>10|1" referenceFrame="0>10|1" isActiveDirty="true" playSound="false">
<translatingPart index="1>7|0|0" />
</movingPart>
<movingPart index="1>7|1" referencePoint="0>10|2" referenceFrame="0>10|2" isActiveDirty="true" playSound="false">
<translatingPart index="1>7|1|0" />
</movingPart>

<!-- joints -->
<movingPart index="0>11|0" referenceFrame="0>8|0|0|0" moveToReferenceFrame="true" isActiveDirty="true" playSound="false" />
<movingPart index="0>11|0|0" referenceFrame="0>8|0|0|0|1" moveToReferenceFrame="true" isActiveDirty="true" playSound="false" />
<movingPart index="0>11|0|0|0" referenceFrame="0>8|0|0|0|1|0" moveToReferenceFrame="true" isActiveDirty="true" playSound="false" />
<movingPart index="0>11|0|0|0|0" referenceFrame="0>8|0|0|0|1|0|0" moveToReferenceFrame="true" isActiveDirty="true" playSound="false" />
<movingPart index="0>11|0|0|0|0|0" referenceFrame="0>8|0|0|0|1|0|0|1|0|0|0" moveToReferenceFrame="true" isActiveDirty="true" playSound="false" />
<movingPart index="0>11|0|0|0|0|0|0" referenceFrame="0>8|0|0|0|1|0|0|1|0|0|0|0" moveToReferenceFrame="true" isActiveDirty="true" playSound="false" />

<!-- cutter-arm connection -->
<movingPart index="0>8|0|0|0|1|0|0|1" referencePoint="2>3" referenceFrame="0>8|0|0|0|1|0|0|2" limitedAxis="1" isActiveDirty="true" playSound="false" >
<dependentPart index="0>8|0|0|0|1|0|0|1|0" />
</movingPart>
<movingPart index="0>8|0|0|0|1|0|0|1|0" referencePoint="2>3" referenceFrame="0>8|0|0|0|1|0|0|1|1" limitedAxis="1" playSound="False" >
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0" />
</movingPart>

<!-- cutterholder -->
<movingPart index="0>8|0|0|0|1|0|0|1|0|0|0" referencePoint="2>2" referenceFrame="2>" limitedAxis="2" playSound="False" >
<dependentPart index="0>8|0|0|0|1|0|0|1|0|0|0|0" />
</movingPart>

<!-- cutter -->
<movingPart index="0>8|0|0|0|1|0|0|1|0|0|0|0" referencePoint="3>7" referenceFrame="3>" limitedAxis="1" playSound="False" />

<!-- cylinders in cutter -->
<movingPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|2|2" referencePoint="0>8|0|0|0|1|0|0|1|0|0|0|0|3|2" referenceFrame="0>8|0|0|0|1|0|0|1|0|0|0|0|3|2" playSound="false" >
<translatingPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|2|2|0" />
</movingPart>

<movingPart index="0>8|0|0|0|1|0|0|1|0|0|0|0|3|0" referencePoint="0>8|0|0|0|1|0|0|1|0|0|0|0|2|0" referenceFrame="0>8|0|0|0|1|0|0|1|0|0|0|0|2|0" playSound="false" >
</movingPart>

<movingPart index="0>0|1" referencePoint="0>1" referenceFrame="0>" isActiveDirty="true" playSound="false" />
<movingPart index="0>0|2" referencePoint="0>1" referenceFrame="0>" isActiveDirty="true" playSound="false" />
<movingPart index="0>2|1" referencePoint="0>3" referenceFrame="0>" isActiveDirty="true" playSound="false" />
<movingPart index="0>2|2" referencePoint="0>3" referenceFrame="0>" isActiveDirty="true" playSound="false" />
<movingPart index="1>0|1" referencePoint="1>1" referenceFrame="1>" isActiveDirty="true" playSound="false" />
<movingPart index="1>0|2" referencePoint="1>1" referenceFrame="1>" isActiveDirty="true" playSound="false" />
<movingPart index="1>2|1" referencePoint="1>3" referenceFrame="1>" isActiveDirty="true" playSound="false" />
<movingPart index="1>2|2" referencePoint="1>3" referenceFrame="1>" isActiveDirty="true" playSound="false" />

</movingParts>

<animations>
<animation name="enterAnimation">
<part node="0>5" startTime="0" duration="10" startRot="0 0 0" endRot="-180 0 0"/>
</animation>
<animation name="cutAnimation">
<part node="0>8|0|0|0|1|0|0|1|0|0|0|0|6" startTime="0" duration="0.9" startRot="0 0 0" endRot="0 -90 0"/>
<part node="0>8|0|0|0|1|0|0|1|0|0|0|0|6" startTime="0.9" duration="0.1" startRot="0 -90 0" endRot="0 0 0"/>
</animation>
<animation name="grabberAnimation">
<part node="0>8|0|0|0|1|0|0|1|0|0|0|0|0" startTime="0" duration="1" startRot="-0.022 0.019 0.0" endRot="-0.022 -90 0.0"/>
<part node="0>8|0|0|0|1|0|0|1|0|0|0|0|1" startTime="0" duration="1" startRot="-0.022 0.019 0.0" endRot="-0.022 90 0.0"/>
<part node="0>8|0|0|0|1|0|0|1|0|0|0|0|2" startTime="0" duration="1" startRot="-0.022 0.019 0.0" endRot="-0.022 -90 0.0"/>
<part node="0>8|0|0|0|1|0|0|1|0|0|0|0|3" startTime="0" duration="1" startRot="0.027 143.372 0.016" endRot="0.027 233.372 0.016"/>

<part node="3>0" startTime="0" duration="1" startRot="-0.348 -0.07 0.217" endRot="-0.348 -90.07 0.217"/>
<part node="3>1" startTime="0" duration="1" startRot="-0.246 0.019 0.000" endRot="-0.246 -90.019 0.000"/>

<part node="3>2" startTime="0" duration="1" startRot="0.306 143.373 0.183" endRot="0.306 233.373 0.183"/>
<part node="3>3" startTime="0" duration="1" startRot="-0.246 0.019 0.0" endRot="-0.246 90.019 0.0"/>

</animation>
</animations>

<universalToggleParts>
<part node="0>3|0|0" name="Ketten" showHelp="true" visToggle="true" defaultVis="false"/>
<part node="0>2|0|0" name="Ketten" showHelp="false" visToggle="true" defaultVis="false"/>
<part node="1>2|3|0" name="Ketten" showHelp="false" visToggle="true" defaultVis="false"/>
<part node="0>1|0|0" name="Ketten" showHelp="false" visToggle="true" defaultVis="false"/>
<part node="0>0|0|0" name="Ketten" showHelp="false" visToggle="true" defaultVis="false"/>
<part node="1>0|3|0" name="Ketten" showHelp="false" visToggle="true" defaultVis="false"/>
</universalToggleParts>








<articulatedAxis rotNode="0>11" componentJointIndex="0" anchorActor="0" rotSpeed="-40" rotMax="40" rotMin="-40" />

<enterAnimation name="enterAnimation" />

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

<driveGroundParticleSystems>
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="5" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="6" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="7" />
<driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="8" />
</driveGroundParticleSystems>

<cutNode node="3>4" attachNode="3>" attachReferenceNode="3>6" sizeY="1.3" sizeZ="1.8" maxRadius="0.32" releasedComponentJointIndex="2" releasedComponentJoint2Index="1" />
<cutLengths min="1" max="20" step="1.0" />
<delimbNode node="3>5" sizeX="0.1" sizeY="1.3" sizeZ="1.8" delimbOnCut="true" />

<cutParticleSystems>
<cutParticleSystem node="0>8|0|0|0|1|0|0|1|0|0|0|0|6|1" psRootNode="0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/ponsse/ponsseScorpionParticles.i3d" />
</cutParticleSystems>

<delimbParticleSystems>
<delimbParticleSystem node="0>8|0|0|0|1|0|0|1|0|0|0|0|13" psRootNode="1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/ponsse/ponsseScorpionParticles.i3d" />
</delimbParticleSystems>

<cutAnimation name="cutAnimation" speedScale="1" cutTime="0.5" />

<grabAnimation name="grabberAnimation" speedScale="1" />
<forwardingWheels>
<wheel index="0>8|0|0|0|1|0|0|1|0|0|0|0|2|1|0" rotSpeed="0 0 -900"/>
<wheel index="0>8|0|0|0|1|0|0|1|0|0|0|0|3|1|0" rotSpeed="0 0 900"/>
<wheel index="0>8|0|0|0|1|0|0|1|0|0|0|0|4" rotSpeed="1800 0 0"/>
<wheel index="0>8|0|0|0|1|0|0|1|0|0|0|0|5" rotSpeed="1200 0 0"/>
</forwardingWheels>

<treeSizeMeasure index="0>8|0|0|0|1|0|0|1|0|0|0|0|12" rotMaxRadius="0.3" />

<harvesterSounds motorSoundPitchOffset="1.1" motorRunSoundPitchOffset="1.1" >
<delimbSound node="0>8|0|0|0|1|0|0|1|0|0|0|0|11" file="$data/vehicles/steerable/ponsse/ponsseScorpion_delimb.wav" pitch="1.0" volume="1.0" radius="35" innerRadius="15" />
<cutSound node="0>8|0|0|0|1|0|0|1|0|0|0|0|11" file="$data/vehicles/steerable/ponsse/ponsseScorpion_cutting.wav" pitch="1.0" volume="1.0" radius="35" innerRadius="15" />
</harvesterSounds>


<components count="4">
<component1 centerOfMass="0 0.9 2.0" solverIterationCount="40" />
<component2 centerOfMass="0 0.9 -2.0" solverIterationCount="40" />
<component3 solverIterationCount="20" />
<component4 centerOfMass="0 -0.04 0.15" solverIterationCount="20" />

<joint component1="0" component2="1" index="0>11" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="0 0 0" rotLimitDamping="0 0 0" />

<joint component1="0" component2="2" index="0>8|0|0|0|1|0|0|0" indexActor1="2>0|0" rotLimit="0 50 80" transLimit="0 0 0" zRotationNode="0>8|0|0|0|1|0|0|0|0" rotDriveVelocity="0 0 0" maxRotDriveForce="1 1 1" transLimitSpring="10 10 10" transLimitDamping="11 11 11" />
<joint component1="2" component2="3" index="2>1" rotLimit="0 0 0" transLimit="0 0 0" />

<collisionPair component1="0" component2="3" enabled="false" />
</components>

<schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/vehicleSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/vehicleSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0.5 0" />

</vehicle>



Einträge in der moddesc:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="20">
<author>Zotya,Giants</author>
<version>1</version>
<title>
<de>Komatsu_941</de>
<en>Komatsu_941</en>
</title>
<description>
<de>Komatsu_941</de>
<en>Komatsu_941</en>
</description>
<iconFilename>store_ponsseScorpion.dds</iconFilename>
<multiplayer supported="true"/>

<specializations>
<specialization name="universalToggleParts" className="universalToggleParts" filename="universalToggleParts.lua"/>
</specializations>

<vehicleTypes>
<type name="ponsseScorpion" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="drivable" />
<specialization name="mouseControlsVehicle" />
<specialization name="animatedVehicle" />
<specialization name="cylindered" />
<specialization name="turnOnVehicle" />
<specialization name="articulatedAxis" />
<specialization name="crawler" />
<specialization name="hirable" />
<specialization name="aiTractor" />
<specialization name="bunkerSiloCompacter" />
<specialization name="honk" />
<specialization name="indoorHud" />
<specialization name="washable" />
<specialization name="woodHarvester" />
<specialization name="mountable" />
<specialization name="universalToggleParts"/>
</type>
</vehicleTypes>

<l10n>
<text name="ketten_vorne">
<en>chains front on/off</en>
<de>Ketten vorne An/Aus</de>
</text>
<text name="ketten_hinten">
<en>chains back on/off</en>
<de>Ketten hinten An/Aus</de>
</text>
</l10n>


<storeItems>
<storeItem>
<name>
<de>Komatsu_941</de>
<en>Komatsu_941</en>
</name>
<rotation>0</rotation>
<image active="store_ponsseScorpion.dds" brand="brand.dds"/>
<price>410000</price>
<dailyUpkeep>430</dailyUpkeep>
<xmlFilename>Komatsu941.xml</xmlFilename>
<brand>Komatsu_941</brand>
<category>wood</category>
<specs>
<power>230</power>
</specs>
<functions>
<function>$l10n_TypeDesc_WoodHarvester</function>
</functions>
</storeItem>
</storeItems>




<inputBindings>
<input name="ketten_vorne" key1="KEY_KP_4" button="" />
<input name="ketten_hinten" key1="KEY_KP_7" button="" />
</inputBindings>

</modDesc>


universalToggleParts.lua liegt auf der obersten Ebene wie die i3d, moddesc und xml...

Was mache ich falsch?

Vielen Dank,

mooses74

Ich würde erst mal in der XML und der modDesc den selben "name" nehmen, entweder nur "Kette" oder "Kette_vorne" und "Kette_hinten"
by
Lindemann / Bernd

LSBauer Benutzeravatar
User

Beiträge: 50
Geschlecht: männlich
Man sieht den Wald vor lauter Bäumen nicht... Danke...

Funzt immer noch nicht. Habe jetzt überall "ketten" genommen". Der Hilfetext erscheint nicht... Ich habe auch als default visible "false" eingetragen, wird ignoriert...

Hast du jetzt für vorne und hinten zusammen auf eine Einschaltfunktion gemacht?
by
Lindemann / Bernd

LSBauer Benutzeravatar
User

Beiträge: 50
Geschlecht: männlich
Ja, das habe ich gemacht. Was mich wundert ist, das nichtmal im Hilfefenster die vorgesehenen Tasten angezeigt werden und der dazugehörige Text...

Aber auch die Variante mit 2 Tasten für vorne und hinten unterschiedlich funzt net... :-(

da-hoffi Benutzeravatar
V.I.P

Beiträge: 36
Wohnort: Großräschen
Geschlecht: männlich

Du hast in der XML noch bei vehicleType "woodHarvester", somit ignoriert er alle sonstigen Spezis und greift nur auf die Standard zu.
Dort musst du (wie in der Moddesc bereits) den Eintrag z.B. auf "ponsseScorpion" ändern.
Erst dann wird "universalToggleParts" überhaupt geladen.

LSBauer Benutzeravatar
User

Beiträge: 50
Geschlecht: männlich
Ah, sehr gut, das teste ich nach der Arbeit sofort und gebe Feedback. Vielen Dank schonmal!

:danke:

LSBauer Benutzeravatar
User

Beiträge: 50
Geschlecht: männlich
da-hoffi hat geschrieben:
Du hast in der XML noch bei vehicleType "woodHarvester", somit ignoriert er alle sonstigen Spezis und greift nur auf die Standard zu.
Dort musst du (wie in der Moddesc bereits) den Eintrag z.B. auf "ponsseScorpion" ändern.
Erst dann wird "universalToggleParts" überhaupt geladen.


Das war der Fehler! Vielen Dank!

Und mal wieder gilt: FBM, da werden sie geholfen!!!


mooses74

Mukussu Benutzeravatar
Moderator

Beiträge: 176
Wohnort: Oberschwaben
Geschlecht: männlich

Denn ist ja gut,

deshalb:

Bild
Bild



Forbidden Mods
Moderator


"Wenn alle nur über das reden würden von dem sie etwas verstehen, das Schweigen wäre erdrückend."
Robert Lembke


Zurück zu "Archiv Supportbeiträge"


Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast