Information for Customizing AI drivers in AMS2

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

  1. Sparviero

    Sparviero Member

    Joined:
    Aug 10, 2021
    Messages:
    78
    Likes Received:
    25
    What I've done:
    - P1 class, 12 drivers
    - P2 class and P3 class, 4 drivers each
    - GT3 and GT4 class, 5 drivers each
    - so, 30 cars

    Start race with 29 opponents (or championship, it is the same), what I've got:
    - 6 P1 cars, 5 P2, 6 P3, 6 GT3 and 7 GT4, so totally wrong max/min number of cars per class
    - If I restart, I've got others numbers of cars/class, totally randomized
    - in P1 cars (and P2, P3, GT3...) I've got a 2/3 cars with the same driver (and same livery) and some fictional names to.
     
  2. Ctawolf1

    Ctawolf1 New Member

    Joined:
    Mar 28, 2021
    Messages:
    4
    Likes Received:
    1
    Anyone know the Class name to the Ultima GTR to use for the custom driver names?
     
  3. F_B

    F_B Well-Known Member AMS2 Club Member

    Joined:
    Apr 25, 2016
    Messages:
    852
    Likes Received:
    776
    Go to the first post in this thread and click the 'Spoiler' box.

    Edit: just checked it and it's not there.
    Have you tried some class names like 'UltimaGTR', 'Ultima-GTR' etc and see if your custom AI drivers appear in game?
     
  4. chonk

    chonk Well-Known Member AMS2 Club Member

    Joined:
    Jul 3, 2021
    Messages:
    502
    Likes Received:
    265
    Are you using any custom liveries? Or just the custom AI files?

    If you upload your custom AI files here I can double check them for you.
     
  5. Michael Enright

    Michael Enright Well-Known Member AMS2 Club Member

    Joined:
    Jul 3, 2019
    Messages:
    1,178
    Likes Received:
    331
    I have tried different Custom AI files for different classes and the flags are definitely random, and also there are a couple that are just white. The system obviously does not work properly yet. I have tried the 3 letter code as well as the full country name, and both have the same result. Hopefully it will be fixed soon.
     
    • Agree Agree x 2
    • Informative Informative x 1
  6. Sparviero

    Sparviero Member

    Joined:
    Aug 10, 2021
    Messages:
    78
    Likes Received:
    25
    I use some custom skin for one class (P1), the others are stock. P1 class is composed by some stock liveries (with custom drivers) + custom liveries (obviously with custom drivers). My customs skins are rightly loaded with/without custom drivers.

    Thanks for your help.
     

    Attached Files:

  7. chonk

    chonk Well-Known Member AMS2 Club Member

    Joined:
    Jul 3, 2021
    Messages:
    502
    Likes Received:
    265
    @Sparviero
    no worries, so p2, p3, gt3 and gt4 are all work together as expected as you can see from the screenshot. The error is in your P1 file somewhere, I don't have the skins you're using so I can't find the error for you. I would suggest removing the custom skins first and get it working with the stock skins and then reintroduce the custom skins one at a time and check for issues, it's probably just an incorrect spelling of a livery name or something like that.

    Also just for the future, the best way to test these is to add one new file at a time so checking if P2 and P3 work together because they have a small number of drivers makes it much easier to spot an error than adding all the classes at once.

    View attachment 18317
     

    Attached Files:

  8. Sparviero

    Sparviero Member

    Joined:
    Aug 10, 2021
    Messages:
    78
    Likes Received:
    25
    Thanks, I found the problem: is an "ã" in the stock livery of AMS2 (the AJR-Tubarão #5). When you use that name in the custom driver file, it cause the mess. Probably the code used for generating this letter is peculiar.

    However, I found another little problem in how the custom files are used by race or championship modes. I try to explain:
    - In race mode, if I chose one of the liveries of a class (eg. a 12-liveries class), it is all ok: I'm one of the twelve, with 11 opponents. The other classes are not reduced/modified by my choice.
    - In championiship mode, if I chose one of the liveries of a class (eg. a 12-liveries class), the championship will include a 13-cars class, with 12 opponents. Obviously, I got a skin duplicate (my skin and one from the opponents). If I chose a not-custom driver livery, there are no more duplicates, but I'm still the 13th. In both cases, automatically, a car from another class is not included in the championiship in order to remain in the limit of maximum cars.
    Thanks for help.
     
    • Like Like x 1
  9. Haris1977

    Haris1977 Active Member

    Joined:
    Apr 7, 2020
    Messages:
    395
    Likes Received:
    105
    That won't work on public release (1.3.1.0)
     
  10. Romeo Foxtrot

    Romeo Foxtrot Active Member AMS2 Club Member

    Joined:
    Apr 10, 2020
    Messages:
    165
    Likes Received:
    69
    Ultima is GTOpen.xml
    Note the Class flag, GT-OP, in the Standings screen.
     
    • Like Like x 1
    • Informative Informative x 1
    • Useful Useful x 1
  11. Jebus

    Jebus The Lying Finn AMS2 Club Member

    Joined:
    Mar 9, 2016
    Messages:
    283
    Likes Received:
    124
    Works fine here. You sure you're using it with the 2021 season pack? Or did you maybe forgot to change the file type from .txt to .xml?
     
  12. Haris1977

    Haris1977 Active Member

    Joined:
    Apr 7, 2020
    Messages:
    395
    Likes Received:
    105
    It s xml yes but..do i need the skins also? Hmm..Haven't download them. I thought only the xml would work as standalone?
     
  13. Jebus

    Jebus The Lying Finn AMS2 Club Member

    Joined:
    Mar 9, 2016
    Messages:
    283
    Likes Received:
    124
    Yeah you need the skins too.
     
    • Informative Informative x 1
  14. Romeo Foxtrot

    Romeo Foxtrot Active Member AMS2 Club Member

    Joined:
    Apr 10, 2020
    Messages:
    165
    Likes Received:
    69
    The xml can work but you need to change the livery names in the file to match the ones in AMS2.
     
    • Informative Informative x 1
  15. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,235
    Likes Received:
    1,047
    did you use UTF-8 ?
     
  16. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,235
    Likes Received:
    1,047
    What is the New Cart Gen2 class name ?

    EDIT: F-USA_Gen2.xml
     
    Last edited: Dec 5, 2021
  17. Ctawolf1

    Ctawolf1 New Member

    Joined:
    Mar 28, 2021
    Messages:
    4
    Likes Received:
    1
    Have not tried that yet. Figured if someone knew the proper name it would be easier than guessing. My custom liveries show up just fine. I'll give a try to naming the file.
    Thanks!
     
    • Like Like x 1
  18. Roar McRipHelmet

    Roar McRipHelmet Well-Known Member AMS2 Club Member

    Joined:
    Feb 25, 2020
    Messages:
    1,582
    Likes Received:
    1,266
    See the following comment:
     
  19. Ctawolf1

    Ctawolf1 New Member

    Joined:
    Mar 28, 2021
    Messages:
    4
    Likes Received:
    1
    Got the liveries working fine. Just need the proper name for the the game to recognize the custom drivers. Thanks much for the reply!
     
  20. Ctawolf1

    Ctawolf1 New Member

    Joined:
    Mar 28, 2021
    Messages:
    4
    Likes Received:
    1
    Thanks much!
     

Share This Page