Community Forum

Setting up differentials FS19

Forum Overview >> Editor

CategoryEditor
Created29.12.2018 21:31


Anthony Queen (tqueen113) 29.12.2018 21:31
Hello
I would like to know if it is possible to set up a third differential for a truck I am working on, I tried playing with this code

<differentialConfigurations>
<differentialConfiguration>
<differentials>
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="3" wheelIndex2="4"/>
<!-- back 1-2 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="5" wheelIndex2="6"/>
<!-- back 3-4 -->
<differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
<!-- back -->
</differentials>
</differentialConfiguration>
</differentialConfigurations>

Whatever I try to modify here does not work properly.

I would be thankful for any help.

Bilbo Beutlin (BBeutlin) 29.12.2018 23:51
See LUA docs Specs -> Motorized -> loadDifferentials

Anthony Queen (tqueen113) 31.12.2018 02:45
So your telling me I need to wright a custom script? If this is the case I cannot do that due to my lack of knowledge in LUA scripting :-(

Thanks for the help Bilbo.

Bilbo Beutlin (BBeutlin) 31.12.2018 03:24
no no *g* I didn't want to suggest writing your own script.
I thought studying the LUA would give you some hints despite a "lack of knowledge in LUA scripting".

The principle scheme is
<differentialConfigurations>
<differentialConfiguration>
<differentials>
<differential ... wheelIndex1=".." wheelIndex2=".."/> <!-- is differentialIndex1 -->
<differential ... wheelIndex2=".." wheelIndex3=".."/> <!-- is differentialIndex2 -->

You may have an arbitrary amount of "differential pairs" (wheels left-right) according to number of axis.
Finally you distribute the engine power to these (n) pairs by
<differential ... differentialIndex1=".." differentialIndex2=".."/>
upto
<differential ... differentialIndex..=".." differentialIndex(n)=".."/>

You may also define an arbitrary amount of <differentialConfiguration>, let's say for 2wd, 4wd, 6wd.
However you must assign the 'differentialConfiguration' in the <wheels .. differentialConfiguration=".."
This is due to other differential would need other wheel properties/attributes and vice versa.

Anthony Queen (tqueen113) 01.01.2019 08:26
OMG I am sorry but .LUA is completly Greek to me and I did copy and past what I found but made no sense out it, I will study it some and thank you so much Bilbo!




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