Information for Customizing AI drivers in AMS2

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

  1. Andrew Wiggin

    Andrew Wiggin New Member

    Joined:
    Feb 20, 2022
    Messages:
    2
    Likes Received:
    0
    Renato basically confirmed this will never happen. I am super bummed about that information
    AMS2 AI Developer Q&A - Physics & AI
     
  2. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    33
    Likes Received:
    5
    Currently running a custom GT3 sprint championship with custom drivers, 5 rounds. Three iterations so far. 47 AI (GT3 gen2 and GT3 "gen1"). 45 minute races.

    All damage is on and set to high.

    In the custom driver XMLs I've tried with in each different iteration of the championship; low rates (< 0.0005) , negative rates (-15), really large negative rates (-1500).

    I've tried the 10x mechanical failure rate in combination with low reliability - no cars ever retire And I've tried the sync to race failure rate with the same combination - no cars ever retire.

    15 races - not one retirement. Zero.

    Had a little looksie at the real sprint race results last year. Generally at least one car retired per race - probably not from mechanical failure all the time but since AMS2 AI never retire from damage then mechanical failure is all we've got to try to mix it up a bit.

    Anyone got any working vehicle_reliability value for the GT3 classes that gives at least some chance of a car retiring?
     
    • Informative Informative x 1
  3. Marg

    Marg Active Member

    Joined:
    Dec 7, 2021
    Messages:
    136
    Likes Received:
    58
    vehicle_reliability can be set to negative values like -1.0 or even -2.0
     
  4. Mazdaspeed

    Mazdaspeed Well-Known Member AMS2 Club Member

    Joined:
    Aug 25, 2022
    Messages:
    1,581
    Likes Received:
    804
    Math is not my forte, but the formula to apply negative values changes, so maybe it's not doing anything in the XML files because it's not coded properly and it's resetting to default values?

    I have done a lot of custom files but have never used negative values, so I dunno how it exactly works.
     
  5. Erik G

    Erik G Member

    Joined:
    Sep 8, 2022
    Messages:
    33
    Likes Received:
    5
    Tested this and don't seem to make any difference.

    Math is not a strong side for me either.

    Negative values are supposedly supported but with a completely different formula. As mentioned I've tried with low positive values as well, but I don't think the formula for this works for cars with higher mean time before failures. Could there perhaps be a limit for parsing decimals in the XML? Ran a championship with custom AI Ginetta G40 and G55 at one point before this and the low values worked very well with the G40 but not at all with the G55 so I don't really know. Puzzling.
     
  6. Buzzhornet

    Buzzhornet New Member

    Joined:
    Mar 13, 2017
    Messages:
    23
    Likes Received:
    3
    Yes very bummed as well. The fact we have it in single player is extremely disappointing.,
     
  7. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    Is LMP2 gen1 file named LMP2_Gen1? I can't get the AI to work properly with that file name
     
  8. ChasteWand

    ChasteWand Active Member

    Joined:
    Feb 9, 2021
    Messages:
    125
    Likes Received:
    89
    As far as I know, yes.

    My method for testing and building custom AI is as follows. Back up my custom AI folder and delete everything there. Download NAMeS: Real Drivers for AMS2 by John B. Ellis from overtake and copy the file for the class I want to modify to the custom AI folder. Make note of the names of the drivers and load up a quick race of the class of cars I want to modify with max opponents and check those noted names appear in full. Then if all good copy out all drivers but one, build the AI profile for that 1 driver, load the quick race again but with 1 driver opponent rather than a full grid and your driver should be there. Build up more drivers slowly as 1 little mistake breaks the whole file! Hope that's helpful...
     
    • Friendly Friendly x 1
  9. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    I used John's file and it still doesn't work. I am not sure the class has an XML assigned to it. I tested the other files I was trying to use separately and they work perfectly fine. It's only the LMP2 Gen1 class file that isn't working.
     
  10. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    I went through to quadruple check and found a single missing ">" in the file that was causing the error
     
    • Like Like x 1
  11. ChasteWand

    ChasteWand Active Member

    Joined:
    Feb 9, 2021
    Messages:
    125
    Likes Received:
    89
    If I get a chance I'll have a look tomorrow and see if my file for LMP G1 custom AI works. Pretty sure I built one after 1.6 was released and it worked, but decided to put more time to the G2 as there were more cars available in that class. My only other suggestion is to remove _G1 from the file name and try that, so just LMP2. My swiss cheese brain seems to recall something along those lines but until at my PC I couldn't say for sure!
     
    • Friendly Friendly x 1
  12. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    No need. I found the issue which was naturally a "me" problem I fixed.
     
    • Like Like x 1
    • Winner Winner x 1
  13. Dimitris Papadamis

    Dimitris Papadamis New Member

    Joined:
    Friday
    Messages:
    5
    Likes Received:
    0
    I want to make a silly question.
    If I took a driver AI from a class by copying his status from class xml let’s say from GT3 and paste to the GT3 next gen .xml this means that starting the game the car will being moved to the GT3 next gen class from the GT3 ?
     
  14. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    No that's not how that works.
     
  15. Dimitris Papadamis

    Dimitris Papadamis New Member

    Joined:
    Friday
    Messages:
    5
    Likes Received:
    0
    As I read in AI a have to change the .crd files of each car I want to move , it’s stands?
     
  16. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    If you want to move cars from one class to another yes, you need to change the class line in the CRD files, but that doesn't move an individual skin over it moves the car and every skin associated with that car.
     
  17. Dimitris Papadamis

    Dimitris Papadamis New Member

    Joined:
    Friday
    Messages:
    5
    Likes Received:
    0
    Is possible to delete or disable skins in order to be only one per car?
     
  18. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,281
    Likes Received:
    686
    For mods, yes, for Reiza cars, not that I know of, but using a custom AI let's you filter out what you don't want.
     
  19. Dimitris Papadamis

    Dimitris Papadamis New Member

    Joined:
    Friday
    Messages:
    5
    Likes Received:
    0
    I create a custom grid in order to create a pure Gt3 championship trying to use all the brands of cars but when I start the game the AMS2 use what ever it wants from this class,
    Is any tutorial how to create a custom championship of one class ( in our exp Gt3) and use all the brands of this class cars ?
     
  20. Seb02

    Seb02 Well-Known Member

    Joined:
    Mar 12, 2022
    Messages:
    559
    Likes Received:
    251
    Yes, you can do it with a custom ai file. You can choose what car you want but you have to have the same number of cars in your custom ai file. If you want 32 cars in your race, you have to select 32 cars in the custom ai file.
     

Share This Page