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. gian

    gian Administrator Staff Member

    Joined:
    Mar 16, 2020
    Messages:
    23
    Likes Received:
    32
    To override AI driver names, personalities and nationalities, user can create a .xml file named with the vehicle class name into the UserData\CustomAIDrivers\ folder of his Automobilista 2 steam folder (usually it is C:\Program Files (x86)\Steam\steamapps\common\Automobilista 2\UserData\CustomAIDrivers\).

    For reference, all vehicle class names can be found in the spoiler below:

    ARC_Cam.xml
    Carrera Cup.xml
    Cat620R.xml
    Cat_Academy.xml
    Cat_Superlight.xml
    Cat_Supersport.xml
    CopaClassicB.xml
    CopaClassicFL.xml
    CopaFusca.xml
    CopaTruck.xml
    CopaUno.xml
    DPI.xml
    F-3.xml
    F-Classic_Gen1.xml
    F-Classic_Gen2.xml
    F-Classic_Gen3.xml
    F-Reiza.xml
    F-Retro_Gen1.xml
    F-Retro_Gen2.xml
    F-Trainer.xml
    F-Trainer_A.xml
    F-Ultimate.xml
    F-USA_Gen2.xml
    F-V10_Gen1.xml
    F-V10_Gen2.xml
    F-V12.xml
    F-Vee.xml
    F-Vintage_Gen1.xml
    F-Vintage_Gen2.xml
    G40Cup.xml
    G55Supercup.xml
    GT1.xml
    GT3.xml
    GT4.xml
    GT5.xml
    GTE.xml
    GTOpen.xml
    Group A.xml
    Group C.xml
    Hot Cars.xml
    Kart125cc.xml
    KartGX390.xml
    KartRental.xml
    KartShifter.xml
    LancerCup.xml
    MiniChallenge.xml
    Montana.xml
    OldStock.xml
    Opala79.xml
    Opala86.xml
    P1.xml
    P2.xml
    P3.xml
    P4.xml
    Procar.xml
    SprintRace.xml
    StockCar99.xml
    StockCarV8.xml
    StockCarV8_2020.xml
    StockCarV8_2021.xml
    Street.xml
    SuperKart.xml
    SuperV8.xml
    TC60S.xml
    TC60S2.xml
    TC70S.xml
    TSICup.xml

    For example, if he wants to override AI drivers for the Formula Classic Gen3 vehicle class, he should create a F-Classic_Gen3.xml file inside \UserData\CustomAIDrivers\ folder, like this:

    C:\Program Files (x86)\Steam\steamapps\common\Automobilista 2\UserData\CustomAIDrivers\F-Classic_Gen3.xml

    Example of F-Classic_Gen3.xml file content:
    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="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>
    
    So, livery_name determines to what livery each driver will be assigned. In the example above we assigned drivers to 2 liveries of the Formula Classic Gen3 vehicle class. You can assign drivers to as many liveries as you want.

    livery_name
    is the name of the livery (case sensitive) as seen in the vehicle selection screen in the game, for example livery_name="Ministry Motorsport #51" will assign the driver to the livery from this screenshot:

    View attachment 17943

    So, for each vehicle class that you want to assign AI drivers to, you must create a .xml file. For example, now we want to override 3 AI drivers of the Chevrolet Cruze Stock Car 2019 vehicle class. The class filename is StockCarV8.xml (as you can see in the spoiler above) so you create a file StockCarV8.xml in \UserData\CustomAIDrivers\ folder.

    Example of StockCarV8.xml file content:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <custom_ai_drivers>
        <driver livery_name="Eurofarma RC - R.Mauricio #90">
            <name>Lorem Ipsum</name>
        </driver>
        <driver livery_name="Full Time Sports - R.Barrichello #111">
            <stamina>1.0</stamina>
        </driver>
        <driver livery_name="Eurofarma RC - D.Serra #29">
            <race_skill>1.0</race_skill>
        </driver>
    </custom_ai_drivers>
    
    Now, to race with a custom grid with only the drivers that you have overriden, you simply start a event in AMS2 with the desired opponent classes and select a number of AI opponents less or equal to the number of AI drivers that you had overriden for those classes.

    Notes:
    • The valid personality values range is between 0.0 and 1.0 (inclusive).
    • Any missing or invalid values are replaced with the original values of the AI driver that would be picked for that car in that event.
    • What each personality value does:
      • name: Driver name.
      • country: 3 letter country code. This is used for displaying the country flag.
      • race_skill: Driver race session skill. It is mapped into a smaller range based on the "Opponent Skill Level" slider setting.
      • qualifying_skill: Same as above but for practice/qualifying sessions.
      • aggression: Driver aggression. It is scaled by the "Opponent Aggression" slider setting. Examples:
        • At 50% "Opponent Aggression" slider setting, the driver aggression will be identical to the overriden value.
        • At 0% "Opponent Aggression" slider setting, all drivers have 0.0 aggression.
        • At 100% "Opponent Aggression" slider setting, all drivers have 1.0 aggression.
      • defending: How much the driver will try to defend his position. Is also scaled by the "Opponent Aggression" slider setting.
      • stamina: Low stamina value means the driver loses a bit of his skill during the session.
      • consistency: Low consistency value means the driver skill can be randomly reduced a bit.
      • start_reactions: Low start_reactions value means the driver will take more time to react to the race green flag.
      • wet_skill: How good he is on a wet track. Controls how much he will slow down in curves as the track gets wet (low values means he will slow down more).
      • tyre_management: How good he is in preventing tyre wear (high values means he will have less tyre wear). This doesn't change the behavior of the driver, just the tyre wear.
      • blue_flag_conceding: Drivers with high blue_flag_conceding will work harder to concede the position when under blue flag.
      • weather_tyre_changes: Drivers with high weather_tyre_changes are more likelly to make pitstops for changing tyres when the track wetness state changes.
     
    Last edited: Dec 3, 2021 at 4:36 PM
    • Informative Informative x 23
    • Like Like x 11
    • Winner Winner x 7
  2. SaxOhare

    SaxOhare Well-Known Member Reiza Backer

    Joined:
    Mar 10, 2016
    Messages:
    1,538
    Likes Received:
    523
    Nice post,

    How can I determine what car the driver belongs to ?
    <driver livery_name="Ministry Motorsport #51"> meaning ?

    Thanks
     
  3. gian

    gian Administrator Staff Member

    Joined:
    Mar 16, 2020
    Messages:
    23
    Likes Received:
    32
    Its the name of the livery that the driver belongs to (case sensitive), as seen in the vehicle selection screen in the game, check this screenshot:

    Livery.PNG
     
    • Informative Informative x 2
    • Like Like x 1
  4. Fabian Biehne

    Fabian Biehne Well-Known Member Reiza Backer

    Joined:
    Apr 25, 2016
    Messages:
    368
    Likes Received:
    307
    [​IMG]
     
    • Funny Funny x 2
  5. Harry H

    Harry H Member Reiza Backer

    Joined:
    Mar 25, 2020
    Messages:
    69
    Likes Received:
    66
    Hi Gian, OK my first attempt at adding just one custom driver....

    <?xml version="1.0" encoding="UTF-8"?>
    <custom_ai_drivers>
    <driver livery_name="Porsche Cayman GT4 CS MR #107">
    <name>Danny Fischer</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>
    <custom_ai_drivers
    Danny is not showing up on the grid. There's always one of the original driver presets in car#107.

    Here's my path to the .xml file

    C:\Users\USER\Documents\Automobilista 2 Beta\savegame\38469637\automobilista 2 beta\profiles

    Where have I gone wrong? Thx
     
    Last edited: Nov 19, 2021
  6. SaxOhare

    SaxOhare Well-Known Member Reiza Backer

    Joined:
    Mar 10, 2016
    Messages:
    1,538
    Likes Received:
    523
    Just to experiment a little

    I made a custom file for GT3 al cars are called after there number, so it will be easy to recognize the cars. ( Formula classic Gen3 is also included but not complete)
    Skill in each type of car 0.1,0.2 ..... 1
    And I added comments to keep the file organized

    I added the content below,
     

    Attached Files:

    • Like Like x 2
  7. SaxOhare

    SaxOhare Well-Known Member Reiza Backer

    Joined:
    Mar 10, 2016
    Messages:
    1,538
    Likes Received:
    523
    <?xml version="1.0" encoding="UTF-8"?>
    <custom_ai_drivers>
    <!-- GT3 -->
    <!-- McLaren -->
    <driver livery_name="McLaren 720S GT3 #04">
    <name>McLaren 04</name>
    <race_skill>0.1</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #06">
    <name>McLaren 06</name>
    <race_skill>0.2</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #12">
    <name>McLaren 12</name>
    <race_skill>0.3</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #14">
    <name>McLaren 14</name>
    <race_skill>0.4</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #27">
    <name>McLaren 27</name>
    <race_skill>0.5</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #38">
    <name>McLaren 38</name>
    <race_skill>0.6</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #45">
    <name>McLaren 45</name>
    <race_skill>0.7</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #72">
    <name>McLaren 72</name>
    <race_skill>0.8</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #80">
    <name>McLaren 80</name>
    <race_skill>0.9</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="McLaren 720S GT3 #90">
    <name>McLaren90</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <!-- Porsche -->
    <driver livery_name="Porsche 911 GT3 R GT3 #05">
    <name>Porsche 05</name>
    <race_skill>0.1</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #10">
    <name>Porsche 10</name>
    <race_skill>0.2</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #03">
    <name>Porsche 03</name>
    <race_skill>0.3</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #17">
    <name>Porsche 17</name>
    <race_skill>0.4</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #41">
    <name>Porsche 41</name>
    <race_skill>0.5</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #68">
    <name>Porsche 68</name>
    <race_skill>0.6</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #70">
    <name>Porsche 70</name>
    <race_skill>0.7</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #75">
    <name>Porsche 75</name>
    <race_skill>0.8</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #82">
    <name>Porsche 82</name>
    <race_skill>0.9</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Porsche 911 GT3 R GT3 #93">
    <name>Porsche 93</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <!-- Mercedes-AMG -->
    <driver livery_name="Mercedes-AMG GT3 #01">
    <name>Mercedes-AMG 01</name>
    <race_skill>0.1</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #09">
    <name>Mercedes-AMG 09</name>
    <race_skill>0.2</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #15">
    <name>Mercedes-AMG 15</name>
    <race_skill>0.3</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #19">
    <name>Mercedes-AMG 19</name>
    <race_skill>0.4</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #33">
    <name>Mercedes-AMG 33</name>
    <race_skill>0.5</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #42">
    <name>Mercedes-AMG 42</name>
    <race_skill>0.6</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #60">
    <name>Mercedes-AMG 60</name>
    <race_skill>0.7</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #77">
    <name>Mercedes-AMG 77</name>
    <race_skill>0.8</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #81">
    <name>Mercedes-AMG 81</name>
    <race_skill>0.9</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Mercedes-AMG GT3 #85">
    <name>Mercedes-AMG 85</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <!-- BMW M6 -->
    <driver livery_name="BMW M6 GT3 #2">
    <name>BMW M6 2</name>
    <race_skill>0.1</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #8">
    <name>BMW M6 8</name>
    <race_skill>0.2</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #11">
    <name>BMW M6 11</name>
    <race_skill>0.3</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #22">
    <name>BMW M6 22</name>
    <race_skill>0.4</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #61">
    <name>BMW M6 61</name>
    <race_skill>0.5</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #83">
    <name>BMW M6 83</name>
    <race_skill>0.6</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #87">
    <name>BMW M6 87</name>
    <race_skill>0.7</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #91">
    <name>BMW M6 91</name>
    <race_skill>0.8</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #96">
    <name>BMW M6 96</name>
    <race_skill>0.9</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="BMW M6 GT3 #99">
    <name>BMW M6 99</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <!-- Formula Classic Gen 3 -->
    <driver livery_name="Fathom Motorsport #3">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Fathom Motorsport #4">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Piratelli Racing #23">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Piratelli Racing #24">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="LeClerc Sportif #25">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="LeClerc Sportif #26">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Scuderia Milano #27">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Scuderia Milano #28">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Dajara Racing #35">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Dajara Racing #36">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Didcot Racing #5">
    <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>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Didcot Racing #5">
    <name>William Shakespeare</name>
    <country>GBR</country>
    <race_skill>0.12</race_skill>
    <qualifying_skill>0.0</qualifying_skill>
    <consistency>1.0</consistency>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Lewis Homes Racing #15">
    <name>Lorem Ipsum</name>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Lewis Homes Racing #16">
    <name>John Smith</name>
    <stamina>1.0</stamina>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Aurora Motorsports #17">
    <name>John Smith</name>
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Aurora Motorsports #18">
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    <driver livery_name="Torino Corse #32">
    <race_skill>1.0</race_skill>
    </driver>
    <driver livery_name="Torino Corse #33">
    <race_skill>1.0</race_skill>
    <weather_tyre_changes>1.0</weather_tyre_changes>
    </driver>
    </custom_ai_drivers>
     
    Last edited: Nov 19, 2021
  8. Harry H

    Harry H Member Reiza Backer

    Joined:
    Mar 25, 2020
    Messages:
    69
    Likes Received:
    66
    Does it work in game for you? I cut / pasted your whole thing in place of mine and nothing changed in game for me. Same default driver names in all the GT3 cars as usual (Heitor, Renato, etc) UPDATE: Fixed - custom xml file needs to go in the docuents/ams2beta root directory.
     
    Last edited: Nov 20, 2021
  9. SaxOhare

    SaxOhare Well-Known Member Reiza Backer

    Joined:
    Mar 10, 2016
    Messages:
    1,538
    Likes Received:
    523
    Yes it works, doesn't it work if you download my xml file ?
    copy and past could destroy it
     
  10. Harry H

    Harry H Member Reiza Backer

    Joined:
    Mar 25, 2020
    Messages:
    69
    Likes Received:
    66
    Aha! Figured it out. The custom_ai_drivers.xml has to go in the AMS2 beta document root folder....

    C:\Users\USER\Documents\Automobilista 2 Beta
     
    • Like Like x 1
    • Agree Agree x 1
  11. Harry H

    Harry H Member Reiza Backer

    Joined:
    Mar 25, 2020
    Messages:
    69
    Likes Received:
    66
    no, your file worked, thanks Sax. I had put the .xml in the wrong place.
     
    • Like Like x 1
  12. gian

    gian Administrator Staff Member

    Joined:
    Mar 16, 2020
    Messages:
    23
    Likes Received:
    32
    You should place the file in the root folder:

    C:\Users\USER\Documents\Automobilista 2 Beta\custom_ai_drivers.xml
     
    • Like Like x 1
  13. Harry H

    Harry H Member Reiza Backer

    Joined:
    Mar 25, 2020
    Messages:
    69
    Likes Received:
    66
    Thanks Gian.

    OK I have a big ask: do you have an.xml file with all the default in game drivers that you could share? No worries if not.
     
    • Like Like x 1
  14. Brett Nagle

    Brett Nagle Well-Known Member Reiza Backer

    Joined:
    Oct 14, 2016
    Messages:
    401
    Likes Received:
    251
    So I am a little confused by this.

    <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>
    <driver livery_name="Bradley GP #12">
    <name>Lorem Ipsum</name>
    </driver>
    <driver livery_name="Full Time Sports #111">
    <stamina>1.0</stamina>
    </driver>
    <driver livery_name="Eurofarma RC #29">
    <race_skill>1.0</race_skill>
    </driver>
    </custom_ai_drivers>

    what does this portion of the example code allude to if the example is pointing at the #51 formula classic gen 3 #51 car? Also what happens if we say want to exclude certain cars from being selected? Like say I want to do a multi class race and I only want 3 McLaren GT3s chosen. How do I make sure only the 3 I want get selected and so on and so fourth for the rest of the vehicles?
     
  15. gian

    gian Administrator Staff Member

    Joined:
    Mar 16, 2020
    Messages:
    23
    Likes Received:
    32
    The example isnt just for the #51 car. The example contains 5 overriden drivers, 1 for each livery_name specified, only one of them is for the #51 car. You can add drivers for as many liveries as you want.
     
  16. Brett Nagle

    Brett Nagle Well-Known Member Reiza Backer

    Joined:
    Oct 14, 2016
    Messages:
    401
    Likes Received:
    251
    Okay understood. So am I understanding this correctly that we can override AI names, but this doesn't give us the ability to create "custom grids" in the sense that if I want to exclude cars from being selected? Like if I choose P1, P2, GT3, GT4 this won't allow me to make sure only specific cars from each class are being chosen?
     
  17. Reiche

    Reiche New Member Reiza Backer

    Joined:
    May 18, 2016
    Messages:
    18
    Likes Received:
    11
    Can you put the code in spoilers/„Code“? So the reader won’t have to scroll through a wall of text?

    like this

    or that


    Code:
    This here
    Is just
    An example
    i guess spoiler’s best suited
     
    • Like Like x 1
    • Informative Informative x 1
  18. gian

    gian Administrator Staff Member

    Joined:
    Mar 16, 2020
    Messages:
    23
    Likes Received:
    32
    you cant exclude liveries from being selected at the moment. Liveries are picked in advance by random (if you pick less opponents than max available liveries for a class), and only then the overrides are applied to the relevant random-picked liveries.
     
    Last edited: Nov 19, 2021
    • Like Like x 1
  19. Brett Nagle

    Brett Nagle Well-Known Member Reiza Backer

    Joined:
    Oct 14, 2016
    Messages:
    401
    Likes Received:
    251
    Understood. I misunderstood what Renato was saying in the last update about customizing AI. I was thinking the AI editor would allow us to essentially customize our grids in the sense we had full autonomy over which cars would be selected and what not.

    Will there be a chance at allowing us to also exclude certain cars from being picked in the future? It would be a huge upgrade and allow for better/more realistic balancing of classes than the randomness we currently have.
     
    • Agree Agree x 2
  20. Harry H

    Harry H Member Reiza Backer

    Joined:
    Mar 25, 2020
    Messages:
    69
    Likes Received:
    66
    At this point, Gian is saying to himself "good grief, what have I let myself in for?". I bet Reiza thought long and hard about enabling customization features, but I'm glad they've made a start at least :)
     
    • Agree Agree x 1
    • Friendly Friendly x 1

Share This Page