Mogli12 / VehicleControlAddon

Farming Simulator 22: Smoother steering with the key board and more...
336 stars 180 forks source link

Can't enable diff control setting on 2wd vehicles. #819

Closed talianagisan closed 2 years ago

talianagisan commented 2 years ago

So I'm not sure if this is intentional or not but I can't enable the setting to control diffs on 2wd vehicles. If this is intentional, why? We still need rear diff control or front diff. But if its not intentional... well now you're aware.

Mogli12 commented 2 years ago

Please check the ingame help. The VCA diff. sections starts with "If Vehicle Control Addon can identify the differentials,...". Thus, I cannot answer your question without knowing the vehicle.

talianagisan commented 2 years ago

The option for difflock is greyed out on any 2wd. Enhanced vehicle control does it without issues. Good examples are these the 2wd ones. https://tired-iron-modding.itch.io/john-deere-large-frames https://tired-iron-modding.itch.io/john-deere-30-and-40-series-hi-crop and his others.

My guess is if it doesnt detect a front differential it freaks out. I've not had a single 2wd vehicle work but the moment i used enhanced vehicle's diff lock it worked flawlessly. If you want me to try anything specific ingame do tell me and i can report on it.

Mogli12 commented 2 years ago

Hi, sorry for the late response. But the diffs in the mod look strange:

            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="1" wheelIndex2="2"/>
                    <!-- front left-right-->
                    <differential torqueRatio="0.5" maxSpeedRatio="0.0" wheelIndex1="3" wheelIndex2="4"/>
                    <!-- back left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="1" differentialIndex2="2"/>
                    <!-- front-back -->
                </differentials>
            </differentialConfiguration>

I 2WD vehicle should have one diff only. It should rather look like this:

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.9" wheelIndex1="3" wheelIndex2="4" /> <!-- back left-right -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>