Mogli12 / GearboxAddon

Farming Simulator 2017: Gearbox addon
GNU General Public License v3.0
53 stars 28 forks source link

Odd behavior when switching between forward and reverse on a double clutching transmission #404

Open Dudejo opened 6 years ago

Dudejo commented 6 years ago

Basically, I can switch between forward and reverse as if it was a tractor's Power Shuttle.

I am not required to lift the clutch, stop the truck or even go into Neutal.

I used a "Band-Aid" fix to rectify the issue but it's odd how the reverse gear seems to otherwise ignore the general requirements of shifting.

        <gears axleSpeed="3.73" tireWidth="315" tireRatio="80" rimDiameter="22.5" shiftTimeMs="500" reverseReset="false" doubleClutch="true">
            <gear name="L" maxRange="1" forwardOnly="true" inverseRatio="2.78"/>
            <gear name="R" reverseOnly="true" inverseRatio="2.99"/>
            <gear name="1" forwardOnly="true" inverseRatio="1.95"/>
            <gear name="2" forwardOnly="true" inverseRatio="1.38"/>
            <gear name="3" forwardOnly="true" inverseRatio="1.00"/>
            <gear name="4" forwardOnly="true" inverseRatio="0.73"/>
        </gears>

        <ranges doubleClutch="true" defaultRange="1">
            <range name="L" inverseRatio="3.78"/>
            <range name="H" inverseRatio="1.00"/>
        </ranges>

        <reverse onlyStopped="true"/><!-- Band-Aid fix to enforce stopping the truck before shifting into reverse -->
Mogli12 commented 5 years ago

Die you try

<gearboxMogli ... autoStartStop="false">
...
  <reverse manualClutch="true"/>
...
</gearboxMogli>

?

Dudejo commented 5 years ago

ManualClutch will force a declutching requirement, yes. It will still let me engage reverse while moving, however. Are the default flags optimized for a modern tractor?

autoStartStop has no effect on any requirements. However, I prefer it on "true" for double clutching purposes as it allows me to float the gears. When set to "false", it forces me to clutch when accelerating forwards.

Mogli12 commented 5 years ago

Ok, if you just want to make sure that you can change direction if you are fully stoppend then onlyStopped="true" is the right flag.

Technically, the gearbox does not engage the reverse gear while moving forwards. It will brake automatically.

Dudejo commented 5 years ago

yeah, combining onlyStopped and manualClutch will replicate a typical behavior or cars and trucks.

speaking of onlyStopped, this lock-out is common on mechanical range selectors for tractors, 4WD pick-ups and reverse gears for anything without a synchronized or power shuttle.