<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="baleLoader">

    <annotation>yogi</annotation>

    <storeData>
        <name>Module 4</name>
        <functions>
            <function>Module 4 OY mit längerem Reparaturintervall, Farbwahl, erhöhter Arbeitslichtreichweite und Pflegebereifung.</function>
            <function>$l10n_function_baleStacker</function>
        </functions>
        <image>tex/LS19_Module4_OY.dds</image>
        <price>25000</price>
        <lifetime>6000</lifetime>
        <rotation>0</rotation>
        <brand>OY</brand>
        <category>onkelyogi</category>
        <shopTranslationOffset>0 -0.113 0</shopTranslationOffset>
        <shopRotationOffset>-1.4 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>897248</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>135996</indexBufferMemoryUsage>
        <textureMemoryUsage>6324544</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_baleLoader</typeDesc>
        <filename>LS19_Module4_OY.i3d</filename>
        <size width="4.5" length="10.5" lengthOffset="0.7" />
        <components>
            <component centerOfMass="0 0.62 0" solverIterationCount="10" mass="2630" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/T404/500_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="wheelLeft"   forcePointRatio="0.5" initialCompression="30" suspTravel="0.15" spring="25" damper="35" />
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/T404/500_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="wheelsRight" forcePointRatio="0.5" initialCompression="30" suspTravel="0.15" spring="25" damper="35" />
                     </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="$l10n_configuration_valueWheelNarrow" price="2000">
                <wheels>
                    <wheel filename="wheels/400_55R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="wheelLeft"   forcePointRatio="0.5" initialCompression="30" suspTravel="0.15" spring="25" damper="35" />
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="wheels/400_55R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="wheelsRight" forcePointRatio="0.5" initialCompression="30" suspTravel="0.15" spring="25" damper="35" />
                     </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <hub linkNode="wheelLeft"     filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.203 0.203 0.203" />
            <hub linkNode="wheelsRight"   filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.203 0.203 0.203" />
        </hubs>
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport01" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport02" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
    </dynamicallyLoadedParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailerLow" attacherHeight="0.6" />
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce>0.4</brakeForce>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.8" diameter="0.017" minDeltaY="-0.04" color="0.05 0.05 0.05 1">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.8" diameter="0.017" minDeltaY="-0.04" color="0.05 0.05 0.05 1">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <powerConsumer ptoRpm="450" neededMinPtoPower="30" neededMaxPtoPower="30"/>

    <lights>
        <sharedLight linkNode="rear3ChamberLight_03_01"       filename="$data/shared/assets/lights/lizard/rear2ChamberLight_03_left.xml" />
        <sharedLight linkNode="rear3ChamberLight_03_02"       filename="$data/shared/assets/lights/lizard/rear2ChamberLight_03_right.xml" />
        <sharedLight linkNode="workingLightOval_04_01" lightTypes="1" filename="$data/shared/assets/lights/lizard/workingLightOval_04.xml">
            <rotationNode name="rotationNode1" rotation="10 0 0" />
        </sharedLight>
        <sharedLight linkNode="workingLightOval_04_02" lightTypes="1" filename="$data/shared/assets/lights/lizard/workingLightOval_04.xml">
            <rotationNode name="rotationNode1" rotation="10 0 0" />
        </sharedLight>

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0" />
                <light node="workLightBackHigh1" lightTypes="1" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
    </lights>

    <animations>
        <animation name="baleGrabberTransportToWork">
            <part node="plattform" startTime="0" endTime="1" startRot="0 0 0" endRot="-12 0 0"/>
        </animation>
        <animation name="emptyRotate">
            <part node="balePlaceUnloading" startTime="0" endTime="2" startTrans="0 0 0" endTrans="0 0 -2.559"/>
            <part node="balePlaceUnloading" startTime="2" endTime="5" startTrans="0 0 -2.559" endTrans="0 0.357 -6.528" startRot="0 0 0" endRot="12 0 0"/>
            <part node="chains" startTime="0" endTime="5.0" shaderParameter="offsetUV" shaderStartValues="0 50 0 0" shaderEndValues="0 0 0 0" />
            <part node="rotationNode" startTime="0" endTime="5.0" startRot="5000 0 0" endRot="0 0 0"/>
            <part node="gearDecals"   startTime="0" endTime="5.0" startRot="5000 0 0" endRot="0 0 0"/>
            <sound template="COTTON_LOADER" linkNode="module4_main_component1" />
        </animation>
        <animation name="moveBalePlaces">
            <part node="balePlaceLoading" startTime="0.0" endTime="3.0"  startTrans="-0.0 1.922 -6.213" endTrans="-0.0 1.565 -2.244" startRot="12 0 0" endRot="0 0 0" />
            <part node="balePlaceLoading" startTime="3.0" endTime="5.0"  startTrans="-0.0 1.565 -2.244" endTrans="-0.0 1.565 0.315" />
            <part node="chains" startTime="0" endTime="5.0" shaderParameter="offsetUV" shaderStartValues="0 0 0 0" shaderEndValues="0 50 0 0" />
            <part node="rotationNode" startTime="0" endTime="5.0" startRot="0 0 0" endRot="5000 0 0"/>
            <part node="gearDecals"   startTime="0" endTime="5.0" startRot="0 0 0" endRot="5000 0 0"/>
            <sound template="COTTON_LOADER" linkNode="module4_main_component1" />
        </animation>
        <animation name="releaseFrontplattform" resetOnStart="false">
            <part node="balePlaceUnloading" startTime="0" endTime="0.01" endTrans="0 0 0" endRot="0 0 0"/>
            <part node="balePlaceLoading" startTime="0" endTime="0.01" endTrans="-0.0 1.922 -6.213" endRot="12 0 0"/>
        </animation>
        <animation name="baleGrabberWorkToDrop"/>
        <animation name="baleGrabberDropBale"/>
        <animation name="frontBalePusher"/>
        <animation name="balesToOtherRow"/>
        <animation name="rotatePlatform"/>
        <animation name="moveBalePlacesToEmpty"/>
        <animation name="moveBalePusherToEmpty"/>
        <animation name="emptyHidePusher1"/>
        <animation name="closeGrippers"/>
        <animation name="moveSupport">
            <part node="supportFeet" startTime="0" endTime="0.2" startTrans="0 0.3 0" endTrans="0 0.05 0" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="plattform" wheelIndices="1 2" playSound="true">
                <dependentPart node="plattformHydraulics" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="plattformHydraulics" referencePoint="plattformHydraulicsRef" referenceFrame="plattformHydraulicsRef">
                <translatingPart node="plattformHydraulicsPunch01" />
                <translatingPart node="plattformHydraulicsPunch02" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="module4_main_component1"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_bale" fillTypes="squareBale" capacity="1"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <baleLoader alwaysMoveBalePlaces="true" transportPositionAfterUnloading="true" automaticUnloading="true" resetEmptyRotateAnimation="false">
        <grabber grabNode="baleGrabNode" triggerNode="baleGrabberTrigger" pickupRange="1.5"/>
        <balePlaces startBalePlace="startBalePlaces">
            <balePlace node="balePlaceUnloading"/>
        </balePlaces>
        <baleTypes>
            <baleType minBaleWidth="2.4"  maxBaleWidth="2.5" minBaleHeight="2.4" maxBaleHeight="2.5" minBaleLength="4.8" maxBaleLength="5"/>
        </baleTypes>
        <dynamicMount enabled="true" minTransLimits="0 0 0" maxTransLimits="0 0.2 0" />
        <texts lowering="info_balestackerLoweringTable" tilting="info_balestackerTiltingTable"/>
    </baleLoader>

    <foliageBending>
        <bendingNode minX="-0.4" maxX="0.4" minZ="3.5" maxZ="6" yOffset="0.6" />
        <bendingNode minX="-1.4" maxX="1.4" minZ="-4" maxZ="4" yOffset="0.6" />
        <bendingNode minX="-1.95" maxX="1.95" minZ="-1.2" maxZ="0" yOffset="0.6" />
        <bendingNode minX="-1.4" maxX="1.4" minZ="-4" maxZ="-0.85" yOffset="0.1" node="plattform" />
    </foliageBending>

    <baseMaterial>
        <material name="module4_mat" baseNode="module4_vis">
            <shaderParameter name="colorMat0" value="0.5480 0.0230 0.0120 0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="800" useDefaultColors="true" defaultColorIndex="33">
        <baseMaterialConfiguration name="MODULE RED" color="0.5480 0.0230 0.0120 0"/>
        <material name="module4_mat" shaderParameter="colorMat0"/>
	</baseMaterialConfigurations>
	
    <rimColorConfigurations price="400" useDefaultColors="true" defaultColorIndex="33">
        <rimColorConfiguration name="MODULE CHROME" color="0.294 0.294 0.294 1" />
        <colorNode node="wheels" />
    </rimColorConfigurations>

    <wearable wearDuration="4800" workMultiplier="1" fieldMultiplier="1"/>
	
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="module4_main_component1" node="0>" />
        <i3dMapping id="module4_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportFeet" node="0>0|0|1|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="wheelChock02" node="0>0|0|3|0" />
        <i3dMapping id="wheelChock01" node="0>0|0|3|1" />
        <i3dMapping id="chockSupport02" node="0>0|0|3|2" />
        <i3dMapping id="chockSupport01" node="0>0|0|3|3" />
        <i3dMapping id="plattform" node="0>0|1|0" />
        <i3dMapping id="wheelLeft" node="0>0|1|0|0|0" />
        <i3dMapping id="wheelsRight" node="0>0|1|0|0|1" />
        <i3dMapping id="chains" node="0>0|1|0|1|0" />
        <i3dMapping id="rotationNode" node="0>0|1|0|1|1" />
        <i3dMapping id="gearDecals" node="0>0|1|0|1|2" />
        <i3dMapping id="plattformHydraulicsRef" node="0>0|1|0|2" />
        <i3dMapping id="baleLoader" node="0>0|1|0|3" />
        <i3dMapping id="baleGrabNode" node="0>0|1|0|3|0" />
        <i3dMapping id="startBalePlaces" node="0>0|1|0|3|1" />
        <i3dMapping id="balePlaceLoading" node="0>0|1|0|3|2" />
        <i3dMapping id="balePlaceUnloading" node="0>0|1|0|3|2|0" />
        <i3dMapping id="baleGrabberTrigger" node="0>0|1|0|3|3" />
        <i3dMapping id="rear3ChamberLight_03_01" node="0>0|1|0|4|0" />
        <i3dMapping id="rear3ChamberLight_03_02" node="0>0|1|0|4|1" />
        <i3dMapping id="workingLightOval_04_01" node="0>0|1|0|4|2" />
        <i3dMapping id="workingLightOval_04_02" node="0>0|1|0|4|3" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|0|4|4" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|0|4|5" />
        <i3dMapping id="backLightsHigh1" node="0>0|1|0|4|6" />
        <i3dMapping id="workLightBackHigh1" node="0>0|1|0|4|7" />
        <i3dMapping id="plattformHydraulics" node="0>0|1|1" />
        <i3dMapping id="plattformHydraulicsPunch01" node="0>0|1|1|0" />
        <i3dMapping id="plattformHydraulicsPunch02" node="0>0|1|1|0|0" />
    </i3dMappings>
</vehicle>
