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

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

  1. F1Aussie

    F1Aussie Well-Known Member AMS2 Club Member

    Joined:
    Mar 21, 2016
    Messages:
    2,423
    Likes Received:
    673
    Oh I see, thanks.
     
  2. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    237
    Likes Received:
    197
    Here's a customized version of eSTee3's excellent google sheet for generating AI values and associated .xml files. Thanks also go to Romeo Foxtrot for his updated liveries list. I think everything is here and working correctly.

    I've implemented a set of somewhat 'clunky' but seemingly effective additions that let you create AI grids in various skill groupings (amateur, semi pro and pro, as well as a divisional scheme suited to promotion / relegation league setups). The goal is to have a logical association between the different AI parameters for each driver. For example, aggressive drivers will tend to wear their tires more quickly and be less consistent. Race and quali speeds are correlated, as are start skills and race skills, but with enough random variation to make things interesting. Instructions for use are included in a tab at the bottom of the sheet. Make a copy of the sheet to be able to edit. Warning: my formulas very occasionally create a value outside the allowed range. In this case, either manually edit the parameter, or ignore it (that value will then default to the stock value set by Reiza for that livery / parameter).

    Enjoy!

    AMS2 AI Creation Tool V2.21
     
    Last edited: Feb 21, 2022
    • Like Like x 6
  3. Andrew Wiggin

    Andrew Wiggin New Member

    Joined:
    Feb 20, 2022
    Messages:
    1
    Likes Received:
    0
    Any update on having custom A.I in multiplayer? There was mention of it a couple months ago but I haven't seen any other info since then.
     
  4. spikerjack

    spikerjack Member

    Joined:
    Mar 30, 2018
    Messages:
    65
    Likes Received:
    78
    The Formula USA Gen3 export doesn't seem to work properly, the others are fine.
     
    • Informative Informative x 1
    • Useful Useful x 1
  5. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    237
    Likes Received:
    197
    Thanks, I'll take a look.

    EDIT: Fixed.
     
    Last edited: Feb 21, 2022
    • Like Like x 2
  6. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    95
    Likes Received:
    128
    Starting on AMS2 Beta V1.3.3.7, now you can optionally override AI driver values for specific tracks. See example below:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <custom_ai_drivers>
        <driver livery_name="Ministry Motorsport #51">
            <name>John Smith</name>
            <country>USA</country>
            <race_skill>0.75</race_skill>
            <qualifying_skill>0.823</qualifying_skill>
            <aggression>0.3</aggression>
            <defending>0.51</defending>
            <stamina>0.998</stamina>
            <consistency>0.2</consistency>
            <start_reactions>0.36</start_reactions>
            <wet_skill>0.25</wet_skill>
            <tyre_management>0.85</tyre_management>
            <blue_flag_conceding>0.53</blue_flag_conceding>
            <weather_tyre_changes>0.12</weather_tyre_changes>
        </driver>
        <driver livery_name="Ministry Motorsport #51" tracks="Azure_Circuit_2021,Long_Beach,Salvador_Street_Circuit">
            <race_skill>0.99</race_skill>
            <qualifying_skill>0.998</qualifying_skill>
            <consistency>1.0</consistency>
            <wet_skill>0.95</wet_skill>
            <blue_flag_conceding>0.75</blue_flag_conceding>
            <stamina>1.0</stamina>
        </driver>
        <driver livery_name="Ministry Motorsport #51" tracks="Jacarepagua_OVAL">
            <race_skill>0.5</race_skill>
            <tyre_management>0.4</tyre_management>
            <defending>0.0</defending>    
            <stamina>0.9</stamina>
            <aggression>0.0</aggression>
        </driver>
        <driver livery_name="ABS Racing #14">
            <name>William Shakespeare</name>
            <country>GBR</country>
            <race_skill>0.12</race_skill>
            <qualifying_skill>0.0</qualifying_skill>
            <consistency>1.0</consistency>
        </driver>
    </custom_ai_drivers>
    In the above example, you can see there are 3 driver entries for the same livery (Ministry Motorsport #51).

    The first entry doesn't contain a tracks list, so it means those are the base values of the driver of that livery on any tracks. For example, on any tracks, his race_skill will be 0.75.

    The second entry contains a tracks list with comma separated track names ("Azure_Circuit_2021,Long_Beach,Salvador_Street_Circuit"), so it means the driver of that livery has some specific personality values to those 3 tracks. So on Azure, Long Beach and Salvador, his race_skill will be 0.99 instead of 0.75, for example. The fields that arent present will still use the base value of that driver: for example, aggression isnt present, so it will use his base value for aggression on any tracks which is 0.3.

    The third entry contains a tracks list with only one track name ("Jacarepagua_OVAL"), so it means the driver of that livery has some specific personality values to this track. So on Jacarepagua_OVAL track, his race_skill will be 0.5 instead of 0.75, for example. The fields that arent present will still use the base value of that driver: for example, qualifying_skill isnt present, so it will use his base value for qualifying_skill on any tracks which is 0.823.

    You can add as many track overrides as you want, for as many drivers (liveries) as you want.

    The full list of track names is in the spoiler below:

    Adelaide_Historic
    Adelaide_Modern
    Azure_Circuit_2021
    Bathurst_2020
    BrandsHatch_GP
    BrandsHatch_Indy
    Brasilia_Full
    Brasilia_Outer
    Buskerud_Long
    Buskerud_Short
    CadwellPark
    CampoGrande1
    Cascavel2
    Cleveland_GP
    CuritibaInternacional
    Curitiba_outer
    CurveloLong
    CurveloShort
    Daytona_Road_Course
    Daytona_Nascar_Road_Course
    Donington_GP
    Donington_Nat
    Cascais
    Cascais_Alternate
    GoianiaMixed
    GoianiaOuter
    GoianiaShort
    CopaSaoPauloStage2
    GranjaVianaKart101
    GranjaVianaKart102
    GranjaVianaKart121
    Guapore
    Hockenheim_GP
    Hockenheim_ShortA
    Hockenheim_ShortB
    Hockenheim_National
    Hockenheim_2001
    Hockenheim_1988
    Hockenheim_1988_short
    Hockenheim_1977
    Ibarra2
    Ibarra_Reverse
    Imola_GP_2018
    Imola_GP_1972
    Imola_GP_1988
    Imola_GP_2001
    Interlagos_GP
    Interlagos_SCB
    Interlagos_Historic
    Interlagos_Historic_Outer
    InterlagosKart1
    InterlagosKart2
    InterlagosKart3
    Jacarepagua_Historic
    Jacarepagua_2005
    Jacarepagua_OVAL
    Jacarepagua_SCB
    Jacarepagua_SHORT
    Jerez_GP2019
    Jerez_Standard
    Kansai_GP
    Kansai_Classic
    Kansai_East
    Kansai_West
    Kyalami_2019
    Kyalami_Historic
    Laguna_Seca_2020
    Londrina_short
    Londrina_long
    LondrinaKart1
    LondrinaKart2
    Long_Beach
    Montreal_Historic
    Montreal_Modern
    Monza_1971_10k
    Monza_1971_10knc
    Monza_1971
    Monza_1991
    Monza_1971_Junior
    Monza_2020
    Monza_2020_Junior
    Nordschleife_2020
    Nordschleife_2020_24hr
    Nurb_GP_2020
    Nurb_GP_2020_Veedol
    Nurb_GP_2020_Sprint
    Nurb_GP_2020_Sprint_S
    Ortona1
    Ortona2
    Ortona3
    Ortona4
    OultonPark_International
    OultonPark_Classic
    OultonPark_Fosters
    OultonPark_Island
    Road_America_RC
    Road_America_RCB
    Salvador_Street_Circuit
    SantaCruzDoSul
    Silverstone_1975
    Silverstone_1975_No_Chicane
    Silverstone_1991
    Silverstone_2001
    Silverstone_2001_International
    Silverstone_2001_National
    Silverstone_GP
    Silverstone_Intl_2019
    Silverstone_Natl_2019
    Snetterton_100
    Snetterton_200
    Snetterton_300
    Spa_Francorchamps_1993
    Spa_Francorchamps_2020
    Speedland1
    Speedland2
    Speedland3
    Speedland4
    Spielberg_Historic
    Spielberg_Vintage
    Spielberg_Modern
    Spielberg_Short
    Taruma_Internacional
    Taruma_Chicane
    VeloCitta1
    VeloCittaTD
    VeloCittaClubDay
    Velopark_2010
    Velopark_2017
    Virginia_Full
    Virginia_Grand
    Virginia_North
    Virginia_Patriot
    Virginia_South
    Watkins_Glen_GP
    Watkins_Glen_GPIL
    Watkins_Glen_S
    Watkins_Glen_SIL

    This can already be tested in AMS2 Beta V1.3.3.7 by those who have access. When it gets released on main steam build (not beta), I will move this info to the first post of this thread.
     
    Last edited: Feb 24, 2022
    • Like x 8
    • Winner x 5
    • Informative x 2
    • Friendly x 1
    • Useful x 1
    • Creative x 1
  7. Marg

    Marg Active Member

    Joined:
    Dec 7, 2021
    Messages:
    127
    Likes Received:
    49
    Great feature !!! CART driver B.Herta was fantastic in Laguna Seca, but weaker in Michigan oval!
    But old F1 point system 9-6-4-3-2-1 and CART's - can those be added to championship mode?
     
    • Agree Agree x 1
  8. Dhansi09

    Dhansi09 Active Member AMS2 Club Member

    Joined:
    Dec 31, 2020
    Messages:
    83
    Likes Received:
    125
    It would be great to have a (external) program to configure the AI files.

    that excel sheet is great but still hard to understand/ work with for people who do not work with excel or even editing files
     
  9. sampopel

    sampopel Active Member AMS2 Club Member

    Joined:
    Mar 31, 2020
    Messages:
    339
    Likes Received:
    150
    Neat solution, many thanks for implementing that. Looking forward to testing it.

    Does this mean that consistency reverts to being only a "per lap" parameter?
     
  10. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    237
    Likes Received:
    197
    Have you tried to create a custom ai grid with the google sheet? It's pretty straight forward. Send me a pm if there's anything you don't understand and I'll try to help.
     
    • Like Like x 2
    • Friendly Friendly x 1
  11. Xela1

    Xela1 BANNED BANNED

    Joined:
    Jul 2, 2020
    Messages:
    203
    Likes Received:
    182
    Super V8 AI custom name. To race with AI custom GT3 machnines in multi class races. Almost all original Names. You can edit the right flag, skills, and and and .....
    You need the apropriate skin mod
     

    Attached Files:

  12. Dhansi09

    Dhansi09 Active Member AMS2 Club Member

    Joined:
    Dec 31, 2020
    Messages:
    83
    Likes Received:
    125
    Yes, I already did that for some classes. Works fine!

    I just wanted to say that its still a lot more easier if there would be a program with a UI where you just use some sliders to change the values. But for sure „we need a program“ is easier to say than to create something.

    Please do not misunderstand. The sheet is great and helpful and also applicable for me.
    But I think there are still many users who are very helpless when it comes to customizing the custom AI.
     
    • Agree Agree x 3
    • Like Like x 2
  13. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    95
    Likes Received:
    128
    No, the consistency parameter continues to have a per weekend and per lap effects, as even on a specific track a driver can have good and bad weekends.

    But I agree its still also worth and realistic to have two separate consistency parameters, one per weekend and other per lap
     
    • Like Like x 6
  14. Harry H

    Harry H Active Member AMS2 Club Member

    Joined:
    Mar 25, 2020
    Messages:
    237
    Likes Received:
    197
    I think that might come later, perhaps as part of a 'Career' mode. Anyhow, glad you're able to use the sheet for now
     
    • Like Like x 3
  15. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    95
    Likes Received:
    128
    This feature is already available in AMS2 V1.3.4.0. I moved this info to the first post of this thread.
     
    • Like Like x 3
    • Winner Winner x 1
    • Informative Informative x 1
  16. br1x92

    br1x92 Active Member

    Joined:
    Aug 1, 2021
    Messages:
    329
    Likes Received:
    146
    Thanks for this, will be a lot of work but a lot of fun tinkering around with.

    Quick question, shouldn't this be somehow be noted in the official changelog as well? Just so more people see the custom AI is still being improved on and more people try it?
     
    • Agree Agree x 2
    • Like Like x 1
  17. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    95
    Likes Received:
    128
    Indeed, we forgot to mention it in the patchnotes, we added it to the changelog now, thanks.
     
    • Like Like x 3
  18. Luciano Santos Filho

    Luciano Santos Filho Active Member

    Joined:
    Sep 7, 2017
    Messages:
    148
    Likes Received:
    44
    And please, if there is something we can do to fix the refueling by the AI, please let us know as well :rolleyes:

    I am getting crazy because every time I race the AI always the same drivers are doing some nuts strategies, pitting one thousand times.
     
    • Agree Agree x 3
  19. deadly

    deadly Well-Known Member

    Joined:
    Jul 8, 2016
    Messages:
    1,519
    Likes Received:
    532
    This is my Custom AI file for CART 1995 for game version 1.3.4.0.
    As there are only 23 cars within the pack right now, all wearing fantasy liveries, I did not care much about the engines/bodyworks drivers had in real life (sorry).
    Caution: This file might not work anymore when there is a further update to the game.
    Feel free to adjust it to your liking.
     

    Attached Files:

    • Like Like x 1
    • Informative Informative x 1
  20. Tinico

    Tinico New Member

    Joined:
    Mar 12, 2022
    Messages:
    4
    Likes Received:
    1
    Hi guys,

    I tried everything but I'm not able to create a championship with these 20 AI I've created.
    Every time I create a SuperV8 championship it seems to randomly choose between some of my created AI and some concurrent from the game although I select 20 AI (same number as the ones in the file).

    BTW I never suceed to use Harry or Estee Excel sheet so I had to create this one manually :/
    In Harry one I was not able to use the "Create XML Here" tab, is there any macro to launch ? I'm not able to write SuperV8.xml in cell A2/A3, the file does not allow me (and it's not in the dropdown list as well) to and there is nothing in the green cells when I copy them.

    Do you know why I'm not able to have my 20 custom AI in my championship ?

    Thanks guys !
     

    Attached Files:

Share This Page