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:
    48
    Likes Received:
    15
    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,024
    Likes Received:
    859
    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,362
    Likes Received:
    718
    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,131
    Likes Received:
    1,254
    What if no preset is selected, then?
     
  5. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,017
    Likes Received:
    1,591
    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 3
    • Like Like x 2
  6. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    191
    Likes Received:
    235
    Its Pocono_OVAL, fixed thanks
     
  7. Rujasu

    Rujasu Member

    Joined:
    Dec 1, 2019
    Messages:
    48
    Likes Received:
    15
    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,017
    Likes Received:
    1,591
    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 1
  9. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,017
    Likes Received:
    1,591
    So can confirm it will scale apporpriately for both laps and timed races
     
    • Like Like x 2

Share This Page