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

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

  1. Rujasu

    Rujasu Member

    Joined:
    Dec 1, 2019
    Messages:
    53
    Likes Received:
    18
    What is "full race distance"? Is it defined per car per track? In laps? Kilometers sounds unlikely, because if it was doing that calculation, surely we could set the race distance by kilometers in the race settings. How much of a full GP is 55 minutes? If it was based on time, then wouldn't it have to guesstimate how long lap-based races take before the session starts? People have modded cars into this game, is there a definition for what a full race is in the files?
     
  2. stealthradek

    stealthradek Driving character: Chaotic good AMS2 Club Member

    Joined:
    Nov 22, 2020
    Messages:
    1,035
    Likes Received:
    864
    Of course - I was making a very crude example of the difference between two settings. Otherwise a 10 hour race would mean guaranteed failure at that rate which is not the case :)
     
  3. Brett Nagle

    Brett Nagle Well-Known Member AMS2 Club Member

    Joined:
    Oct 14, 2016
    Messages:
    1,421
    Likes Received:
    745
    Presets have different configurations for what is considered a full length race. For instance IMSA preset sets races to the times they are for the specific track you're at. So for Daytona the full race distance is 24 hours. Sebring is 12 hours, Road Atlanta is 10 hours, etc etc. For formula cars race distance is set to laps. I'm not sure if Reiza fully implemented where each track has the correct number of laps for a full GP, that was a development goal a while ago, but that's what people are meaning when they say full race distance. Each preset has a unique setting that constitutes a full length race and what rules there are that are available.
     
  4. sgsfabiano

    sgsfabiano Well-Known Member AMS2 Club Member

    Joined:
    Oct 28, 2019
    Messages:
    2,158
    Likes Received:
    1,265
    What if no preset is selected, then?
     
  5. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,025
    Likes Received:
    1,618
    For the purposes of random failures I believe they were actually originally set by looking at the probabilities of the various failure types accross all cars in a representative IRL season. That data is then used to produce running-time based ranges and mean failure time and probabilities that any given failure might occur so preset won't directly change the failkure rates as such. There's a bit more stuff going on with the ranges because they aren't linear things but it's beyond the scope of what needs explaining for core gameplay explanation.

    To support sync to race we have a 'reference race length' per vehicle/class which is just a reasonable and representative race session length that we can use to scale mean failure times based on your chosen session length.

    Formula cars for example are typically around 2 hours and GT/endurance content generally 24 hours.
     
    • Informative Informative x 4
    • Like Like x 2
  6. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    197
    Likes Received:
    240
    Its Pocono_OVAL, fixed thanks
     
    • Like Like x 1
  7. Rujasu

    Rujasu Member

    Joined:
    Dec 1, 2019
    Messages:
    53
    Likes Received:
    18
    This makes a lot of sense. Does it still work for races that are defined by laps, though?
     
  8. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,025
    Likes Received:
    1,618
    as far as I'm aware yes, there's a few ways we could determine a sensible time value for that so shouldn't be problematic but I'll try and find a few minutes to have a dig into it to confirm (I'd consider it a bug if not anyway so better to know for sure)
     
    • Informative Informative x 2
  9. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,025
    Likes Received:
    1,618
    So can confirm it will scale apporpriately for both laps and timed races
     
    • Like Like x 3
  10. Buzzhornet

    Buzzhornet Member

    Joined:
    Mar 13, 2017
    Messages:
    30
    Likes Received:
    5
    That’s awesome news is the plan to include in 1.7?

    Also will this address the issue where you sometimes get duplicate cars?
     
    Last edited by a moderator: Apr 3, 2026
  11. pocospelos

    pocospelos New Member

    Joined:
    Nov 12, 2017
    Messages:
    2
    Likes Received:
    0
    Hi everyone, this is my first time posting, I hope you can help me.

    I'm trying to create a custom grid for the LMDh class, but it's not working. I've tried everything, and nothing works.

    I've reduced the grid to 12 drivers, but it still doesn't work. I'm sending it to you in case you can take a look and see if I'm doing something wrong.

    Thanks.
     

    Attached Files:

  12. Romeo Foxtrot

    Romeo Foxtrot Active Member AMS2 Club Member

    Joined:
    Apr 10, 2020
    Messages:
    179
    Likes Received:
    76
    The file you posted only has 10 unique livery names. Alpine #38 and Porsche #6 are duplicated. If you pick one of the listed cars you can only have 9 opponents, if you pick another car you can use 10 opponents.
     
  13. pocospelos

    pocospelos New Member

    Joined:
    Nov 12, 2017
    Messages:
    2
    Likes Received:
    0
    Okay, that was the problem! I didn't know you couldn't repeat liveries. Thank you so much!
     
  14. Ricky Richards

    Ricky Richards Member

    Joined:
    Dec 24, 2025
    Messages:
    58
    Likes Received:
    15
    I think you can repeat liveries but you would need to edit the livery files under the relevant cars so that the different livery names point to the same actual livery files, so then you would still have different livery names in your AI files even though the cars would look the same.
     
  15. KingCnut

    KingCnut New Member

    Joined:
    Apr 17, 2026
    Messages:
    1
    Likes Received:
    0
    Could some advise if they have already created an IMSA 2025 XML with real driver skills please?
     
  16. whyl_

    whyl_ New Member

    Joined:
    Jan 13, 2026
    Messages:
    8
    Likes Received:
    10
    @gian Hey quick question about the recent rebrand of Formula v12 to Formula Edge – how does this affect the AI xml file names? In the list in the first post, I still see F-V12.xml but also a FE-G1.xml. Are they both valid? Or is the v12 a leftover that will stop working?
     
  17. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    197
    Likes Received:
    240
    Usually when we change the display name of a vehicle class we don't change the AI xml file name, however in this case what techincally happened is that the F-V12 class was removed from ams2 and a new class FE-G1 was added to ams2.

    So this means that the F-V12.xml doesnt work anymore (as the class was deleted from ams2). If you want to override the ai drivers of Formula Edge class use FE-G1.xml

    I will remove the F-V12 from the list in first post to avoid confusion
     
    • Like Like x 2
    • Winner Winner x 1
    • Informative Informative x 1

Share This Page