• "Mwoah" - Kimi Räikkönen
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dear Guest. Follow RaceDepartment on Twitter, Facebook, Instagram, Twitch, Steam and YouTube.

Misc Realistic Traffic for 'The Tajo' 0.91a

Tajo: AI slowed down to realistic speeds

  1. schnipp

    schnipp

    Messages:
    299
    Ratings:
    +150
    schnipp submitted a new resource:

    Realistic Traffic for 'The Tajo' - Tajo: AI slowed down to realistic speeds

    Read more about this resource...
     
    • Love Love x 2
  2. schnipp

    schnipp

    Messages:
    299
    Ratings:
    +150
    • Like Like x 1
  3. schnipp

    schnipp

    Messages:
    299
    Ratings:
    +150
  4. Gustavo Stiebler

    Gustavo Stiebler

    Messages:
    45
    Ratings:
    +13
    Heey man. Could you do another mod like that u did for Tajo but for other tracks? Like a trackday mod with some cars going slow and some faster. It would be great in the nord tourist
     
  5. schnipp

    schnipp

    Messages:
    299
    Ratings:
    +150
    That isn't possible afaik.

    The speed limit is the same for all AI cars, therefore I could either slow every car or no car down.

    I can't think of a way that would make this work in a realistic way.
     
  6. RasmusP

    RasmusP
    AC Stuff and G27 help Staff Premium

    Messages:
    1,981
    Ratings:
    +734
    Yep that's true. How did you do the speed limit? I only know the option 0.00-1.00 (and above but that's risky). All cars are then doing only x.xx % of their normal speed and therefore faster cars will be faster. I use 0.4 for Highlands traffic for example :)
     
  7. schnipp

    schnipp

    Messages:
    299
    Ratings:
    +150
    The code looks like this:

    Code:
    [HINT_0]
    START=0
    END=0.036
    VALUE=0.6
    
    [MAXSPEED_0]
    START=0
    END=0.036
    VALUE=85
    
    [HINT_1]
    START=0.036
    END=0.071
    VALUE=0.6
    
    [MAXSPEED_1]
    START=0.036
    END=0.071
    VALUE=103
    
    ....
    and so on until lap is completed with:
    
    [HINT_29]
    START=0.982
    END=0.99
    VALUE=0.6
    
    [MAXSPEED_29]
    START=0.982
    END=0.99
    VALUE=43
    
    [HINT_30]
    START=0.99
    END=1
    VALUE=0.6
    
    [MAXSPEED_30]
    START=0.99
    END=1
    VALUE=85
    
    You have to let the AI drive for some time and have the dev apps activated.
    Then you need to go to replay (while in the session, loaded replay doesn't work as I sadly had to find out the hard way and spent 20 min. or more for nothing), switch the view to an AI car and open the AI app. This app then shows you the position the car is at on the AI fast_lane.
    You have to note every value where you want to change the speed limit and then create each entry in the ai_hints.ini file. (tedious work ;) )

    0.00 is the start of the fast lane path, 0.036 is the start of the first section I allowed speeding (103kph) that ends at 0.071 (which is a bit before the gas station).
    At the end 0.982 is the point were speed limit sign for the roundabout are positioned, so I've set the limit to 43 kph and then after the 40 limit is removed by the next sign I've allow the AI to accelerate to 85 kph again.
     
    Last edited: Jun 21, 2017
    • Like Like x 1
  8. RasmusP

    RasmusP
    AC Stuff and G27 help Staff Premium

    Messages:
    1,981
    Ratings:
    +734
    Thanks for that long and detailed answer!
    The maxspeed entries are new to me!
    Fantastic work from you and thank you for spending your time to create this mod :)
     
    • Like Like x 1
  9. schnipp

    schnipp

    Messages:
    299
    Ratings:
    +150
    Thanks.

    I didn't know the maxspeed existed as well, it was Michael Hornbuckle who showed this feature, hence the credit I gave him in my release. But he did his mod as one speed setting for the whole track, but I wanted to try if it's possible to have it segmented into different speed zones.
     
    • Like Like x 1