AI fuel

Discussion in 'Car Modding' started by Rock, Feb 13, 2021.

  1. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    Hello,
    My AI went through the pits at the end of the race because they did not take enough fuel.
    How to force them to have more margin?
     
    Hazi likes this.
  2. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    A precision the AI does not leave with the full tank.
     
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    If it still works, you can assign a Setup with more Fuel to the AI.
     
  4. EMY

    EMY Registered

    Joined:
    Oct 13, 2010
    Messages:
    93
    Likes Received:
    80
    Is it possible to have one setup for qualifying and one for the race for AI?
    Is it possible to assign an engine for qualifying and one for the race to AI?

    Thanks
     
  5. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,480
    Likes Received:
    4,395
    I haven't done an AI setup in such a long time, I don't remember, but I would be shocked if separate engines are available because each session, practice, qualifying, warm-up, race, each session gets fresh tires and fresh engines. The entire car is fresh except, perhaps, races that use the parc ferme rules.
     
  6. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    157
    Likes Received:
    178
    Hi
    Commonly in HDV there is a setting about fuel, for numbers of Pit and fuel quantity.
    Check these features, because if they are not well set, AI drivers could be race with wrong strategy, imposing, for example, a pit in the last lap .
    Then check also TBC file for the value of AIPitThreshold.
    Check the fuel consumption in Engine file
    Check the fuel consumption on the track through the AIW file.

    As You can see, there are several factors influencing the AI fuel consumption, but commonly they are also important for Human driver.
    As RF2 code rule, AI drivers are always starting in a race with correct fuel quantity, but if You make, for example, a "short" race of 10 laps, while Human driver may impose in setup setting the correct fuel for all the race, AI drivers are following the data imposed in HDV, or other files. If in HDV there are 1 ( or more ) pit for AI, AI will do race with pit.
     
    atomed likes this.
  7. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    157
    Likes Received:
    178
    And...NO: It's not possible to get Engine for Qualify and Engine for race for AI drivers.
     
  8. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    thanks for your support
    Hi EMY
    The AI itself adjusts the amount of fuel example in the case of the 2013 F1 season I blocked at 6 laps maximum and the AI embeds 15 liters but if I put qualifying 20 minutes without limit of laps it will leave with much more fuel.

    I also confirm, I do not know a solution for this.

    --------------------------------

    Hi Nicola59 thank you for your help!

    I am using an F1 2013 no pit stop configuration with 150 liters available and I noticed that it carried only 135 liters and broke down very often in the last lap of the race.

    This value I believe is used to tell the AI whether to move forward or backward its pit stop. In my case there is no refueling, I use this parameter only for the tires.

    In "Engine.ini" the setting seems ok because "FuelConsumption = 1.xx" does not pose a problem for me I manage to finish the race with 135 liters with a tank of 150 liters.

    It seems to have no effect on the consumption it is just to take the need for the circuit.

    ------------------------------
    If there are other points to check, I'm ready!
    what are these parameters for in HDV:
    AIFuelMult =
    AIPerfUsage =
    AITableParams =
     
  9. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    157
    Likes Received:
    178
    These last parameters are obsolete.

    Can You show the HDV file here, at least for the
    [GENERAL]
    section?
     
  10. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    thank you for the info
    ---------------------------------------------
    // ERF12013-cat - (c) ER update 2016
    // F1 2013 Cat
    [GENERAL]
    Rules=0
    GarageDisplayFlags=174
    Mass=665.0
    Inertia=(864.9, 922.2, 114.6)
    FuelTankPos=(0.00, 0.34,-1.32)
    FuelTankMotion=(662, 0.65) ratio)(662, 0.65)
    Notes=""
    Symmetric=1
    DamageFile=ERF12013_DAMAGE-Cat
    CGHeightRange=(0.205,0,1)
    CGRightRange=(0.50, 0.001, 0)
    CGRightSetting=0 //1
    CGRearRange=( 0.5260, 0.001, 1)
    CGRearSetting=1
    WedgeRange=(0, 0.25, 1)
    WedgeSetting=0
    WedgePushrod=0.0
    GraphicalOffset=(0.0, 0.007, 0.0)
    Undertray00=( 0.1495, 0.000,-1.05)
    Undertray01=(-0.1495, 0.000,-1.05)
    Undertray02=( 0.1495, 0.000, 1.60)
    Undertray03=(-0.1495, 0.000, 1.60)
    Undertray04=( 0.6995, 0.058,-0.50)
    Undertray05=(-0.6995, 0.058,-0.50)
    Undertray06=( 0.6995, 0.059, 0.00)
    Undertray07=(-0.6995, 0.059, 0.00)
    Undertray08=( 0.6995, 0.06, 1.35)
    Undertray09=(-0.6995, 0.06, 1.35)
    Undertray10=( 0.1495, 0.000,-1.3)
    Undertray11=(-0.1495, 0.000,-1.3)
    UndertrayParams=(380000,600,0.6)
    TireBrand=ERF12013_TIRES-Cat2
    FrontTireCompoundSetting=0
    RearTireCompoundSetting=0
    FuelRange=(1,1,155)
    FuelSetting=10
    NumPitstopsRange=(0,1,1)
    NumPitstopsSetting=0
    Pitstop1Range=(0,1,1)
    Pitstop1Setting=0
    Pitstop2Range=(0,1,1)
    Pitstop2Setting=0
    AIMinPassesPerTick=6
    AIRotationThreshold=0.20
    AIEvenSuspension=0.0
    AINegSuspForceMult=0.01
    AISpringRate=0.99
    AIDamperSlow=0.55
    AIDamperFast=0.45
    AIDownforceZArm=0.060
    AIDownforceBias=0.0
    AITorqueStab=(0.9, 0.99, 1.0)
    AIFuelMult=0.98
    AIPerfUsage=(0.990, 0.769, 1.0)
    AITableParams=(39500, 19.5)
    //AICornerRates=(0.85,0.85,0.85,0.85)
    ------------------------------------------
     
  11. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    157
    Likes Received:
    178
    Hi, mate
    It's seems You are using an "old RF1" HDV file.
    I updated Your HDV section with new RF2 parameters, mantaining the weight of the car ( with new inertia values ),
    the position of the fuel tank ( with new, inertia values ), and Fuel setting for pits.
    Furthermore, several other strings for AI have been updated

    [GENERAL]
    Rules=0
    GarageDisplayFlags=174
    Mass=665
    Inertia=(859.6845,934.4285,113.1777)
    FuelTankForceDistrib=(0.4542:Front_Subbody: (0,0,-0.169184),0.5458:Rear_Subbody: (0,0,0.140791))
    FuelTankPosFull=(0,0.28588,-1.31503)
    FuelTankPosEmpty=(0,0.043,-1.39755)
    FuelTankMotion=(662,0.65)
    Notes=""
    Symmetric=1
    DamageFile="ERF12013_DAMAGE-Cat.ini"
    CGHeightRange=(0.205,0,1)
    CGRightRange=(0.50, 0.001, 0)
    CGRightSetting=0 //1
    CGRearRange=( 0.5260, 0.001, 1)
    CGRearSetting=1 // it's the same as 0, since You can't set any other value
    WedgeRange=(0, 0.25, 1)
    WedgeSetting=0
    WedgePushrod=0.0
    GraphicalOffset=(0.0, 0.007, 0.0)
    Undertray00=( 0.1495, 0.000,-1.05)
    Undertray01=(-0.1495, 0.000,-1.05)
    Undertray02=( 0.1495, 0.000, 1.60)
    Undertray03=(-0.1495, 0.000, 1.60)
    Undertray04=( 0.6995, 0.058,-0.50)
    Undertray05=(-0.6995, 0.058,-0.50)
    Undertray06=( 0.6995, 0.059, 0.00)
    Undertray07=(-0.6995, 0.059, 0.00)
    Undertray08=( 0.6995, 0.06, 1.35)
    Undertray09=(-0.6995, 0.06, 1.35)
    Undertray10=( 0.1495, 0.000,-1.3)
    Undertray11=(-0.1495, 0.000,-1.3)
    UndertrayParams=(380000,600,0.6)
    TireBrand=ERF12013_TIRES-Cat2
    FrontTireCompoundSetting=0
    RearTireCompoundSetting=0
    FuelRange=(7.43243,1.01351,211)
    FuelSetting=193
    NumPitstopsRange=(0,1,1)
    NumPitstopsSetting=0
    AIMinPassesPerTick=7
    //AIRotationThreshold=0.20 // obsolete
    //AIEvenSuspension=0.0 // obsolete
    //AINegSuspForceMult=0.01 // obsolete
    //AITorqueStab=(0.9, 0.99, 1.0) // obsolete
    //AISpringRate=0.99 // obsolete
    AISpringRates=(0.1,0.1,0.2,0.2)
    //AIDamperSlow=0.55 // obsolete
    //AIDamperFast=0.45 // obsolete
    AICornerRates=(0.8,0.8,1.5,1.5)
    AIBumpstop=(1,0.9,1,0.9)
    AIDamping=(1,1,1,1)
    AIDownforceZArm=0 // the same as for human with this HDV: 47.4 F-52.60 R
    AIDownforceBias=1 // the same as for human with this HDV: 47.4 F-52.60 R
    //AIDownforceZArm=0.06 // Your setting: 45.6 F-54.40 R
    //AIDownforceBias=0 // Your setting: 46.5 F-53.50 R
    AIFuelMult=-1 // 0.98 it's not needed if HDV is well set
    AIPerfUsage=(-1,-1,-1)
    AITableParams=(-1,-1)
    // AIBodyRollFactor=0.03 // no more used
    // AIBodyRollMaxAngle=4 // no more used
     
    Last edited: Feb 16, 2021
  12. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    Thank you Nicola for your support
    I don't know the new HDV but still have gaps with the old HDV so I never made the jump to the other side.

    I had already tried (AIFuelMult = -1) and it didn't change anything.

    I am looking for what could bring an improvement between these two HDV but I do not see. Do you have an idea.

    I will do some tests with this format of the [GENERAL]
     
  13. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    157
    Likes Received:
    178
    Ok
    Consider that AI may pit also for tyre changing....check if You have for AI in TBC a wrong wear value.
     
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    @Rock If you still use your old HDV, you have to change the Entries
    FuelRange=(1,1,155)
    FuelSetting=10
    These Entries let the Car start with 10 L of Fuel, which is too less.
    Use something like
    FuelRange=(1,1,155)
    FuelSetting=140
    or the Settings from what @Nicola59 has posted.
    That should improve it.
     
  15. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    I checked the AI does not return to the pit for the tires, because they are still good.

    Hi Redapg
    This value is normally only used as the default if no setup is loaded. I think the AI is not using it.

    I will be able to test tomorrow
     
  16. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    In my former Post i have already said that you can assign a Setup to the AI, but you didn't reply to that Post.
    So i think that you didn't do it and so i posted the other Suggestion.
    You could make it much easier for the People that try to help you, if you would write down exactly what you are doing.
    We are no Clairvoyants. ;)
     
  17. EMY

    EMY Registered

    Joined:
    Oct 13, 2010
    Messages:
    93
    Likes Received:
    80
    Sorry guys I would like to simulate the f1 1990-91-92-93 where it did not refuel during the race. I would like the drivers to have little fuel for qualifying and start with full fuel at the start of the race but then they can change the tires if they deteriorate. Is it possible to do this by changing some values in the hdv file?

    E per simulare le stagioni con il rifornimento benzina? (94>00)

    thank you
     
  18. Nicola59

    Nicola59 Registered

    Joined:
    Dec 5, 2014
    Messages:
    157
    Likes Received:
    178
    Ciao Emy
    I just suggested with my example how to set the car without the need to pit for refueling :
    NumPitstopsetting=0
    What is important is to give ad default setup in HDV a fuel quantity that may cover all the events that a player may choose.
    Rock imposed 10 liters in his HDV and this is the problem. For a race car, especially a F1, this is a too low quantity. But, if you impose this level in HDV, AI drivers have always that level, while human driver also for a short race may set the most proper quantity.
    This is the motive for which I suggested a default value of 193 and Redapg 144....They are only “max limit “ value.
    With these values, even if you make a 10 laps race, RF2 will give to AI the correct fuel quantity for 10 laps.
    But here, and Redapg is right, one should also have to see if AI are loading, for a specific Upgrade setup imposed by Rock, a different fuel quantity.
     
  19. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    Hi Emy
    The solution I found is to limit the number of laps allowed for qualifying. It may not be suitable depending on the season of F1 but it may be an option.
    Hi Redapg,
    sorry for not having answered you on this point.
    yes indeed the AI has a setup assigned and I will search with this item.
     
  20. Rock

    Rock Registered

    Joined:
    May 28, 2015
    Messages:
    159
    Likes Received:
    19
    The recommended options changed nothing but I tested an action in the .svm file of my AI.

    In my "Engine" file I have this setting which is very influential for the fuel consumption in my mods:
    EngineBoostRange = (0, 1, 12)
    EngineBoostSetting = 8
    BoostEffects = (xxx, xxx, xxx)

    In the .svm file which is used by my AI there was this setting.
    EngineBoostSetting = 8
    I then changed this setting by:
    EngineBoostSetting = 2
    And now the AI finishes the race but it does not go fast enough in a straight line. So I lifted the rear wing but he went off the track in a certain curve ;-( That it's complicated my friends ....
     

Share This Page