Community Forum

Please help: Truck starts moving automatically

Forum Overview >> Farming Simulator 15

CategoryFarming Simulator 15
Created04.11.2015 16:33


Tam Amaruk (Unknown) 04.11.2015 16:41
Hi Folks,

also I do have some experience with modding since FS 2009 there is some Thing I never understood:
- Wheels (Parameters)
- Motor
- and now: differential

Now it is haunting me ;-)

I am trying to convert a crane from FS 13 to FS 15.
- It is buyable
- It can move around
- Lighting and beacons are working
- Crane-Turret is moving as it should.

So far everything is fine.

Except for one Thing:

The crane starts moving automatically right after buying or resetting it.
It also "ice-slides" a bit.

I do guess, it has to do with my engine- and wheel related settings, but I cannot figure it out...

Is anyone willing to help ?

Greets,
Tam

Here is the part of the vehicle.xml:

-----snip-----
<filename>Autokran Kato KA 1300SLV3.i3d</filename>

<numWheels>10</numWheels>
<wheels autoRotateBackSpeed="1.5">
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="30" rotMax="22" rotMin="-22" driveMode="2" repr="0>0" driveNode="0>0" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="30" rotMax="22" rotMin="-22" driveMode="2" repr="0>1" driveNode="0>1" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="30" rotMax="17" rotMin="-17" driveMode="2" repr="0>2" driveNode="0>2" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="30" rotMax="17" rotMin="-17" driveMode="2" repr="0>3" driveNode="0>3" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="0" rotMax="0" rotMin="0" driveMode="1" repr="0>4" driveNode="0>4" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="0" rotMax="0" rotMin="0" driveMode="1" repr="0>5" driveNode="0>5" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="-40" rotMax="20" rotMin="-20" driveMode="2" repr="0>6" driveNode="0>6" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="-40" rotMax="20" rotMin="-20" driveMode="2" repr="0>7" driveNode="0>7" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="-40" rotMax="22" rotMin="-22" driveMode="2" repr="0>8" driveNode="0>8" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
<wheel tireType="offRoad" suspTravel="0.3" spring="180" damper="30" mass="0.2" frictionScale="13" maxLongStiffness="400" maxLatStiffness="500" restLoad="2.8" initialCompression="15" forcePointRatio="0.82" rotSpeed="-40" rotMax="22" rotMin="-22" driveMode="2" repr="0>9" driveNode="0>9" radius="0.65" deltaY="0.1" hasTyreTracks="false" />
</wheels>


<differentials>
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1" /> <!-- 0: Vorderachse -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" /> <!-- 1: Mitte, vorne -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="4" wheelIndex2="5" /> <!-- 2: Mitte, hinten -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="6" wheelIndex2="7" /> <!-- 3: Hinten, vorne -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="8" wheelIndex2="9" /> <!-- 4: Hinten, hinten -->

<differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="1" differentialIndex2="2" /> <!-- Die beiden mittleren Achsen -->
<differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="3" differentialIndex2="4" /> <!-- Die beiden hinderen Achsen -->
<differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="2" differentialIndex2="3" /> <!-- Die beiden hinderen Achsenpaare -->
</differentials>

<motor torqueScale="2.349" minRpm="100" maxRpm="20000" maxBackwardSpeed="15"
brakeForce="70" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1"
minForwardGearRatio="13.5" maxForwardGearRatio="130" minBackwardGearRatio="20" maxBackwardGearRatio="100" differentialRatio="1">
<torque normRpm="0.45" torque="0.4"/>
<torque normRpm="0.5" torque="0.45"/>
<torque normRpm="0.62" torque="0.55"/>
<torque normRpm="0.75" torque="0.6"/>
<torque normRpm="0.86" torque="1"/>
<torque normRpm="1" torque="0.8"/>
</motor>

<ackermannSteering rotSpeed="30" rotMax="47" rotCenterWheel1="4" rotCenterWheel2="5" />

<fuelCapacity>1585</fuelCapacity>
<fuelUsage>150</fuelUsage>
<downForce>100</downForce>

-----snip-----

Emil Drefers (Unknown) 05.11.2015 18:06
Hi,

please check the masses of the cranes' components, maybe they are just way too heavy.

<downForce> is no longer used

maxRpm of 20000 seems to be unreal to me

Cheers,
Emil



Tam Amaruk (Unknown) 06.11.2015 11:03
Hi Emil,

thanks for your reply.

For your information: The Mod I am trying to convert can be found here:
http://www.modhoster.de/mods/autokran-liebherr-inkl-hebegestell

The masses are correct, I checked them. They are roughly equal to the real existing crane.
The maxRpm was for testing only. Now it is set to 4500 rpm

It turns out to be an error with defining the differentials. I had not one at the end.
Now the crane is driveable and will not move itself.

But there are two more problems now:

(1) The accelleration and decelleration is extremly slow.
I tried to raise the Motor's torqueScale to give more Power but without success.

(2) The crane is ice-sliding and will not stick to the ground (what will be expected
from such a heavy vehivle).

Greetings
Tam


My vehicle.xml Looks now like the following (line breaks are only for readability):

<wheels autoRotateBackSpeed="2.5">
<!-- 1.Achse LV 0 -->
<wheel driveMode="2" rotSpeed="30" rotMax="22" rotMin="-22" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>0"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.32" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 1.Achse RV 1 -->
<wheel driveMode="2" rotSpeed="30" rotMax="22" rotMin="-22" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>1"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.32" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 2.Achse LV 2 -->
<wheel driveMode="2" rotSpeed="30" rotMax="17" rotMin="-17" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>2"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.32" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 2.Achse RV 3 -->
<wheel driveMode="2" rotSpeed="30" rotMax="17" rotMin="-17" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>3"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.32" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 3.Achse LH 4 -->
<wheel driveMode="2" rotSpeed="0" rotMax="0" rotMin="0" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>4"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.52" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 3.Achse RH 5 -->
<wheel driveMode="2" rotSpeed="0" rotMax="0" rotMin="0" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>5"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.52" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 4.Achse LH 6 -->
<wheel driveMode="2" rotSpeed="-40" rotMax="20" rotMin="-20" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>6"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.52" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 4.Achse RH 7 -->
<wheel driveMode="2" rotSpeed="-40" rotMax="20" rotMin="-20" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>7"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.52" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 5.Achse LH 8 -->
<wheel driveMode="2" rotSpeed="-40" rotMax="22" rotMin="-22" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>8"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.52" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />

<!-- 5.Achse RH 9 -->
<wheel driveMode="2" rotSpeed="-40" rotMax="22" rotMin="-22" restLoad="37"
maxLongStiffness="40" maxLatStiffness="20" mass="0.2" tireType="offroad" repr="0>9"
forcePointRatio="0.85" deltaY="0.1" radius="0.65" width="0.52" initialCompression="20"
suspTravel="0.2" spring="180" damper="65" />
</wheels>
<ackermannSteering rotSpeed="30" rotMax="47" rotCenterWheel1="4" rotCenterWheel2="5" />

<motor torqueScale="10" minRpm="1000" maxRpm="4500" maxBackwardSpeed="17"
brakeForce="30" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1"
minForwardGearRatio="19.9" maxForwardGearRatio="150"
minBackwardGearRatio="50" maxBackwardGearRatio="130">
<torque normRpm="0.45" torque="1.9"/>
<torque normRpm="0.5" torque="2.3"/>
<torque normRpm="0.59" torque="2.9"/>
<torque normRpm="0.72" torque="3.5"/>
<torque normRpm="0.86" torque="2.3"/>
<torque normRpm="1" torque="1.9"/>
</motor>

<differentials>
<!-- dif 0 front -->
<differential torqueRatio="0.5" maxSpeedRatio="1.2"
wheelIndex1="0" wheelIndex2="1" />
<!-- dif 1 middle1 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.2"
wheelIndex1="2" wheelIndex2="3" />
<!-- dif 2 middle2 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.2"
wheelIndex1="4" wheelIndex2="5" />
<!-- dif 3 back1 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.2"
wheelIndex1="6" wheelIndex2="7" />
<!-- dif 4 back2 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.2"
wheelIndex1="8" wheelIndex2="9" />

<!-- dif 5 middle: middle1 <-> middle2 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.1"
differentialIndex1="1" differentialIndex2="2" />
<!-- dif 6 back: back1 <-> back2 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.1"
differentialIndex1="3" differentialIndex2="4" />

<!-- dif 7 heck: back <-> middle -->
<differential torqueRatio="0.5" maxSpeedRatio="1.1"
differentialIndex1="6" differentialIndex2="5" />

<!-- dif 8 front <-> heck -->
<differential torqueRatio="0.2" maxSpeedRatio="1.2"
differentialIndex1="0" differentialIndex2="7" />
</differentials>

Emil Drefers (Unknown) 16.11.2015 08:33
Hi,

it might be worth a try to add the attribute "frictionScale" to each wheel. Try to use a value of 1.5 first.
You could also remove th eattributes "maxLongStiffness" and "maxLatStiffness", because they are set by the script depending on the other given values.

Good luck

Cheers,
Emil

Tam Amaruk (Unknown) 16.11.2015 16:32
Thanks Emil.

I will give it a try and post the results here.

Greets
Thomas

Tam Amaruk (Unknown) 24.11.2015 13:34
Hi Emil,

finally I got time to test your suggestions.

I took the Motor Settings from the strongest tractor the original game has.
Then I added frictionScale="2" to each of the 10 wheels and removed maxLatStiffness and maxLongStiffNess. That did almost the trick.

I also hat to reduce the original 120t of wheight for the entire model to only 60t (the real-live crane has about 120t weight).

So how can I give the vehicle more power? I tried to increase the "torqueScale" in the motor-Settings as told by several HOW-TOs but that had only VERY Little effect...


Greets
Tam


Emil Drefers (Unknown) 25.11.2015 07:47
Hi,

well the torqueScale should really increase the motor power.
Maybe you did not increase enough.
So you could use the console command "gsVehicleToggleDebugRendering" to enable the debug rendering.
If the debug rendering is enabled you should see how much power the vehicle uses (has) if you accelerate.

You might also check the setup of your differentials to make sure that every wheel gets some force ;)

Cheers,
Emil

Tam Amaruk (Unknown) 25.11.2015 14:55
Hi Emil,

the torqueScale was set to something around 100000 (just for testing) and it seemd not to have much effect. With that scale there should be plenty of power available. The DebugRencering said something about 50000 hp (PS). That should suffice... ;-)

I checked the Diff-Setup: It Looks ok.
Every wheel is atttached to a diff and there is only one diff at the end.

I am somehow at the end of my (very limited) wisdom of this mechanism...

There are 5 axis with 2 wheels each.

Diff 1: axis 1 left <-> right
Diff 2: axis 2 left <-> right
Diff 3: axis 3 left <-> right
Diff 4: axis 4 left <-> right
Diff 5: axis 5 left <-> right

Diff 6: Diff 2 <-> Diff 3
Diff 7: Diff 4 <-> Diff 5
Diff 8: Diff 6 <-> Diff 7
Diff 9: Diff 1 <-> Diff 8

So each wheel should receive some force....

Regarding "gsVehicleToggleDebugRendering": Is there any how so little help / Howto about what diagram Shows what and how to Interpret that?

The DebugRendering seems overloaded, maybe due to 10 wheels and 9 differentials....

Greets
Tam


David Zadnik (DzInLa) 25.11.2015 18:11
Make sure there isn't a collision that is lower than the wheels.

Emil Drefers (Unknown) 26.11.2015 07:57
Hi,

the list of differentials looks good so far.
Sorry to say, but currently we do not have any detailed explanations for the debug rendering.

Cheers,
Emil


Note: Log in to post. Create a new account here.