Hallo leute.
ich bin neu in diesem Bereich und wollte mich einfach mal versuchen.
undzwar arbeite ich jetzt seit gestern mit dem ToggleAnimatedParts das bewegen von Türen. Fenstern etc. ist kein Problem funktionierte alles.
nun soll es mit der neuen version auch möglich seien Collisionen oder zylinder zu bewegen.
leider funktioniert dieses nicht die collision bewegt sich ingame kein mm.
Hier ist einmal die
XML
ZitatAlles anzeigen<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="lizard2000">
<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
<name>
<en>Lizard 2000</en>
</name>
<filename>lizard2000.i3d</filename>
<wheels autoRotateBackSpeed="2.5">
<wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="2" repr="0" radius="1.015" deltaY="0.10" suspTravel="0.15" spring="120" damper="20" mass="0.225" />
<wheel rotSpeed="70" rotMax="32" rotMin="-32" driveMode="2" repr="1" radius="1.015" deltaY="0.10" suspTravel="0.15" spring="120" damper="20" mass="0.225" />
<wheel rotSpeed="0" driveMode="1" repr="2" radius="2.2115" deltaY="0.13" suspTravel="0.15" spring="120" damper="20" mass="0.6" />
<wheel rotSpeed="0" driveMode="1" repr="3" radius="2.2115" deltaY="0.13" suspTravel="0.15" spring="120" damper="20" mass="0.6" />
</wheels>
<motor minRpm="100" maxRpm="1700 2600 8000 1200" maxTorques="0.45 0.65 -1 0.33" brakeForce="14" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" accelerations="1 1 1 1" forwardGearRatio="44" backwardGearRatio="44" differentialRatio="1" rpmFadeOutRange="5">
<torque rpm="8000" torque="2"/>
<backwardTorque rpm="800" torque="3"/>
<backwardTorque rpm="2000" torque="0.5"/>
</motor>
<accelerationSpeed maxAcceleration="0.2" deceleration="0.6" />
<fuelCapacity>140</fuelCapacity>
<fuelUsage>0.0005</fuelUsage>
<downForce>4</downForce>
<cameras count="2">
<camera1 index="4|0|0" rotatable="true" rotateNode="4|0" limit="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="40" />
<camera2 index="4|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
</cameras>
<tipCamera index="4|2" />
<lights count="2">
<light1 index="5|0" />
<light2 index="5|1" />
</lights>
<lightCones>
<lightCone index="18" />
</lightCones>
<lightCoronas>
<lightCorona index="17" />
</lightCoronas>
<size width="3.5" length="5.5" lengthOffset="-0.4"/>
<exitPoint index="7" />
<steering index="8|0" rotationSpeed="6"/>
<enterReferenceNode index="0>" />
<trailerAttacherJoints>
<trailerAttacherJoint index="13" />
<trailerAttacherJoint index="14" low="true" />
</trailerAttacherJoints>
<attachSound file="lizard2000_attach.wav" pitchOffset="1" />
<motorStartSound file="lizard2000_start.wav" pitchOffset="0.9" volume="1" />
<motorSound file="lizard2000_idle.wav" pitchOffset="0.9" pitchScale="0.025" pitchMax="1.5" volume="1" />
<motorSoundRun file="lizard2000_run.wav" pitchOffset="0.9" pitchScale="0.02" pitchMax="1.2" volume="1" />
<motorStopSound file="lizard2000_out.wav" pitchOffset="0.9" />
<honkSound file="$dataS2/sounds/horn.wav" client="$dataS2/sounds/horn3D.wav" volume="1" radius="50" innerRadius="20" />
<exhaustParticleSystems count="2">
<exhaustParticleSystem1 node="16|0" file="exhaustParticleSystemBig.i3d" />
<exhaustParticleSystem2 node="16|1" file="exhaustParticleSystemBig.i3d" />
</exhaustParticleSystems>
<attacherJoints>
<attacherJoint index="10|0|0" rotationNode="10" maxRot="-12 0 0" rotationNode2="10|0" maxRot2="8 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5">
<bottomArm rotationNode="11" translationNode="11|0" referenceNode="11|0|0" zScale="-1" />
<topArm rotationNode="12" translationNode="12|0" referenceNode="12|0|0" zScale="-1" />
</attacherJoint>
</attacherJoints>
<characterNode index="9" cameraMinDistance="1.5" />
<aiTrafficCollisionTrigger index="15" />
<components count="1">
<component1 centerOfMass="0 0 -0.15" solverIterationCount="10" />
</components>
<animParts>
<animPart index="0>19" showHelp="true" id="VL" rotMin="0 0 0" rotMax="180 0 0" moveTime="8" isMovingTool="true" />
<animPart index="0>20" showHelp="true" id="VR" rotMin="0 0 0" rotMax="-180 0 0" moveTime="8" isMovingTool="true" />
</animParts>
</vehicle>
und die
Moddesc
ZitatAlles anzeigen<modDesc descVersion="4">
<author>GIANTS Software GmbH</author>
<version>1</version>
<title>
<en>Sample mod</en>
<de>Beispiel mod</de>
</title>
<description>
<en>Sample mod description</en>
<de>Beispiel mod Beschreibung</de>
</description>
<iconFilename>store_lizard2000.png</iconFilename>
<multiplayer supported="true"/>
<l10n>
<text name="Silly Horn">
<en>Silly Horn</en>
<de>Lustige Hupe</de>
</text>
<text name="VR">
<de>VR hoch Runter</de>
<en>VR hoch Runter</en>
</text>
<text name="VL">
<de>VL hoch Runter</de>
<en>VL hoch Runter</en>
</text>
</l10n>
<extraSourceFiles>
<sourceFile filename="ExtraFile.lua" />
</extraSourceFiles>
<specializations>
<specialization name="lizard2000" className="lizard2000" filename="lizard2000.lua"/>
<specialization name="Fenster" className="toggleAnimatedParts" filename="toggleAnimatedParts.lua"/>
</specializations>
<vehicleTypes>
<type name="lizard2000" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="honk" />
<specialization name="lizard2000" />
<specialization name="Fenster"/>
<specialization name="cylindered" />
</type>
</vehicleTypes>
<storeItems>
<storeItem>
<en>
<name>Lizard 2000 Sample Mod</name>
<description>
<![CDATA[this is the sample mod]]>
</description>
</en>
<de>
<name>Lizard 2000 Sample Mod</name>
<description>
<![CDATA[Dies ist der Muster mod.]]>
</description>
</de>
<rotation>0</rotation>
<image active="store_lizard2000.png"/>
<price>16000</price>
<xmlFilename>lizard2000.xml</xmlFilename>
</storeItem>
</storeItems>
<inputBindings>
<input name="LIZARD2000_SILLYHORN" key1="KEY_k" button="" />
<input name="VR" key1="KEY_5" button="" />
<input name="VL" key1="KEY_6" button="" />
</inputBindings>
</modDesc>
ich benutze den sampelmod aus dem grund um fehler anderer Funktionen zu unterbinden.
die Log schreibt keinerlei fehler.
Ich hoffe mir kann jemand weiter helfen
MFG Jan