How do I fix incorrect fuel consumption?

Discussion in 'Technical & Support' started by UsedMomo, Sep 9, 2018.

  1. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    Estimates are wrong, leading the AI to pit for fuel unnecessarily. Many 3PA and mod tracks have this issue. I assume it's a text file I have to edit, but I don't know which one.
     
  2. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    I have never figured out how to tell the AI exactly what to do but I do run a weekly private dedi server for ages and get the AI to pit once or twice for tyres or fuel or both on 30 minute races using 3PA and mod circuits.
    I dont believe the tracks have anything to do with it.
    This I do by using the data from rF2 Log Analyzer and the settings in the game.
    What mod, track and length of race are you trying to configure ?
    Number of pitstops required (tyres/fuel or both) and for a dedi server or single player ?
     
  3. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    The fuel consumption parameter is in the track AIW (FuelUse=) To correct it, you get the game estimate (E) for the number of laps you'll get from a full tank, the number of laps (L) you know you'll get from a full tank (either drive til it's empty, or use telemetry / HUD to work it out), and the current Fuel Use value (V).

    Once you've established those, you just need to change the value to V * E / L . (I'm fairly sure I've got the magnitude right, otherwise swap E and L)

    Obviously this requires repackaging the track, but if you're trying to do a proper offline championship (or run a league, for that matter) you're probably used to tweaking and repackaging things anyway, as that's part of being a user of rF2.

    I think many tracks aren't well made for AI, plus with different available engine modes it's hard to make one value fit all.
     
  4. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Thanks @Lazza, did not know this so use a cobbled up system !
    Now I know why I do not know the first thing about modding and will leave this to the mod specialists :D
     
  5. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    It's all single player. Different official cars. Palm Springs road course was the latest one I used. I like to do forty-minute races, which in most cars I can run fine without a stop. I'm not sure if incorrect estimates aren't at least part of it. Some tracks like the ones I mentioned give numbers that are way off on the setup screen. I have to go by what the HUD says I average -- then I alt-tab to open up the calculator in Windows to see how much fuel I need.

    EDIT: @Lazza posted while I was writing my response.
     
  6. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    For more data on AI use, I run rF2 Log Analyzer which will give AI and my fuel use.
    The fuel expected laps HUD data has never worked for me but the fuel usage per lap does.
    But compared to @Lazza correct answer, my one is based upon expectations.
    Though I do agree with the difficulty with varied engines, I run our dedi for F1 mainly but in winter/summer F break, we run the GT3 Pack, so different fuel/tyre settings.
    What mod are you running and do you require pitstops ?
     
  7. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    Not running any mods, just stock or DLC content. No mandatory stops.
     
  8. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    OK, and what stock or DLC content ?
     
  9. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    It was the AMG. All the other GT3 AIs pitted.
     
  10. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Tell me which track version of Palm Beach and I will have a look
     
  11. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    It was the one that uses the oval banking. Thanks.
     
  12. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
  13. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    It's Palm Springs Speedway Road course B
     
  14. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    I found a way to fix it. I just start a race, immediately retire to the pits, and let the AI run the race in accelerated time. When the race is over I restart the event and the AI knows the correct amount of fuel to use. I'm not sure if this must be done before each race; I haven't tested that yet.
     
  15. Christos Segkounas

    Christos Segkounas Registered

    Joined:
    Feb 14, 2017
    Messages:
    427
    Likes Received:
    381
    Interesting.
    If that's the case don't they learn the correct about from running a bit of practice or quali?
     
  16. UsedMomo

    UsedMomo Registered

    Joined:
    Jul 11, 2017
    Messages:
    196
    Likes Received:
    139
    I haven't tested that. I always skip those. When I practice on my own, outside of weekends, I notice the AI will always pit after doing a handful of laps at a time. I think that they may need to run until they're actually out of fuel. I could be wrong.
     

Share This Page