TobiasF92 / FS22_interactiveControl

Interactive Control for Farming Simulator 22
37 stars 10 forks source link

Attach_Detach does not work. #32

Open djdanby opened 1 year ago

djdanby commented 1 year ago

Ich verwende die VIC Version 1.1.1.0. Ich habe mehrere configs versucht. Funktioniert weder via Index noch mit den Indicies. Hab alles durchprobiert. Aber nix geht. Mach ich was falsch oder ist die Funktion defekt?

That are my configs:

               <!-- attacherTrailer VIC-->
                <interactiveControl posText="$l10n_actionIC_closeHitch" negText="$l10n_actionIC_openHitch" >
                    <clickPoint node="sic_hebel" size="0.05" type="INDOOR" />
                    <animation name="attacherJointNode_ani" speedScale="1.0" initTime="0.0" />
                    <soundModifier indoorFactor="0" delayedSoundAnimationTime="0.1"/>
                <function name="ATTACHERJOINTS_ATTACH_DETACH">
                    <attacherJoint index="3" />
    <!-- <attacherJoint indicies="1 3 4"/> -->
                </function>
        </interactiveControl>

        --------------------------------------------------------------

    <attacherJoints>
    <attacherJoint node="attacherJointBack" upperRotationOffset="0.16" moveTime="2.5" comboTime="1">
        <distanceToGround lower="0.33" upper="1.26"/>
        <rotationNode node="attacherJointBackRot" lowerRotation="-20 0 0" upperRotation="30 0 0"/>
        <rotationNode2 node="attacherJointBackRot2"/>
        <bottomArm rotationNode="attacherJointBackArmBottom" translationNode="backBottomLink" referenceNode="referencePointBackBottom" zScale="-1" startRotation="-13 0 0"/>
        <topArm baseNode="attacherJointBackArmTop" filename="$data/shared/assets/upperLinks/walterscheid03.i3d" zScale="-1" color="KAERCHER_GREY4" color2="KAERCHER_GREY4"/>
        <schema position="1 0" rotation="0" invertX="false"/>
        <objectChange node="trailerAttacherNode" visibilityActive="false" visibilityInactive="true"/>
        <objectChange node="trailerLowNode" visibilityActive="false" visibilityInactive="true"/>
    </attacherJoint>
    <attacherJoint node="attacherJointFront" upperRotationOffset="-0.16" moveTime="2.5" comboTime="0">
        <distanceToGround lower="0.32" upper="1.11"/>
        <rotationNode node="attacherJointFrontRot" lowerRotation="20 0 0" upperRotation="-28 0 0"/>
        <rotationNode2 node="attacherJointFrontRot2"/>
        <bottomArm rotationNode="attacherJointFrontArmBottom" translationNode="bottomLinkFront" referenceNode="referencePointFrontBottom" zScale="1" startRotation="-25 0 0"/>
        <topArm baseNode="attacherJointFrontArmTop" filename="$data/shared/assets/upperLinks/johnDeereUpperlink.i3d" zScale="1" color="KAERCHER_GREY4"/>
        <schema position="1 0" rotation="0" invertX="true"/>
        <objectChange node="bottomArmsFront" rotationActive="0 0 0" rotationInactive="-65 0 0"/>
    </attacherJoint>

    <attacherJoint node="trailerAttacherJointBack" jointType="trailer" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
        <distanceToGround lower="0.59" upper="1.20"/>
        <transNode node="trailerAttacherNode" minY="0.58" maxY="1.175"/>
        <schema position="1 0" rotation="0" invertX="false"/>
        <objectChange node="trailerLowNode" visibilityActive="false" visibilityInactive="true"/>
        <objectChange node="attacherJointBackArmBottom" rotationActive="-20 0 0" rotationInactive="0 0 0"/>
    </attacherJoint>

    <attacherJoint node="trailerAttacherJointBackLow" jointType="trailerLow" lowerRotLimit="10 50 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
        <distanceToGround lower="0.59" upper="0.71"/>
        <transNode node="trailerLowNode" minY="0.58" maxY="0.70"/>
        <schema position="1 0" rotation="0" invertX="false"/>
        <objectChange node="attacherJointBackArmBottom" rotationActive="32 0 0" rotationInactive="0 0 0"/>
        <objectChange node="trailerAttacherNode" visibilityActive="false" visibilityInactive="true"/>
        <steeringBars leftNode="trailerSteeringLeftRef" rightNode="trailerSteeringRightRef"/>
    </attacherJoint>
    <attacherJoint node="trailerAttacherJointFront" jointType="trailer" lowerRotLimit="10 50 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
        <schema position="1 0" rotation="0" invertX="true"/>
    </attacherJoint>
</attacherJoints>