Ai don't finish the race

Discussion in 'Technical & Support' started by rixracer, Aug 12, 2018.

  1. rixracer

    rixracer Registered

    Joined:
    Nov 5, 2011
    Messages:
    35
    Likes Received:
    4
    When I run a full-length F1 race, offline, with a full field of 21 AI cars, their ability at the highest settings, they quit the race about halfway through. Is there a setting i can adjust to keep this from happening?
     
  2. ADSTA

    ADSTA Registered

    Joined:
    Nov 19, 2011
    Messages:
    998
    Likes Received:
    614
    In the Standings screen does it say why they "quit" eg, fuel, damage?
    I have never heard of an AI vehicle quitting.
     
  3. rixracer

    rixracer Registered

    Joined:
    Nov 5, 2011
    Messages:
    35
    Likes Received:
    4
    I'll try again, to be sure, but i think it just said dnf.
     
  4. ADSTA

    ADSTA Registered

    Joined:
    Nov 19, 2011
    Messages:
    998
    Likes Received:
    614
    If they weren't in a Mercedes or Ferrari they may have decided there were better things to do. :D
     
  5. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    5,328
    Likes Received:
    1,532
    Which F1 mod?
     
  6. rixracer

    rixracer Registered

    Joined:
    Nov 5, 2011
    Messages:
    35
    Likes Received:
    4
    Ok, ran another full race, most that didn't finish were out of fuel, 1 dnf. Is there a line in the json's or elsewhere where i can make sure they take a full tank of fuel (120L)? I know you can force Ai to use a specified setup. Or maybe this has something to do with the league mod, where the originators didn't concern themselves with singleplayer offline use...
     
  7. ADSTA

    ADSTA Registered

    Joined:
    Nov 19, 2011
    Messages:
    998
    Likes Received:
    614
    I have no idea if this works but you can only try.
    In your player.JSON there are these two options:
    "Fixed AI Setups":false,
    "Fixed AI Setups#":"whether AI use the fixed setups, only applicable if \"Fixed Setups\" is also enabled (and can be used in single player to have the AIs use your favorite setup)",
    "Fixed Setups":false,
    "Fixed Setups#":"use fixed setups specified in UserData\\<plr>\\FavoriteAndFixedSetups.gal (based on track and vehicle class)",

    Change both of them to :true,
    I then suppose you make a setup with a full tank and put that in the FavoriteAndFixedSetups.gal. What that last step involves I have no idea. :oops:

    There is always the easier but probably the least desirable option, turn fuel usage off in the race setup options.
     
  8. rixracer

    rixracer Registered

    Joined:
    Nov 5, 2011
    Messages:
    35
    Likes Received:
    4
    I do want the fuel load to be a factor. I'll figure out how to load the setups. Thanks
     
    Last edited: Aug 13, 2018
    ADSTA likes this.
  9. JimmyT

    JimmyT Registered

    Joined:
    Jan 16, 2012
    Messages:
    303
    Likes Received:
    141
    Is fuel still calculated for the AI by using the fuel usage in the track AIW file?
    If this is still the case then individual mods will calculate differently (Y/N I'm not a modder so guessing on that)
    Try on a couple of different tracks and see if the cars finish on any of them. Then maybe try a couple of different mods on the track you're having trouble on and see what happens.
    Let us know how you get on. :)
     
  10. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    490
    Likes Received:
    233
    Go to this site http://meetme.bplaced.net/rF2_onlineTools/ and scroll to the bottom of the site.
    There you'll find a tutorial about how to use fixed setups.
     
    ADSTA likes this.
  11. Aceking

    Aceking Registered

    Joined:
    Feb 21, 2013
    Messages:
    20
    Likes Received:
    3
    Which track and car mod so we can test? If it's a third-party track my best guess would be that the track modder either forgot or didn't properly calculate fuel usage when working on the track's AIW. Over the years i fixed a few tracks with similar issues!
     
  12. rixracer

    rixracer Registered

    Joined:
    Nov 5, 2011
    Messages:
    35
    Likes Received:
    4
    I reset my player file and that seems to have fixed it
     
  13. Aceking

    Aceking Registered

    Joined:
    Feb 21, 2013
    Messages:
    20
    Likes Received:
    3
    Editing the AI settings in your PLR file can sometimes produce bad outcomes or your file got corrupted. Good to hear you resolved it.
     

Share This Page