AttacherJoint won't follow the movement of MovingTools

Your forum for all discussions around Modding.
derdeinlein
Posts: 8
Joined: Thu May 02, 2019 11:36 am

AttacherJoint won't follow the movement of MovingTools

Post by derdeinlein »

Hey,

I'm starting to despair... I built an excavator whose attachments should always be aligned to the Y of the world (like the cabins of the forest harvester)

It works great in a single-player! But on a server, the attachment follows the movement of the MovingTools but not the 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
The "dependentTool" was an attempt by me. It doesn't throw an error, but it doesn't fix the problem either.
As I said, it works perfectly in a single-player. In multiplayer, all objects move as they should and align themselves with the world Y, BUT the Attacher and thus all devices that are attached, do not follow this Y movement but remain rigidly coupled to the movement by the MovingTools.
WHAT AM I OVERLOOKING