1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Information for Customizing AI drivers in AMS2 V1.3

Discussion in 'Automobilista 2 - General Discussion' started by gian, Nov 19, 2021.

  1. BazzaLB

    BazzaLB Well-Known Member

    Joined:
    May 4, 2020
    Messages:
    438
    Likes Received:
    299
    Is there an AI setting in the XML file that deals with the magical skill boost an AI gets after they have been overtaken? I follow some AI for a couple of laps (not fighting for position), find them ridiculously slow in certain corners with no-one in front of them but the moment I overtake, they magically can take these exact same corners so much faster even then able to over take me on the outside.

    Is there a setting in the XML file I can set to zero to completely eliminate this behaviour? Its frustrating enough that they all seem to be comparatively faster in straights and slow in corners.
     
    • Agree Agree x 2
    • Funny Funny x 1
  2. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    211
    Likes Received:
    177
    Agreed. I think this behavior is hard coded. It's actually pretty cool that it does this IMO, and it's less exaggerated now than it was in earlier builds, but I feel it still needs fine tuning to make it a little more realistic. Also, it would be cool if the AI made the occasional mistake when pushing too hard to retake.
     
  3. stlutz

    stlutz Active Member

    Joined:
    Feb 10, 2021
    Messages:
    193
    Likes Received:
    93
    Some people (including me) used to complain about "rage turbo mode" where you'd pass an AI car, they'd drop 5 seconds back, and then in the space of a half a lap they'd make up that gap and be right behind you spoiling for a fight. I haven't seen that for quite a while.

    The AI don't give up when they get passed--I don't either. But I'm not experiencing any magical boost, at least in the cars I've been playing the last month (GT 3/4, Stock Cars, F-Classic mostly).
     
    • Agree Agree x 1
  4. Dan44AFCB

    Dan44AFCB Member AMS2 Club Member

    Joined:
    Apr 27, 2018
    Messages:
    96
    Likes Received:
    26
    What is the xml name for the Porsche Carrera Cup? I haved tried Porsche_991_GT3 but it doesn't work. It wasn't listed in the original xml names on the first post.

    Thanks

    Edit, I'm a fool, its Carrera Cup.xml!
     
  5. Blaine7

    Blaine7 New Member

    Joined:
    Jan 5, 2022
    Messages:
    14
    Likes Received:
    11
    If anybody is interested, I have uploaded the first video for the championchip with the custom AI mentioned earlier:
     
    • Like Like x 4
  6. Hal

    Hal New Member

    Joined:
    Jan 8, 2022
    Messages:
    12
    Likes Received:
    3
    when the sim assigns a qualifying skill rating to an ai driver does that depend in any way on the driver's race skill rating or is it completely independent ?
     
  7. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    211
    Likes Received:
    177
    When the sim does it, I'd guess the race skill and Q skill are closely correlated. With custom AI you can adjust it however you want.
     
  8. Hal

    Hal New Member

    Joined:
    Jan 8, 2022
    Messages:
    12
    Likes Received:
    3
    yeah that's what i was guessing. i was making an ai xml and wasn't sure how to assign the qualifying skill. i think i'll just use an rng to produce a figure +/- a smallish amount. it's really great that we can do this especially for people like me who's main interest is in racing the ai.
     
    • Agree Agree x 1
    • Informative Informative x 1
  9. Dan44AFCB

    Dan44AFCB Member AMS2 Club Member

    Joined:
    Apr 27, 2018
    Messages:
    96
    Likes Received:
    26
    Maybe I'm a little too obsessed with AI levels, but for each series and AI xml I create, I work out the average qualifying positions and average race finishing positions for each driver, then rank them and assign a level based on this. The consistency value is interesting and I've been playing with various statistical formulas to find a good way to produce one. Latest I've used is variation, which basically looks at how wide range a drivers finishing position may be. Using this, JV is most consistent with least position variation, whereas Barichello has highest variation, so therefore give him lowest consistency.

    Screenshot_20220108-232718_Sheets.jpg
     
    • Like Like x 2
    • Informative Informative x 1
  10. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    211
    Likes Received:
    177
    That's pretty cool!
     
  11. stlutz

    stlutz Active Member

    Joined:
    Feb 10, 2021
    Messages:
    193
    Likes Received:
    93
    For the consistency/stamina values, has it been discussed what the ranges are that are used by the default AI? I've done some AI files where I've just used random numbers between 0 and 1 for these values, and I can really mess someone's results up with low values in those fields even though they are otherwise higher-skill. It's obvious to me that I should be usinig a narrower range--didn't know what others or the default suggest would be a good ones to use.
     
  12. Luciano Santos Filho

    Luciano Santos Filho Active Member

    Joined:
    Sep 7, 2017
    Messages:
    143
    Likes Received:
    42
    Well this makes me feel that maybe I am a normal person :D. I did not get to this point, but certainly wanted to do it, just had not the time. Some result seems strange though. IDK howyou exactly you calculated this, but one thing I would consider is that car problems may lead to bad results that are not related to the driver consistency. Jos Verstapen ahead of Rubens and Hakkinen, for instance, looks a bit strange.
     
  13. Dan44AFCB

    Dan44AFCB Member AMS2 Club Member

    Joined:
    Apr 27, 2018
    Messages:
    96
    Likes Received:
    26
    I didn't include any DNFs, just cars classified. Remember this is just for the consistency value. Hakkinen still has the 4th best race skill, whereas Verstappen has 20th best.
    In my experience, this consistency value certainly helps have a less predictable finishing order over a season.

    I do feel sorry for Rubens though. After strong qualifying, he nearly always plummets down the field during the race!
     
    • Funny Funny x 2
  14. Eric Rowland

    Eric Rowland Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    401
    Likes Received:
    645
    [​IMG]

    just kidding.... I think the world of you Rubens!
     
    • Funny Funny x 3
  15. stlutz

    stlutz Active Member

    Joined:
    Feb 10, 2021
    Messages:
    193
    Likes Received:
    93
    The opening post defines consistency as:

    consistency: Low consistency value means the driver skill can be randomly reduced a bit.

    I've realized I'm not clear if this refers to lap-by-lap consistency or race-by-race?
     
    • Like Like x 2
  16. Dan44AFCB

    Dan44AFCB Member AMS2 Club Member

    Joined:
    Apr 27, 2018
    Messages:
    96
    Likes Received:
    26
    Good point. I always assumed it was on a lap by lap basis, but if it is race by race, could be why Rubens has so many shockers! Laptimes in a race may confirm.
     
  17. Blaine7

    Blaine7 New Member

    Joined:
    Jan 5, 2022
    Messages:
    14
    Likes Received:
    11
    I adjusted my AI file a bit, the gap of 0.04 between each driver was a bit to large, I was soon lapping drivers. Put it down to increments of 0.02
     

    Attached Files:

    • Like Like x 2
  18. Blaine7

    Blaine7 New Member

    Joined:
    Jan 5, 2022
    Messages:
    14
    Likes Received:
    11
    Did anybody experience exceptionally slow AI in the wet? I was racing at 82 AI difficulty with the file from above in Goiânia. In the dry, I had a hard time keeping up, but once the track became wet, I was building a gap of 10 seconds and more. It was especially noticable on the straights. The AI was slowing down, whenever they hit a puddle. Any thoughts?
     
  19. Luciano Santos Filho

    Luciano Santos Filho Active Member

    Joined:
    Sep 7, 2017
    Messages:
    143
    Likes Received:
    42
    Hi there Blaine7. I think this should go in the thread about AI performance so Reiza can consider it. Overall I haven't tried yet but heard that AI is quite inconsistent on the wet. Sometimes too fast sometimes too slow
     
    • Like Like x 1
    • Agree Agree x 1
  20. Blaine7

    Blaine7 New Member

    Joined:
    Jan 5, 2022
    Messages:
    14
    Likes Received:
    11
    Cheers, I have just done so.
     

Share This Page