Disable refuelling via upgrades.ini

Discussion in 'Car Modding' started by Smeghead, Jun 10, 2022.

  1. Smeghead

    Smeghead Registered

    Joined:
    Dec 31, 2011
    Messages:
    158
    Likes Received:
    207
    I've been asked if I could make a no refuelling option for my formula pro skinset.
    I'm assuming this will have to be done vie upgrades.ini.
    from what I've been able to find so far and looking at other mods I've tried this

    UpgradeType="Refueling"
    {
    UpgradeLevel="Allow Refueling"
    {
    Description="Refueling Allowed"
    }
    UpgradeLevel="Disable Refueling"
    {
    Description="No Refueling Allowed"
    HDV=[PITMENU]
    HDV=Fuel=0
    HDV=
    HDV=[GENERAL]
    HDV=NumPitstopsRange=(0,1,1)
    HDV=NumPitstopsSetting=0
    HDV=Pitstop1Range=(0,0,0)
    HDV=Pitstop1Setting=0
    HDV=Pitstop2Range=(0,0,0)
    HDV=Pitstop2Setting=0
    HDV=Pitstop3Range=(0,0,0)
    HDV=Pitstop3Setting=0
    HDV=

    }
    }
    and it seems to work,
    Is this correct ?
    and is this all that is required ?
    and will this work with AI as well or will that involve the .rcd file ? ( I have a working talent file already)

    thanks in advance, any input appreciated.
     
    Last edited: Jun 10, 2022
  2. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    @Smeghead If you use it in the above written Scheme, the AI will use "Allow Refueling", because that is the default/first Option.
    So you would have to use fixed Upgrades to force them to use the "Disable Refueling" Option.
    But i don't know if fixed Upgrades work again (they didn't work for a longer Time in the Past), you have to test it.
    Or you set "Disable Refueling" as the first Option.
     
  3. Smeghead

    Smeghead Registered

    Joined:
    Dec 31, 2011
    Messages:
    158
    Likes Received:
    207
    thank you.
    The noDRS upgrade you provided works for the AI when it is forced on, so hopefully this will too (just a bit harder to test)
    Preferable to having as default
     
    redapg likes this.

Share This Page