Attacher Joint mit movingPart bewegen

Eure Foren für alle Diskussionen rund ums Thema Modding.
derdeinlein
Posts: 8
Joined: Thu May 02, 2019 11:36 am

Attacher Joint mit movingPart bewegen

Post by derdeinlein »

Hey,

ich bin langsam am verzweifeln... ich habe einen Bagger gebaut dessen Attachments immer nach Y der Welt ausgerichtet sein sollen (so wie die kabienen der Forst Harvester)

Im Single player funktioniert das auch super!!! Aber auf einem Server folgt das Attachment zwar der bewegung der MovingTools aber nicht der dr MovingParts!!
<attacherJoints>
<attacherJoint jointType="frontloader" node="frontAttach" supportsHardAttach="true" enableCollision="true" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" >
<schema invertX="true" position="1 0" rotation="0"/>
</attacherJoint>
<sounds>
<attach template="ATTACH_01" />
</sounds>
</attacherJoints>
<cylindered>
<movingTools>
<!--Kabiene Rechtslinks schwenken-->
<movingTool node="0>0|3" playSound="true">
<controls axis="AXIS_CRANE_ARM" invertAxis="true" iconName="CRANE_ARM1_ROTATE_Y"/>
<rotation rotAcceleration="90" rotationAxis="2" rotSpeed="28"/>
<dependentPart node="0>0|3|27" />
<componentJoint index="1" anchorActor="0" />
<attacherJoint jointIndices="1" />
</movingTool>
<!--Eigentlicher Hauptarm -- erster oberer Rotator-->
<movingTool node="0>0|3|0|0" playSound="true">
<controls axis="AXIS_CRANE_ARM2" invertAxis="true" iconName="CRANE_ARM1_ROTATE_X"/>
<rotation rotAcceleration="80" rotationAxis="1" rotMax="67" rotMin="-16" rotSpeed="18"/>
<attacherJoint jointIndices="1" />
</movingTool>
<!--BrasSecondaire-->
<movingTool node="0>0|3|0|0|0" playSound="true">
<controls axis="AXIS_CRANE_ARM3" iconName="FRONTLOADER_ARM_ROTATE" invertAxis="true"/>
<rotation rotAcceleration="100" rotationAxis="1" rotMax="81.513" rotMin="-32.81" rotSpeed="28"/>
<attacherJoint jointIndices="1" />
</movingTool>
<!--Godet Reference-->
<movingTool node="0>0|3|0|0|0|0|0" playSound="true">
<controls axis="AXIS_CRANE_ARM4" invertAxis="false" iconName="CRANE_ARM2_TRANSLATE" />
<translation transSpeed="0.7" transAcceleration="3" transMax="-1.6" transMin="-4.143" startTrans="-1.6" translationAxis="2" />
<attacherJoint jointIndices="1" />
</movingTool>
<!-- toolrotate -->
<movingTool node="0>0|3|0|0|0|0|0|0|0|0|1|0|0|2" playSound="true">
<controls axis="AXIS_CRANE_TOOL2" invertAxis="true" mouseSpeedFactor="0.5" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
<rotation rotSpeed="60" rotationAxis="2" />
<attacherJoint jointIndices="1" />
</movingTool>
</movingTools>

<movingParts>
<!-- world Align -->
<movingPart node="0>0|3|0|0|0|0|0|0|0" referenceFrame="0>0|3|0|0|0|0|0|0|1" limitedAxis="1" minRot="-179" maxRot="-1" alignToWorldY="true" isActiveDirty="true" directionThreshold="0.1" maxUpdateDistance="300">
<dependentPart node="0>0|3|0|0|0|0|0|0|0|0|1|0"/>
<dependentTool node="0>0|3|0|0|0|0|0|0|0|0|1|0|0|2"/>
<attacherJoint jointIndices="1" />
</movingPart>
<movingPart node="0>0|3|0|0|0|0|0|0|0|0|1|0" referenceFrame="0>0|3|0|0|0|0|0|0|0|0|1|1" limitedAxis="3" minRot="-179" maxRot="179" alignToWorldY="true">
<attacherJoint jointIndices="1" />
</movingPart>
<!--hydros-->
<movingPart node="0>5|1|0" referencePoint="0>5|0" referenceFrame="0>5|0" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>5|0" referencePoint="0>5|1|0" referenceFrame="0>5|1|0" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>5|3|0" referencePoint="0>5|2" referenceFrame="0>5|2" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>5|2" referencePoint="0>5|3|0" referenceFrame="0>5|3|0" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>0|3|0|3" referencePoint="0>0|3|0|0|2" referenceFrame="0>0|3|0|0|2" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>0|3|0|0|2" referencePoint="0>0|3|0|3" referenceFrame="0>0|3|0|3" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>

<movingPart node="0>0|3|0|0|1" referencePoint="0>0|3|0|0|0|1" referenceFrame="0>0|3|0|0|0|1" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>0|3|0|0|0|1" referencePoint="0>0|3|0|0|1" referenceFrame="0>0|3|0|0|1" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>

<movingPart node="0>3" referencePoint="0>4|0" referenceFrame="0>4|0" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>
<movingPart node="0>4|0" referencePoint="0>3" referenceFrame="0>3" isActiveDirty="true" maxUpdateDistance="40">
</movingPart>

</movingParts>
The Attacherjoint is at node: 0>0|3|0|0|0|0|0|0|0|0|1|0|0|2|0
so its a child of the movingParts that align to World-Y
Das "dependentTool" war ein versuch von mir. Es wirft zwar keinen fehler aber fixxed auch nicht das Problem.
Wie gesagt im Singleplayer funktioniert es perfekt. Im Multiplayer bewegen sich alle objekte wie sie sollen und richten sich nach der Welt-Y aus, ABER der Attacher und somit auch alle Geräte die angehängt werden folgen dieser Y bewegung nicht sondern bleibem starr an die bewegung durch die MovingTools gekoppelt.
WAS ÜBERSEHE ICH