Information for Customizing AI drivers in AMS2

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

  1. Mathinho17

    Mathinho17 New Member

    Joined:
    Aug 18, 2026
    Messages:
    2
    Likes Received:
    0
    yeah I am trying it but it keeps staying the same. Sometimes all Porsche are together in front then Audi then Corvette etc.
    Is there a good Track to try it ? I am using Interlagos for now.
     
  2. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    208
    Likes Received:
    256
    • Like Like x 3
  3. das111

    das111 New Member

    Joined:
    Feb 3, 2026
    Messages:
    2
    Likes Received:
    0
    I've tried doing it but the game still pick a random amount from the xml and the game drivers
     
  4. Ace

    Ace Well-Known Member

    Joined:
    Dec 4, 2024
    Messages:
    613
    Likes Received:
    821
    Then there is a spelling error in the XML where at least one livery does not match the installed livery names for that class. Set the grid to max and check which AI name is not loaded
     
  5. das111

    das111 New Member

    Joined:
    Feb 3, 2026
    Messages:
    2
    Likes Received:
    0
    they are all loaded.
    i have 11 driver in the xml and i would like to use only those
    EDIT
    turns out i was on manual grid when i tried it instead of custom, now it works.
     
    Last edited: Sep 16, 2026
  6. Ricky Richards

    Ricky Richards Active Member

    Joined:
    Dec 24, 2025
    Messages:
    147
    Likes Received:
    34
    Is it possible to turn off blue flag behaviour for a given driver - perhaps with a negative blue flag conceding factor? I've found that if a strong car - such as Senna in the 1988 skinpack - gets lapped due to a first lap incident needing repairs they are unable to unlap themselves and finish pretty much last, because they keep lifting for the backmarkers they should just be unlapping themselves from.

    Ideally blue flag 0, would mean they would be able to unlap themselves - then at least we could set that as the number for e.g. the top 20 percent of the set, who are probably only going to see blue flags in those kind of situations when they should be unlapping themselves.
     
    • Agree Agree x 1
    • Creative Creative x 1
  7. C49Sol

    C49Sol New Member

    Joined:
    Jun 12, 2026
    Messages:
    5
    Likes Received:
    2
    What I think would work best is if an AI car has unlapped itself, then it's given a period of time to create a gap before being shown a blue flag again (for the same car it just unlapped itself against). Maybe it's given a time like 60 seconds. Or maybe it's based on sectors.
     
    • Winner Winner x 1
  8. andy_east123

    andy_east123 Active Member

    Joined:
    Jan 31, 2023
    Messages:
    184
    Likes Received:
    183
    Hello All,
    I have come across an issue when using a custom AI File in a multi-class environment.
    The problem is most likely in the chair and not in the computer in this case, I hope someone here can highlight my error... please. :)

    Some background: I am trying to mix and balance the StockCar99 with the GroupA classes so that I can run a competitive championship with them, this will be a championship managed outside of AMS2 using multiple single custom events.

    To balance the classes, I need to boost the StockCar99's and peg the GroupA's a little. The exact numbers are yet to be determined, but I haven't got this far yet because I hit this hurdle.

    The StockCar99.xml is the only custom AI file in play and has 10 drivers in it, and these are the only StockCar99 drivers I would like to take part in each custom event. To help identification of a custom AI driver, I have added the "#CarNo" to the end of the driver name in the custom AI file.

    The hurdle: When I select my multi class grid and select all 30 GroupA and 10 StockCar99's, I get a (seemingly) random selection of StockCar99 drivers, not the 10 that are in my custom AI file. I am expecting the game to prioritise grid slots for my custom AI drivers (if my understanding of how it should work is correct).

    However, if I select a single class race for 10 StockCar99's, I get the 10 custom AI drivers only, every time. This is what I am hoping for in the StockCar99's in multi-class environment as well and I am struggling to understand why it is not doing so.

    Can anyone spot any mistake I am making here?

    My Custom AI file for the StockCar99
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <custom_ai_drivers>
    
        <driver livery_name="JF Racing - Ingo Hoffmann #1">
            <name>Ingo Hoffmann #1</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
    
        <driver livery_name="WB Motorsport - Chico Serra #3">
            <name>Chico Serra #3</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
    
        <driver livery_name="AJ Competicoes - Adalberto Jardim #5">
            <name>Adalberto Jardim #5</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
        
        <driver livery_name="CA Competicoes - Carlos Alves #8">
            <name>Carlos Alves #8</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
        
        <driver livery_name="Team Medley - Xandy Negrao #9">
            <name>Xandy Negrao #9</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
        
        <driver livery_name="Team Medley - Guto Negrao #27">
            <name>Guto Negrao #27</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
        
        <driver livery_name="Spinelli Racing - Paulo Gomes #22">
            <name>Paulo Gomes #22</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
        
        <driver livery_name="Boettger - Flavio Trindade #34">
            <name>Flavio Trindade #34</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
        
        <driver livery_name="Racing Star - Laercio Justino #26">
            <name>Laercio Justino #26</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
    
        <driver livery_name="JF Racing - Carlos Cunha #54">
            <name>Carlos Cunha #54</name>
            <race_skill>1.00</race_skill>
            <qualifying_skill>1.00</qualifying_skill>
            <weight_scalar>0.90</weight_scalar>
            <power_scalar>1.10</power_scalar>
            <drag_scalar>0.95</drag_scalar>
        </driver>
    
    </custom_ai_drivers>
    Screen shots of grid selection below.

    Multi Class: 30x GroupA, x10 StockCar99 and only #5, #1, #26, #9 of my custom AI have been selected to take part in the race.
    upload_2026-10-8_17-14-11.png
    upload_2026-10-8_17-9-19.png

    In contrast when I do a "Same class" event for 10x StockCar99's, I get all 10 from my custom AI file, reliably.
    upload_2026-10-8_17-10-47.png

    Any help here will be gratefully received.

    All the best
    Andy
     
    Last edited: Oct 8, 2026
    • Informative Informative x 1
  9. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    208
    Likes Received:
    256
    Looks like you are using the in-game manual grid option, but when using custom AI drivers the official supported way for custom grids is not using that option, but use whats described in the first post:

    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 total number of AI drivers that you have overriden for those classes.
     
    • Informative Informative x 3
    • Useful Useful x 1
  10. andy_east123

    andy_east123 Active Member

    Joined:
    Jan 31, 2023
    Messages:
    184
    Likes Received:
    183
    @gian Thank you. I knew the problem would be in the chair. :) I appreciate the guiding hand.

    I have now successfully managed to reliably get my 40 car grid (plus me) populate.
    Now the difficult bit to balance everyone nicely can start.

    Thanks again

    All the best
    Andy
     
    • Like Like x 1
    • Winner Winner x 1
    • Friendly Friendly x 1
  11. Theofanis Papas

    Theofanis Papas Member

    Joined:
    Sep 22, 2025
    Messages:
    60
    Likes Received:
    11
    May I ask if I want to make a gt3 car to have a possibility to get more often failures from other car in the same grid how can be the scalar with negative value ?
    <vehicle_reliability> -1 </vehicle_reliability> can be like that ?
     
  12. Wedsley Dias

    Wedsley Dias Active Member

    Joined:
    Mar 10, 2016
    Messages:
    271
    Likes Received:
    154
    @gian @andy_east123 Hi. I’m having the same issue. Everything seems fine, but I must be missing something.
    I created a custom .xml file for the "Copa Classic FL" class, keeping only the Fusca, Gol, and Passat models (to exclude the Puma GTB). The file contains a total of 18 cars. When I set up a single-class event and select 17 AI drivers, it works perfectly—no Puma GTB appears. However, when I create a multi-class event, I have to edit the grid to select those 17 cars for this category and assign the remaining slots to the other category ("Copa Classic B"). When I do this, the .xml file is ignored, and the Puma GTBs show up anyway...
    What am I doing wrong? Thanks.
    upload_2026-10-16_10-50-14.png
     
  13. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    208
    Likes Received:
    256
    As I explained to andy, dont use the in-game Manual Grid (Grade Manual) option. Instead, do this:

    simply start a event in AMS2 with the desired opponent classes and select a number of AI opponents less or equal to the total number of AI drivers that you have overriden for those classes.
     
  14. Wedsley Dias

    Wedsley Dias Active Member

    Joined:
    Mar 10, 2016
    Messages:
    271
    Likes Received:
    154
    Thanks for the reply... And apologies for the misunderstanding; I guess I haven't had enough coffee today.
    It’s a multiclass event featuring Copa Classic B (40 liveries) and Copa Classic FL (24 liveries). I chose a car from the CCFL class, for which I have a custom file containing only 18 cars (excluding the Puma GTB).
    For example, at the Cascavel track—which has 47 available slots for AI—if I set the grid to just 17 cars, only the CCFL vehicles appear. If I set it to any number higher than that, the Puma GTBs start showing up, along with cars from the other classes.
    I think I’ll go have another coffee. Thanks again.
     
    Last edited: Oct 16, 2026
  15. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    208
    Likes Received:
    256
    Yes, its because you are selecting a number higher than the number that you have created in the xml.

    So you need to create a custom xml file for the Copa Classic B class too, and add the liveries you want to load to the xml file.
     
    • Like Like x 1
  16. Wedsley Dias

    Wedsley Dias Active Member

    Joined:
    Mar 10, 2016
    Messages:
    271
    Likes Received:
    154
    @gian Ah, I see. I need to create an .xml file for Classic B as well... Thanks for your time.
     
    • Agree Agree x 1
  17. benvelor

    benvelor Member

    Joined:
    Aug 30, 2020
    Messages:
    97
    Likes Received:
    77
    deleted
     
    Last edited: Oct 31, 2026

Share This Page