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,033
    Likes Received:
    863
    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,393
    Likes Received:
    736
    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,146
    Likes Received:
    1,261
    What if no preset is selected, then?
     
  5. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,020
    Likes Received:
    1,611
    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:
    191
    Likes Received:
    238
    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,020
    Likes Received:
    1,611
    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,020
    Likes Received:
    1,611
    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:
    4
    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:
    54
    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.
     

Share This Page