Information for Customizing AI drivers in AMS2

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

  1. Dimitris Papadamis

    Dimitris Papadamis New Member

    Joined:
    Jul 4, 2025
    Messages:
    5
    Likes Received:
    0
    Thanks for your immediate reply is any tutorial how to do it ? Any link somewhere here the guide ?
     
  2. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,299
    Likes Received:
    691
    You're in the thread that explains it... Go to the first post to read about how to create custom AI files.
     
  3. Seb02

    Seb02 Well-Known Member

    Joined:
    Mar 12, 2022
    Messages:
    561
    Likes Received:
    251
    The first page of this thread is updated by Reiza. All the information is there.
     
  4. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    38
    Likes Received:
    5
    This did not work for me when I wanted to create a multiclass GT3/GT3gen2 championship with 48 cars, filling up the gap from GT3gen2 with cars from GT3. When creating a XML with only the number of GT3 cars I wanted to attend the game picked cars at random from the entire GT3 grid.

    Might be a multiclass thing though.
     
  5. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,299
    Likes Received:
    691
    No it's because you need a custom AI for every class you're using, even if you max out one class, it still needs a custom AI file. So if you're using GTE, GT3 Gen 2, and GT3 Gen 1 you need a custom AI for each class.
     
    • Agree Agree x 1
  6. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    38
    Likes Received:
    5
    I did.

    I had one full XML for Gen 2, can't recall on the top of my head the exact number but it covered the entire grid, so let's say 41 drivers. Then one XML for Gen 1 with only, let's say, seven drivers. The assumption being that the grid would only consist of the full custom Gen 2 and these seven Gen 1 drivers. But the game did not load my custom Gen 1 (or at the very least not more than a couple) drivers. Only when I added a complete custom Gen 1 grid XML file did the game fill all Gen 1 slots with custom drivers. Note: I was myself driving a Gen 2 car if that matters at all.
     
  7. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,299
    Likes Received:
    691
    Something wasn't right then. You don't have to have a full AI list for a custom grid, just the cars that you want. I recently had an issue with custom AI and thought I had everything correct, but in one file I had a very small, easily missed typo that broke it all. I only found it because I tested adding one car at a time for the class I knew wasn't working correctly. You could try the same for your GT3 Gen 1 class.
     
    • Agree Agree x 1
  8. Seb02

    Seb02 Well-Known Member

    Joined:
    Mar 12, 2022
    Messages:
    561
    Likes Received:
    251
    Brett Nagle said it all
     
    • Friendly Friendly x 1
  9. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    38
    Likes Received:
    5
    That was my assumption. But I use Notepad++ with an XML plugin which would have pointed out the errors of my ways. Of course it is possible the script missed something. My hope was to have only the Nissans (and one or other different car added) join.

    I'll give it another try someday.
     
  10. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    38
    Likes Received:
    5
    I did give it another try. Gen 1 with 7 custom drivers, Gen 2 with 40, me in Gen 2. Loaded in. Zero custom drivers selected, so all vanilla. Went back in the XML file. Added two more custom drivers, so 9 custom drivers in the file. In game, changed grid setup to 8 Gen 1 and 39 Gen 2. Loaded in, driving Gen 2. Now it works, field is filled with all custom drivers. But, here's the kicker: there are now 9 Gen 1 drivers on the grid, which matematically isn't correct, 39+8 is 47 and then add me as a Gen 2 driver makes it 48.

    I guess the game decided to add one extra Gen 1 in the mix. But why did it then not work the same way with 7 drivers? If the game actually really needed to add another driver or two it could've summoned up a vanilla driver. Might any of this happen because I 'overwrite' an AI by picking a car that is in the Gen 2 file. It's very confusing to say the least.
     
  11. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,299
    Likes Received:
    691
    How many actual cars are there for GT3 Gen 2? I don't know off the top of my head, but if you're exceeding it that could be the issue. Why don't you post your AI files so we can look at them and test them on our side.
     
  12. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    38
    Likes Received:
    5
    My file has 40 drivers in Gen2, based on a template from somewhere. Now that you mention it, without the XML there is only 39 drivers available in Gen2 without the custom drivers file. That would solve the issue, well partly, now I got to figure out which driver is superfluou. :D

    Thanks for the nudge in the right direction!
     
    • Friendly Friendly x 1

Share This Page