Conversion de mods: tracteur qui penche

Roms25
Posts: 49
Joined: Tue Mar 31, 2015 10:29 am

Conversion de mods: tracteur qui penche

Post by Roms25 »

Salut

Je suis entrain de de me convertir pour usage perso un Deutz 13006 . Il est fonctionnel mais j'ai un petit problème dont je n'arrive pas à trouver la source.
A vide il penche légèrement d'un coté, lorsque j'attache un outil , la "suspension" se comprime plus d'un coté que de l'autre et il revient d'aplomb.

Sachant que dans l'i3d , j'ai déplacé tout l'essieu avant pour le rendre articulé. Aussi les roues sont dans l'i3d.

voici le xml de l'engin:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="D06AKFU">
<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
<filename>DeutzD8006.i3d</filename>
<storeData>
<name>
<de>Deutz D 13006HGFH</de>
<en>Deutz D 13006HGFH</en></name>
<functions>
<function>$l10n_function_tractor</function>
</functions>
<specs>
<power>130</power>
</specs>
<image>store.dds</image>
<price>10000</price>
<dailyUpkeep>10</dailyUpkeep>
<lifetime>600</lifetime>
<rotation>0</rotation>
<brand>DEUTZFAHR</brand>
<category>tractors</category>
<fieldJob sizeCategory="2" typeCategory="tractor" hasFrontAndBackHydraulics="true" />
</storeData>
<size width="3.5" length="6"/>
<wheels autoRotateBackSpeed="1.5">
<wheel rotSpeed="1" repr="1>2" driveNode="1>2|0" radius="0.631" restLoad="1.6" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="25" damper="50" hasTireTracks="true" mass="0.25" hasParticles="true"/>
<wheel rotSpeed="1" repr="1>3" driveNode="1>3|0" radius="0.631" restLoad="1.6" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="25" damper="50" hasTireTracks="true" mass="0.25" hasParticles="true"/>
<wheel rotSpeed="0" repr="0>2" radius="0.913" restLoad="1.6" forcePointRatio="0.3" initialCompression="50" suspTravel="0.08" spring="25" damper="50" hasTireTracks="true" mass="0.3365" hasParticles="true"/>
<wheel rotSpeed="0" repr="0>3" radius="0.913" restLoad="1.6" forcePointRatio="0.3" initialCompression="50" suspTravel="0.08" spring="25" damper="50" hasTireTracks="true" mass="0.3365" hasParticles="true"/>
</wheels>
<ackermannSteering rotSpeed="60" rotMax="35" rotCenterWheel1="2" rotCenterWheel2="3"/>

<differentials>
<differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="0" wheelIndex2="1"/>
<!-- front left-right -->
<differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="2" wheelIndex2="3"/>
<!-- back left-right -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" differentialIndex1="0" differentialIndex2="1"/>
<!-- front-back -->
</differentials>
<motor torqueScale="0.398" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="4" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="19.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
<torque normRpm="0.45" torque="0.9"/>
<torque normRpm="0.5" torque="0.97"/>
<torque normRpm="0.59" torque="1"/>
<torque normRpm="0.72" torque="1"/>
<torque normRpm="0.86" torque="0.88"/>
<torque normRpm="1" torque="0.72"/>
</motor>
<fuelCapacity>160</fuelCapacity>
<fuelUsage>40</fuelUsage>
<components count="2">
<component1 centerOfMass="0.2 0.8 0.25" solverIterationCount="10"/>
<component2 centerOfMass="0.0 0 0.0" solverIterationCount="90" /><!-- 40% of total weight-->
<joint component1="0" component2="1" index="1>0" rotLimit="0 0 8" transLimit="0 0 0" breakable="false" />
</components>
<cameras count="2">
<camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35">
<raycastNode index="0>6"/>
<raycastNode index="0>7"/>
</camera1>
<camera2 index="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0"/>
</cameras>
<lights>
<!--to be adjusted manually-->
<low>
<light realLight="0>9" decoration="0>23" lightTypes="0"/>
</low>
<!--to be adjusted manually-->
<high>
<light realLight="0>9" decoration="0>23" lightTypes="0"/>
</high>
<!--to be adjusted manually-->
<states>0 1 2</states>
</lights>
<beaconLights>
<beaconLight index="0>31|7|1|0|1" speed="0.015" filename="$data/shared/beaconLights/beaconLight01.i3d"/>
<beaconLight index="0>31|7|1|1|1" speed="0.015" filename="$data/shared/beaconLights/beaconLight01.i3d"/>
</beaconLights>
<brakeLights>
<brakeLight decoration="0>25"/>
</brakeLights>
<lightsaddon lightsStayOn="false">
<light type="work" index="0|0|0" inputName="Normalbereifungvo" defaultOn="true" stayOn="true"/>
<light type="work" index="1|0|0" inputName="Normalbereifungvo" defaultOn="true" stayOn="true"/>
<light type="work" index="2|0" inputName="Normalbereifunghi" defaultOn="true" stayOn="true"/>
<light type="work" index="3|0" inputName="Normalbereifunghi" defaultOn="true" stayOn="true"/>
<light type="work" index="0|0|1" inputName="Pflegebereifungvo" stayOn="true"/>
<light type="work" index="1|0|1" inputName="Pflegebereifungvo" stayOn="true"/>
<light type="work" index="2|1" inputName="Pflegebereifunghi" stayOn="true"/>
<light type="work" index="3|1" inputName="Pflegebereifunghi" stayOn="true"/>
<light type="work" index="0|4" inputName="kotfluegelvo" defaultOn="true" stayOn="true"/>
<light type="work" index="1|3" inputName="kotfluegelvo" defaultOn="true" stayOn="true"/>
<light type="work" index="31|6|0" inputName="Bockvo" stayOn="true"/>
<light type="work" index="31|6|1" inputName="Bockhi" stayOn="true"/>
<light type="work" index="31|4|0|0" inputName="gewichteeins" stayOn="true"/>
<light type="work" index="31|4|1" inputName="gewichtebockzwei" stayOn="true"/>
<light type="work" index="31|4|1|0" inputName="gewichtezwei" stayOn="true"/>
<light type="work" index="30|4" real="30|6" inputName="worklightrear" stayOn="false"/>
<light type="work" index="30|3" real="30|5" inputName="worklightfront" stayOn="false"/>
<light type="dirLeft" index="30|1"/>
<light type="dirRight" index="30|2"/>
<flashers soundfile="blinktick.wav" lowPitch="0.8" highPitch="1.0" volume="0.6"/>
</lightsaddon>
<beaconLights>
<beaconLight index="0>24|0" speed="0.016"/>
</beaconLights>

<steering index="0>18|0" rotationSpeed="6"/>
<enterReferenceNode index="0>"/>
<exitPoint index="0>8"/>
<attacherJoints>
<attacherJoint index="0>10|0|0" rotationNode="0>10" lowerRotation="2 0 0" upperRotation="25 0 0" upperDistanceToGround="1.1" lowerDistanceToGround="0.5" rotationNode2="0>10|0" lowerRotation2="-2 0 0" upperRotation2="-22 0 0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.5 0" moveTime="2.5" ptoOutputNode="0>16" comboTime="1">
<bottomArm rotationNode="0>11" translationNode="0>11|0" referenceNode="0>11|0|0" zScale="-1"/>
<topArm baseNode="0>12" filename="$data/shared/vehicleParts/upperLink.i3d" zScale="-1" />
<schema position="1 0" rotation="0" invertX="false"/>
</attacherJoint>
<attacherJoint index="0>31|5|0|0|0" rotationNode="0>31|5|0" lowerRotation="2 0 0" upperRotation="-30 0 0" rotationNode2="0>31|5|0|0" lowerRotation2="-2 0 0" upperDistanceToGround="1.1" lowerDistanceToGround="0.5" upperRotation2="22 0 0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.4 0" moveTime="2.5">
<bottomArm rotationNode="0>31|5|1" translationNode="0>31|5|1|0" referenceNode="0>31|5|1|0|0" zScale="1"/>
<topArm rotationNode="0>31|5|1" translationNode="0>31|5|1|0" referenceNode="0>31|5|1|0|0" zScale="1"/>
<schema position="0 0" rotation="0" invertX="true"/>
</attacherJoint>
<attacherJoint index="0>15|0" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" transNodeMinY="0.833" transNodeMaxY="1.03" ptoOutputNode="0>16" comboTime="1">
<schema position="1 0" rotation="0" invertX="false"/>
</attacherJoint>
<attacherJoint index="0>15|1" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" transNodeMinY="0.833" transNodeMaxY="1.03">
<schema position="1 0" rotation="0" invertX="false"/>
</attacherJoint>
<attacherJoint index="0>15|2" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" transNodeMinY="0.833" transNodeMaxY="1.03"/>
<attacherJoint index="0>17" jointType="trailerLow" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" ptoOutputNode="0>16" comboTime="1"/>
</attacherJoints>
<movingTools>
<movingTool index="0>11">
<dependentPart index="0>13"/>
<dependentPart index="0>14"/>
</movingTool>
<movingTool index="0>31|5|1">
<dependentPart index="0>31|5|3"/>
</movingTool>
</movingTools>
<movingParts>
<!-- attacher joint back bottom cylinder 1 -->
<movingPart index="0>13" referencePoint="0>14|1" referenceFrame="0>" invertZ="true">
<translatingPart index="0>13|0"/>
</movingPart>
<!-- attacher joint back bottom cylinder 2 -->
<movingPart index="0>14" referencePoint="0>11|0|1" localReferencePoint="0>14|2" referenceFrame="0>" invertZ="true">
<dependentPart index="0>14|2"/>
</movingPart>
<!-- attacher joint back bottom cylinder 2b -->
<movingPart index="0>14|2" referencePoint="0>11|0|1" referenceFrame="0>14|0" invertZ="true"/>
<!-- attacher joint front bottom cylinder -->
<movingPart index="0>31|5|3" referencePoint="0>31|5|1|0|1" referenceFrame="0>" invertZ="false">
<translatingPart index="0>31|5|3|0"/>
</movingPart>
<!-- steering -->
<movingPart index="1>3|1" referencePoint="1>2|1" referenceFrame="1>2|1" isActiveDirty="true" playSound="false" scaleZ="false">
<dependentPart index="1>1|0" />
</movingPart>
<movingPart index="1>1|0" referencePoint="1>2|2" referenceFrame="1>2|2" playSound="false">
<translatingPart index="1>1|0|0|0|0" />
</movingPart>
</movingParts>

<characterNode index="0>32|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100" >
<target ikChain="rightFoot" targetNode="0>32|1" />
<target ikChain="leftFoot" targetNode="0>32|2" />
<target ikChain="rightArm" targetNode="0>18|1|1" setDirty="true"/>
<target ikChain="leftArm" targetNode="0>18|1|0" setDirty="true" />
</characterNode>

<ai>
<trafficCollisionTrigger index="0>20"/>
</ai>
<exhaustEffects>
<!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
<exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>21" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.05" maxRpmScale="0.4" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
</exhaustEffects>
<motorStartDuration>2500</motorStartDuration>
<attachSound file="$data/sounds/attach.wav" pitchOffset="1"/>
<motorStartSound file="SoundData/Deutz631Start.wav" pitchOffset="1" volume="1.5"/>
<motorSound file="SoundData/Deutz631Idle.wav" pitchOffset="1" pitchScale="0.026" pitchMax="1.43" volume="1.5" radius="55" innerRadius="30"/>
<motorSoundRun file="SoundData/Deutz631Run.wav" pitchOffset="0.5" pitchScale="0.0365" pitchMax="1.40" volume="1.6" radius="50" innerRadius="20"/>
<motorStopSound file="SoundData/Deutz631Stop.wav" pitchOffset="1" volume="1.5"/>
<motorSoundRun2 file="$data/vehicles/shared/transmissionOld.wav" pitchOffset="0.75" volume="0.3" pitchMax="1.25" volumeMax="0.7"/>
<compressedAirSound file="$data/sounds/technicalAccessories/brakeBig.wav" pitchOffset="1" volume="1.25"/>
<compressionSound file="$data/sounds/technicalAccessories/brakeBig.wav" pitchOffset="1" volume="1.5"/>
<hydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.55" volume="0.8"/>
<honkSound file="$data/sounds/horn.wav" volume="1" innerRadius="10" radius="70"/>
<SaveVisibility indexOn="0>31|5" indexOff="0>31|4" startAtOn="true"/>
<Allradwellen count="4" >
<Welle1 index="0>33|0|1|0"/>
<Welle2 index="0>33|0|1|1"/>
<Welle3 index="1>1|4|0"/>
<Welle4 index="1>1|4|1"/>
<SetDirection welle1="0>33|0|1|1|0" welle2="1>1|4|1|0" />
</Allradwellen>
<schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
<imgBasedHud hudsCount="4">
<Hud1 imgPath="tex/hud/imgHud1.dds" posX="0.66" posY="0.21" scaleX="0.42" scaleY="0.75"/>
<Hud2 imgPath="tex/hud/imgHud2.dds" posX="0.66" posY="0.21" scaleX="0.42" scaleY="0.75"/>
<Hud3 imgPath="tex/hud/imgHud3.dds" posX="0.66" posY="0.21" scaleX="0.42" scaleY="0.75"/>
<Hud4 imgPath="tex/hud/imgHud4.dds" posX="0.66" posY="0.21" scaleX="0.42" scaleY="0.75"/>
</imgBasedHud>
<animations>
<animation name="door">
<part node="0>31|7|0|0" startTime="0" duration="2" startRot="-5 0 0" endRot="0 -90 0"/>
</animation>
<animation name="backWindow">
<part node="0>31|7|3|0" startTime="0" duration="2" startRot="5 0 0" endRot="60 0 0"/>
</animation>
<animation name="roofWindow">
<part node="0>31|7|0|1" startTime="0" duration="2" startRot="-5 0 0" endRot="0 90 0"/>
</animation>
<animation name="FHArm">
<part node="0>31|7|4|0" startTime="0" duration="2" startRot="-9 0 0" endRot="-60 0 0"/>
</animation>
</animations>
<interactiveComponents>
<windows>
<window name="door" mark="0>31|7|0|0|2" size="0.2" animName="door" onMessage="ic_component_open" offMessage="ic_component_close"/>
<window name="backWindow" mark="0>31|7|3|0|2" size="0.2" animName="backWindow" onMessage="ic_component_open" offMessage="ic_component_close"/>
<window name="roofWindow" mark="0>31|7|0|1|2" size="0.2" animName="roofWindow" onMessage="ic_component_open" offMessage="ic_component_close"/>
<window name="FHArm" mark="0>31|7|4|0|4" size="0.2" animName="FHArm" onMessage="ic_component_open" offMessage="ic_component_close"/>
</windows>
<buttons>
<!--<button name="cablight" mark="0>5|0|9|2" size="0.2" event="cablight" onMessage="switchCabineLight" offMessage="switchCabineLight" /> -->
</buttons>
</interactiveComponents>
<controlPanels count="2">
<controlPanel1 index="0>31|9|0"/>
<controlPanel2 index="0>31|9|1"/>
</controlPanels>
<washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
</vehicle>
Aussi sur l'essieu arrière, à vide les roues ne sont pas dans l'axe de l'essieu verticalement alors qu'elle le sont dans le 3d.
Image

Image
User avatar
fozzy691
Moderator
Posts: 3563
Joined: Mon Nov 05, 2012 11:01 am

Re: Conversion de mods: tracteur qui penche

Post by fozzy691 »

Bonjour,

J'ai l'impression qu'il manque des lignes dans le xml... Pouvez vous l'envoyé comme une pièce jointe en prenant le fichier .xml directement.
Roms25
Posts: 49
Joined: Tue Mar 31, 2015 10:29 am

Re: Conversion de mods: tracteur qui penche

Post by Roms25 »

Bonsoir,

Je vous joint le xml, Il as évolué depuis le post, mais que sur la partie Light.
DeutzD8006.xml
(15.1 KiB) Downloaded 173 times
User avatar
fozzy691
Moderator
Posts: 3563
Joined: Mon Nov 05, 2012 11:01 am

Re: Conversion de mods: tracteur qui penche

Post by fozzy691 »

Je viens de regarder le xml, il semble complet mais je ne vois pas ce qui peut poser problème.

possible d'avoir un screen du problème ingame?

Poster votre image avec le site d'image officiel: https://image.giants-software.com/
Roms25
Posts: 49
Joined: Tue Mar 31, 2015 10:29 am

Re: Conversion de mods: tracteur qui penche

Post by Roms25 »

Bon ben il ne se charge plus... Il y a un soucis avec le 3D.
Error: Parse error in 'C:/Users/Romain/Documents/My Games/FarmingSimulator2017/mods/FS17_DeutzD13006HGFH/DeutzD8006.i3d' at line 537. out of memory.
Error: failed to load i3d file 'C:/Users/Romain/Documents/My Games/FarmingSimulator2017/mods/FS17_DeutzD13006HGFH/DeutzD8006.i3d'
data/vehicles/tools/kuhn/kuhnVariMaster153.i3d (332.16) ms


Il s'ouvre bien dans Giant Editor, tout y es. Mais l'i3d double de volume à chaque ouverture il est passé de 253 à 512Mo en 1 enregistrement sans avoir rien touché dedans... :shock: :confusednew:
Alors à savoir, que j'y avais importer un autre i3d de tracteur , pour copier/coller quelle que élément comme un cardan, les effets de faisceau de phare, des transforms pour l'ouvrier ext... mais en suppriment l'import , Il a surement garder des traces.
User avatar
fozzy691
Moderator
Posts: 3563
Joined: Mon Nov 05, 2012 11:01 am

Re: Conversion de mods: tracteur qui penche

Post by fozzy691 »

Bonjour,

Il est peut être encore possible de le sauver. Il suffit de voir quel est le problème ligne 537 avec un éditeur comme 'NOTEPAD' :)
Roms25
Posts: 49
Joined: Tue Mar 31, 2015 10:29 am

Re: Conversion de mods: tracteur qui penche

Post by Roms25 »

Bon j'ai réussi à le sauvé ! Pfiouu , c'est sportif Giants ..... Je n'ai rien vue qui cloche à la ligne 537, c'est juste une balise de fermeture [/transform] , et il ne manque pas de balise. J'ai relevé id du transforms correspondant, il s'agissait d'un morceau du Front hydraulique. J'ai donc carrément supprimer Tout le bloque FH dans GE, et la miracle, l'i3d ne faisait plus que 81Ko au lieu de 250Mo! (sachant que je n'ai absolument pas toucher a cette partie lors de ma conversion).
J'ai pu ensuite récupéré le FH ou réimportant un i3d d'une autre version du 8006.

Pffff, ça donne envie d'essayer

Bon ca m'a crever ces sueurs froide. bonne nuit
Post Reply