QUESTION AI fuel usage problems?

Discussion in 'Car Models | Physics' started by rageman002, Oct 28, 2021.

  1. rageman002

    rageman002 New Member

    Joined:
    Oct 28, 2021
    Messages:
    6
    Likes Received:
    1
    I have a car that whenever I drive it, everything is fine, I can fill up the fuel tank and everything works as expected.

    Every single AI that loads with it has a completely empty fuel tank, and as a result, they pit every lap without fault, and then go back out, again with an empty fuel tank. The only fix is to turn fuel usage completely off, but I would rather fix the issue.

    My car.ini has the following:

    [FUEL]
    CONSUMPTION=0.0080078 ; fuel consumption. In one second the consumption is (rpm*gas*CONSUMPTION)/1000 litres
    FUEL=71 ; default starting fuel in litres
    MAX_FUEL=71 ; max fuel in litres

    There is nothing that seems to effect fuel usage in ai.ini, this is literally the only thing that I can see. Does anyone have an idea? It's not the track either, I tested it on a Kunos track and other cars work fine.

    I'm out of ideas here.
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    608
    Likes Received:
    220
    fuel_cons.ini

    [FUEL_EVAL]
    KM_PER_LITER=1.405007

    upload_2021-10-29_13-29-30.png
     

    Attached Files:

  3. rageman002

    rageman002 New Member

    Joined:
    Oct 28, 2021
    Messages:
    6
    Likes Received:
    1
    Wow I had no idea that was a thing, any clue on how to calculate the proper value for it? Or just trial and error?
     
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    608
    Likes Received:
    220
    If thats true, then its consumption *1000, am I right? I might not!
    upload_2021-10-30_1-59-17.png
     
  5. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    42
    Likes Received:
    2
    that formula, seems not clear at all:
    rpm*gas*CONSUMPTION)/1000 litres
    example rpm
    =10000
    CONSUMPTION=0.0080078
    wthat is gas parameter? 1=100% 0.5=50% and so on ? or what I found the value of gas?
    again
    if I use this formula the CONSUMPTION parameter I must delete?
    [FUEL_EVAL]
    KM_PER_LITER=1.405007
    Thanks
    Giovanni
     
  6. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    42
    Likes Received:
    2
    Someone has idea o suggest for upper post ?
     
  7. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    use smart consumption with CSP
     
  8. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    in the file "car.ini" add extended like this:
    [HEADER]
    VERSION = extended-2

    and in the "engine.ini" file add these:
    RESPONSE_TIME = 0.03 ;response delay in seconds
    MECHANICAL_EFFICIENCY = 0.85 ; % / 100 - should match "transmission losses" multiplier
    IDLE_THROTTLE = 0.04 ; % / 100 - how much throttle is used to reach idle
    IDLE_CUTOFF = 1800 ; revs at which the throttle ceases to idle

    [FUEL_CONSUMPTION]
    THERMAL_EFFICIENCY_LUT = ; torque_ratio | thermal efficiency of the motor
    THERMAL_EFFICIENCY = 0.35 ; lowest value = increased consumption
    FUEL_LHV = 43 ; lower calorific value of fuel - MJ / kg
    TURBO_EFFICIENCY = 0.8 ; optional: how efficient the turbo is at generating power from more fuel
    LOG_FUEL_FLOW = 0 ; if 1, the current flow rate will be recorded in custom_shaders_patch.log

    naturalmente devi usare ContentManager e CSP
     
    giovanni pasolini likes this.
  9. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    42
    Likes Received:
    2
    Thanks Denis370.
    Something are clear some not:

    [HEADER]
    VERSION = extended-2

    Clear
    If I Use in engine.ini file example redd mark value
    [FUEL_CONSUMPTION]
    THERMAL_EFFICIENCY_LUT = 1 ; torque_ratio | thermal efficiency of the motor
    THERMAL_EFFICIENCY = 0.35 ; lowest value = increased consumption
    FUEL_LHV = 43 ; lower calorific value of fuel - MJ / kg 44...46 seems correct
    TURBO_EFFICIENCY = 0.8 ; 0.8 =80% optional: how efficient the turbo is at generating power from more fuel
    LOG_FUEL_FLOW = 0 ; if 1, the current flow rate will be recorded in custom_shaders_patch.log

    1. If I use in cars.ini the parameters under [FUEL_CONSUMPTION] the overall consumption of car will depend on the values indicated OK ?
    2. If a driver not use (or not has) Custom shader patch his cars has not any consumption ?
    3. If I use parameter under [FUEL_CONSUMPTION] the CONSUMPTION=X.XXXX parameter I must be delete?
    4. If I use parameter under [FUEL_CONSUMPTION] the pts 5 and 6 below must be delete
    5. [FUEL_EVAL]
    6. KM_PER_LITER=1.405007
    Thank you for your contribution and for your patience

    Giovanni



     
  10. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    1. yes, I would say that after the consumption values of the car depend on those scripts.
    2. now everyone uses ContentManager and CSP with AC, so I think it's not a problem, those who don't use CM will probably have the standard kunos consumption (I think).
    3. You don't have to delete any of the old consumer scripts, you can leave them, I left them and just added the new ones.
    4. you don't have to delete anything, I haven't deleted anything.
     
  11. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    THERMAL_EFFICIENCY = 0.35 is the value that determines the amount of consumption, 0.35 is the default value and usually goes very close to the optimal consumption of the car.
    Nevertheless, you can play with this value to find the right consumption or that you want.
    If you lower the value, for example THERMAL_EFFICIENCY = 0.30, the consumption increases.
    I usually do it like this to test consumption:
    I take a car of approximately the same weight and power, I do 5/10 laps with constant driving on a track and I note the consumption.
    Then I do the same thing with the car where I integrated the scripts for consumption, at the end of the session I see if I have to slightly adjust the THERMAL_EFFICIENCY = 0.35 value or if I leave it as default.
     
  12. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    42
    Likes Received:
    2
    Hi Denis,
    the comsumption seems = 0.00, no CONSUMPTION nothing
    Suggest ?
    Thanks
    Giovanni
    I used in engine.ini
    [FUEL_CONSUMPTION]
    THERMAL_EFFICIENCY_LUT = 1 ; torque_ratio thermal efficiency of the motor
    THERMAL_EFFICIENCY = 0.35 ; lowest value = increased consumption
    FUEL_LHV = 43 ; lower calorific value of fuel - MJ / kg 44...46 seems correct
    TURBO_EFFICIENCY = 0.8 ; 0.8 =80% optional: how efficient the turbo is at generating power from more fuel
    LOG_FUEL_FLOW = 1 ;0 if 1, the current flow rate will be recorded in custom_shaders_patch.log

    and
    in the file "car.ini" add extended like this:
    [HEADER]
    VERSION = extended-2
     
  13. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    you have to leave the LUT value empty as I had put it in example ..
    try to leave the LUT value blank, and the calculation will be done anyway, also because if you put incorrect LUTs, when or if you compare the data.acd folder it will give you problems.
    [FUEL_CONSUMPTION]
    THERMAL_EFFICIENCY_LUT =
     
  14. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    42
    Likes Received:
    2
    Thanks I Will try LUT blank
    I use now fo esperimenti data folder
    but I have not error on data folder
    many thanks

    Giovanni
     
  15. rageman002

    rageman002 New Member

    Joined:
    Oct 28, 2021
    Messages:
    6
    Likes Received:
    1
    I found that the FUEL_EVAL field can be filled using the "AI" app, there's a "save cons" button in there, I just let the AI go for a couple laps, hit that button, and then pack the data of the car and the fuel eval is good enough.

    As for the CONSUMPTION field, I came up with a generic formula to guesstimate what it should be, it's nowhere near perfect, but according to Kunos values, it gets close enough *most of the time*
    (<square root of engine size in cc>"*(<square root of car weight in kg>/1000000))*3

    Some tweaking is probably required, like I said, not perfect.
     
  16. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    Hello..
    the CONSUMPTION field do you mean the default in the car.ini file in the [FUEL] section?
    while the FUEL_EVAL field where do you mean?
     
  17. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    ok I understand, but I don't think that the improved consumption with CSP takes into account the CONSUMPTION and FUEL_EVAL values, you should do some tests and understand if you take them into account or not
     
  18. rageman002

    rageman002 New Member

    Joined:
    Oct 28, 2021
    Messages:
    6
    Likes Received:
    1
    Wait, CSP messes with fuel consumption? I was not aware of that! Is there a way to toggle it on/off? I'd like to test the difference!
     
  19. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17

    "The way to activate the improved consumption with CSP is what I have indicated to you here"
     
  20. denis370

    denis370 Member

    Joined:
    Jun 25, 2018
    Messages:
    143
    Likes Received:
    17
    once consumption has been activated with CSP, the [FUEL_EVAL] value will no longer have any influence on consumption, I did the tests today.
    Consumption will be calculated differently and more precisely by CSP
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice