Mogli12 / GearboxAddon

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

Multiple Gearboxes Per Tractor? #350

Open rubberburner89 opened 6 years ago

rubberburner89 commented 6 years ago

Hey Mogli12,

I'm currently working on editing tractor right now and have added multiple engine configurations and that got me to thinking... Is it possible to add multiple Gearboxes the same way? (Built into the tractor versus the gearboxConfig.xml) The tractor I'm working on did actually come with a couple different options and I'd like to implement that if possible. I've tried on my own to get this to work but I keep hitting a wall. Thanks in advance,

Rubberburner89

Mogli12 commented 6 years ago

Hallo Rubberburner89,

Ja, das geht. Du kannst in der XML vom Fahrzeug auf oberster Ebene die beiden Tags transmissionsund transmission anstelle von gearboxMogli verwenden. Die Attribute kommen alle zu transmission. Beispiel:

...
  <motorConfigurations>
...
  </motorConfiguration>

  <transmissions>
    <transmission name="PowerShift" maxForwardSpeed="52" maxBackwardSpeed="32" ptoRpm="1900" ptoRpmEco="1600">
...
    </transmission>
  </transmissions>

Viele Grüße

rubberburner89 commented 6 years ago

Yes, that worked. I am trying to add a price for the second transmission though, and having on the same line as the name did not work.

Mogli12 commented 6 years ago

Hi,

Sorry, but pricing is not supported. The other options would be to have a motorConfiguration entry for every motor/gearbox combination. This would allow you to change decals and prices.

Regards, Stefan

rubberburner89 commented 6 years ago

Alright... thanks for your time, and an amazing mod :)

Mogli12 commented 6 years ago

Let me think about the pricing...

rubberburner89 commented 6 years ago

:)

Mogli12 commented 6 years ago

Hi, with v3.1 build 78 the gearbox addon support the two attribute price and dailyUpKeep at the transmission tag. <transmission><transmission>...</transmission></transmissions> should now work in the vehicle.xml but only at top level, not below the <motorConfigurations><motorConfiguration>.... Regards, Stefan