Change Fuel Tank size per track?

Discussion in 'Car Modding' started by TheSecret1, Apr 7, 2023.

  1. TheSecret1

    TheSecret1 Registered

    Joined:
    Jun 28, 2018
    Messages:
    135
    Likes Received:
    20
    Just wondering if we can change a fuel tanks size, per track.
    e.g. Track A = 90 litres; Track B = 112 litres?

    Could this be done in the trackconfigbase.ini file or somewhere else?
     
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,393
    Likes Received:
    6,609
    Yes, that's exactly what you'd use (trackconfigsbase), referencing upgrade items you also add to change the size of the fuel tank (and any associated parameters that need to change with it).
     
  3. TheSecret1

    TheSecret1 Registered

    Joined:
    Jun 28, 2018
    Messages:
    135
    Likes Received:
    20
    thanks!
    What would you put in the trackconfigsbase?

    I found this in an upgrade file

    // Super Soft Tyre Round (1)
    UpgradeLevel="Soft Tyre Round"
    {
    Description="Soft Tyres, 112 Litre Tank, Adjustable Final Ratio"

    GEN=<PL_LTCOLEXISTS>=" "
    GEN=<LTCOL>="SPRINT"

    HDV=
    HDV=[GENERAL]
    HDV=FuelRange=(1.0, 1.0, 112)
    HDV=FuelSetting=110

    This is what I am using to set tyres in the trackconfigsbase file

    "FVR Newcastle":
    2020 LE Track Configuration=1

    "RaceRfactor Melbourne 2013":
    2020 LE Track Configuration=1

    What do I add for FuelRange and Setting?
     
  4. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,393
    Likes Received:
    6,609
    @TheSecret1 the trackconfigsbase content is fine, assuming of course the name you're using for the upgrade item matches what it's called in the upgrades. (the "2020 LE Track Configuration" in that case)

    For upgrades parameters:

    FuelRange defines what fuel levels you can set. (1.0, 1.0, 112) means the minimum is 1.0, the 'step' is 1.0, and there are 112 possible values. So the available values are 1.0, 2.0, 3.0, ... , 111, 112. If you just want to limit it to 90L, change the 112 to 90. Done.

    FuelSetting sets the default setup value. I'm not sure why that example is 110, that's 1L short of a full tank. Anyway, you either set a value you decide makes sense (if you want default to be half a tank, you set the Setting to give you that half tank in each case), or if your standard tank is 112, and your Setting is 111 or higher (which equates to 112L), if you make the tank smaller with an upgrade the Setting will be limited to that tank size anyway. But, if you later change the default to a smaller tank, you'll need to add the Setting to make larger tanks work right. So probably best to specify both the Range and Setting in each upgrade option.

    Using small values for examples might be clearer:
    FuelRange=(1,1,4) gives 1, 2, 3, 4
    FuelSetting=2 gives 3L (the first value above, 1L, is Setting=0)

    FuelRange=(20,5,7) gives 20, 25, 30, 35, 40, 45, 50 (count: 7 values, step size is 5)
    FuelSetting=4 gives 40L (count along those values, starting at 0)


    For most uses that's probably all you need to do. If you were making large changes to the size of the fuel tank and/or wanted to model the change for each tank accurately, you'd look to also alter the car's weight balance/distribution, and the fuel tank position and motion parameters. For a large car and relatively small changes it's probably not worth bothering.

    Remember, like the Setting value, the upgrade option selected in the trackconfigsbase is 0-based. So the first available option for an upgrade is 0.
     

Share This Page