Liftachse verbauen,problem

  • hallo ls-fans,hab da mal eine frage:versuche seit 2 wochen eine liftachse in mein güllefass einzubauen.hierzu benutze ich die "toggleAnimatedParts-lua"die bereits im hauptordner besteht.diese ist wiederum z.zt. zuständig um die "arme"auszuklappen.
    hat aber bis jetzt nicht funktioniert.


    hab zwischenzeitlich auch versucht die beiden reifen über eine Tg laufen zulassen,leider ohne erfolg.
    zudem hab ich hier 3 mods die eine liftachse bereits haben versucht diese dann bei mir einzubauen,leider ohne erfolg.
    so sieht es nun in der xml aus:
    [lua]<?xml version="1.0" encoding="utf-8" standalone="no" ?><vehicle type="Rekordia"> <annotation>Copyright (C) Outlaw, All Rights Reserved.</annotation>
    <name> <en>Rekordia_Duesenverteiler</en> <de>Rekordia_Duesenverteiler</de> </name> <description>Rekordia_Duesenverteiler</description>


    <typeDesc> <en>Rekordia_Duesenverteiler</en> <de>Rekordia_Duesenverteiler</de> </typeDesc>
    <filename>Rekordia_Dusenverteiler.i3d</filename> <size width="4.0" length="10.0" lengthOffset="0" /> <wheels autoRotateBackSpeed="2.0"> <wheel driveMode="0" repr="39" radius="0.87" deltaY="0.10" suspTravel="0.24" spring="10" damper="20" mass="0.3" steeringAxleScale="0.3" steeringAxleRotMax="30" steeringAxleRotMin="-30" /> <wheel driveMode="0" repr="44" radius="0.87" deltaY="0.10" suspTravel="0.24" spring="10" damper="20" mass="0.3" steeringAxleScale="0.3" steeringAxleRotMax="30" steeringAxleRotMin="-30" /> <wheel driveMode="0" repr="40" radius="0.87" deltaY="0.10" suspTravel="0.24" spring="10" damper="20" mass="0.3" /> <wheel driveMode="0" repr="43" radius="0.87" deltaY="0.10" suspTravel="0.24" spring="10" damper="20" mass="0.3" /> <wheel driveMode="0" repr="42" radius="0.87" deltaY="0.10" suspTravel="0.24" spring="10" damper="20" mass="0.3" steeringAxleScale="-0.7" steeringAxleRotMax="20" steeringAxleRotMin="-20" /> <wheel driveMode="0" repr="41" radius="0.87" deltaY="0.10" suspTravel="0.24" spring="10" damper="20" mass="0.3" steeringAxleScale="-0.7" steeringAxleRotMax="20" steeringAxleRotMin="-20" /> </wheels> <brakeForce>4</brakeForce> <downForce>8</downForce> <steeringAxleAngleScale startSpeed="10" endSpeed="100" />
    <fillPlanes> <fillPlane type="manure"> <node index="13"> <key time="0" y="-0.62204" scale="0.1 0.01 0.1"/> <key time="0.1" y="-0.27777" scale="1 0.01 1"/> <key time="1" y="-0.29743" scale="1 1.6 1"/> </node> </fillPlane> </fillPlanes>
    <foldingParts startMoveDirection="1"> <foldingPart componentJointIndex="1" anchorActor="0" animationClip="foldRightClip01Source" rootNode="0>7|1|0|3" speedScale="0.5" /> <foldingPart componentJointIndex="2" anchorActor="0" animationClip="foldRightClip02Source" rootNode="0>7|1|0|3|1" speedScale="0.8" /> <foldingPart componentJointIndex="3" anchorActor="0" animationClip="foldLeftClip01Source" rootNode="0>7|1|0|4" speedScale="0.7" /> <foldingPart componentJointIndex="4" anchorActor="0" animationClip="foldLeftClip02Source" rootNode="0>7|1|0|4|1" speedScale="0.85" /> </foldingParts> <movingTools> <!-- arm rotation --> <movingTool index="7|0" componentJointIndex="0" anchorActor="0" rotSpeed="15" rotAcceleration="70" rotMax="0" rotMin="-100" axis="KAWECO_ARM_ROTATION" invertAxis="true" mouseAxis="KAWECO_ARM_ROTATION" invertMouseAxis="true" speedFactor="0.4"> </movingTool> <!-- first part --> <movingTool index="7|0|0|0" componentJointIndex="0" anchorActor="0" rotSpeed="15" rotAcceleration="70" rotMax="20" rotMin="0" axis="KAWECO_FIRST_PART" invertAxis="true" mouseAxis="KAWECO_FIRST_PART" invertMouseAxis="true" speedFactor="0.4"> <dependentPart index="7|0|0|1" /> </movingTool> <!-- second part --> <movingTool index="7|0|0|0|0" componentJointIndex="0" anchorActor="0" rotSpeed="15" rotAcceleration="70" rotMax="0" rotMin="-60" axis="KAWECO_SECOND_PART" invertAxis="true" mouseAxis="KAWECO_SECOND_PART" invertMouseAxis="true" speedFactor="0.4"> <dependentPart index="7|0|0|0|1" /> </movingTool> <!-- boom --> <movingTool index="7|0|0|0|0|0" componentJointIndex="0" anchorActor="0" transSpeed="1" transAcceleration="40" transMax="-0.87882" transMin="-2.6" translationAxis="3" axis="KAWECO_BOOM" invertAxis="false" mouseAxis="KAWECO_BOOM" invertMouseAxis="true" speedFactor="0.1"> </movingTool> </movingTools> <mouseControls> <mouseControl iconFilename="tool_arm1.png" mouseButton="LEFT" mouseAxis="X" axis="KAWECO_ARM_ROTATION" /> <mouseControl iconFilename="tool_arm2.png" mouseButton="LEFT" mouseAxis="Y" axis="KAWECO_FIRST_PART" /> <mouseControl iconFilename="tool_arm3.png" mouseButton="RIGHT" mouseAxis="Y" axis="KAWECO_SECOND_PART" /> <mouseControl iconFilename="tool_arm4.png" mouseButton="RIGHT" mouseAxis="X" axis="KAWECO_BOOM" /> </mouseControls> <movingParts> <!-- first part hydraulic --> <movingPart index="7|0|0|1" referencePoint="7|0|0|0|2" referenceFrame="7|0|0|0|2"> <translatingPart index="7|0|0|1|0" /> </movingPart> <!-- second part hydraulic --> <movingPart index="7|0|0|0|1" referencePoint="7|0|0|0|0|1" referenceFrame="7|0|0|0|0|1"> <translatingPart index="7|0|0|0|1|0" /> </movingPart> </movingParts>
    <powerShaft index="22" part="22|0" fixPoint="22|0|0" /> <animParts> <animPart index="8" id="Arm_Rechts" showHelp="true" rotMin="0 0 0" rotMax="0 90 0" moveTime="5" /> <animPart index="9" id="Arm_Links" showHelp="false" rotMin="0 0 0" rotMax="0 -90 0" moveTime="5" /> <animPart index="2" id="fenster_links" transMin="0 0 0" transMax="0 0.4 0" moveTime="3" /> <animPart index="39" id="Rad_Rechts" showHelp="true" transMin="-1.0878 -1.21347 0.51374" transMax="-1.0878 -0.8 0.51374" moveTime="3" /> <animPart index="44" id="Rad_Links" transMin="1.19587 -1.21347 0.51374" transMax="1.19587 -0.8 0.51374" moveTime="3" /> </animParts>


    <capacity>25000</capacity> <literPerSecond value="580"/> <fillTypes fruitTypes="liquidManure" /> <allowFillFromAir value="false" /> <allowTipDischarge value="false" /> <attacherJoint index="6" jointType="trailerLow" /> <sprayParticleSystem file="Particel.i3d" />
    <sprayValves> <sprayValve index="8|0" /> <sprayValve index="9|0" />
    </sprayValves> <spraySound file="manureBarrel.wav" pitchOffset="1" volume="1"/> <fillSound file="data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />



    <animations> <!-- move support wheel down/up --> <animation name="moveSupport"> <part node="20" startTime="0" duration="0.5" startTrans="0.54864 -1.33527 3.74631" endTrans="0.54864 -1.83436 3.74631" /> </animation> </animations> <support animationName="moveSupport" />
    <animParts count="1"> <part1 name="pillar" animationClip="pillarClipSource" rootNode="20" moveColli="12" collision="12|0" collsionAttacher="12|0|0" armAttacher="12|1" /> </animParts> <lights count="1"> <light1 index="24" /></lights> <sprayUsages> <sprayUsage fillType="liquidManure" litersPerSecond="150" /> </sprayUsages> <cuttingAreas count="2"> <cuttingArea1 startIndex="23|0" widthIndex="23|1" heightIndex="23|2"/> <cuttingArea2 startIndex="25|0" widthIndex="25|1" heightIndex="25|2"/> </cuttingAreas> <components count="2"> <component1 centerOfMass="0 -1.7 -2" solverIterationCount="20" /> <component2 centerOfMass="0 -2 0" solverIterationCount="60" /> <joint component1="0" component2="1" index="20" rotLimit="0 0 0" transLimit="0 0 0" /> </components><fillTypes fruitTypes="liquidManure" />



    </vehicle>[/lua]


    moddesc:


    [lua]<?xml version="1.0" encoding="utf-8" standalone="no" ?><modDesc descVersion="4"> <author>ernstl</author> <version>1</version><title> <en>Rekordia_Duesenverteiler</en> <de>Rekordia_Duesenverteiler</de> </title> <description> <en>Rekordia_Duesenverteiler</en> <de>Rekordia_Duesenverteiler</de> </description> <iconFilename>store.png</iconFilename> <multiplayer supported="true"/>


    <l10n> <text name="Rad_Rechts"> <de>Rad hoch/runter</de> <en>Wheel up/down</en> </text> <text name="Arm_Rechts"> <de>Arme ausklappen/einklappen</de> <en>Arms open/close</en> </text></l10n>
    <specializations> <specialization name="Arme" className="toggleAnimatedParts" filename="toggleAnimatedParts.lua"/> </specializations>
    <vehicleTypes> <type name="Rekordia" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua"> <specialization name="attachable"/> <specialization name="animatedVehicle"/> <specialization name="cylindered"/> <specialization name="fillable"/> <specialization name="sprayer"/> <specialization name="foldable"/> <specialization name="Arme" /> <specialization name="mouseControlsVehicle" /> </type> </vehicleTypes>
    <storeItems> <storeItem> <en> <name>Rekordia_Duesenverteiler</name> <description><![CDATA[Modell/Textur: daniel11Script: OutlawSound: sevoranePerformance-Tuning: MadMaxEdit 2011: Deere Power]]> </description> </en> <de> <name>Rekordia_Duesenverteiler</name> <description><![CDATA[Modell/Textur: daniel11Script: OutlawSound: sevoranePerformance-Tuning: MadMaxEdit 2011: Deere Power]]> </description> </de> <rotation>180</rotation> <image active="store.png"/> <price>236</price> <xmlFilename>Rekordia_Dusenverteiler.xml</xmlFilename> </storeItem> </storeItems>
    <inputBindings> <input name="Arm_Rechts" key1="KEY_x" button="" /> <input name="Arm_Links" key1="KEY_x" button="" /> <input name="Rad_Rechts" key1="KEY_v" button="" /> <input name="Rad_Links" key1="KEY_v" button="" /> </inputBindings>
    </modDesc>[/lua]


    also,ich hab hier schon einiges gelesen über "toggleAnimatedParts" konnte aber nicht erkennen,daß jemand das gleiche prob. gehabt hätte.
    für hilfe wäre ich sehr dankbar,mfg ernstl

  • oha,sorry ls-fans,das ist ja total unübersichtlich so soll es besser sein:
    xml:


    <animParts>
    <animPart index="8" id="Arm_Rechts" showHelp="true" rotMin="0 0 0" rotMax="0 90 0" moveTime="5" />
    <animPart index="9" id="Arm_Links" showHelp="false" rotMin="0 0 0" rotMax="0 -90 0" moveTime="5" />
    <animPart index="39" id="Rad_Rechts" showHelp="true" transMin="-1.0878 -1.21347 0.51374" transMax="-1.0878 -0.8 0.51374" moveTime="3" />
    <animPart index="44" id="Rad_Links" transMin="1.19587 -1.21347 0.51374" transMax="1.19587 -0.8 0.51374" moveTime="3" />
    </animParts>


    moddesc:




    <l10n>
    <text name="Rad_Rechts">
    <de>Rad hoch/runter</de>
    <en>Wheel up/down</en>
    </text>



    <text name="Arm_Rechts">
    <de>Arme ausklappen/einklappen</de>
    <en>Arms open/close</en>
    </text>
    </l10n>



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


    <vehicleTypes>
    <type name="Rekordia" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
    <specialization name="attachable"/>
    <specialization name="animatedVehicle"/>
    <specialization name="cylindered"/>
    <specialization name="fillable"/>
    <specialization name="sprayer"/>
    <specialization name="foldable"/>
    <specialization name="Arme" />
    <specialization name="mouseControlsVehicle" />
    </type>
    </vehicleTypes>


    <inputBindings>
    <input name="Arm_Rechts" key1="KEY_x" button="" />
    <input name="Arm_Links" key1="KEY_x" button="" />
    <input name="Rad_Rechts" key1="KEY_v" button="" />
    <input name="Rad_Links" key1="KEY_v" button="" />
    </inputBindings>


    beide räder gehen hoch,aber nicht wieder runter,auch die zeit -einstellung hat hier kein einfluss"moveTime=" 3"


    hab hier auch ein wenig probiert von 0.001-10 um ein überblick zubekommen.?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!