SOLVED how can i make AI path?

Discussion in 'Tracks' started by Ghostnasty1, Apr 15, 2015.

  1. pyge

    pyge New Member

    Joined:
    Jun 16, 2018
    Messages:
    18
    Likes Received:
    2
    "Start recording" for the fast_lane and "start pits" for the pitlane.
     
  2. eg01st

    eg01st Member

    Joined:
    Sep 17, 2018
    Messages:
    47
    Likes Received:
    13
    I'm making a track where first turn is a blind-right hand-down hill, so I have to brake a lot more than if it was flat, and the camber is not too positive. AI fast lane is recorded carefully, hugging the right side of road at all times. But the AI on second lap usually fly off the track, they just enter the corner too fast, despite my heavy braking before corner when recording the lap.
    Should I use AI app additional controls? I didn't find instructions in this thread about them, not sure how exactly to do that.
    Here is example of what the corner looks like:
     
  3. MGMetroDave

    MGMetroDave Active Member

    Joined:
    Apr 7, 2019
    Messages:
    141
    Likes Received:
    158
    Hi! In the data folder (under your main track folder) is a file called ai_hints.ini. Open that up in a text editor. You can add hints to help the AI deal with things like that. e.g.

    ;the left hand bend (you can put anything here. It's just a comment)
    [HINT_0]
    START=0.08
    END=0.10
    VALUE=0.595

    ;the drop
    [HINT_1]
    START=0.227
    END=0.247
    VALUE=0.35

    ;the kink. Don't back off too much!
    [HINT_2]
    START=0.297
    END=0.32
    VALUE=1.35

    So START and END are the start and end points for the hint. 0 is when you cross the start of the AI spline and 1 is the end of the spline (1 lap). So 0.3 is 30% through the lap. You can find these values easily using the AI line helper app (https://www.racedepartment.com/downloads/ai-line-helper.16016/). It tells you the number as you drive the lap. Just plug these numbers in where they fit.

    VALUE = This is the value of how much the ai should push in comparison with default. e.g. 0.9 = back off a little, 0.5 = back off quite a bit and drive more slowly, 1 = drive normally (you wouldn't use this as this is the default value), 1.4 = drive wrecklessly :lol:

    Hope this helps. There are other tweaks possible in the AI_HINTS.INI file but I don't know enough about them to advise. The above use is the most common.
     
    EKO Sim-Racing likes this.
  4. eg01st

    eg01st Member

    Joined:
    Sep 17, 2018
    Messages:
    47
    Likes Received:
    13
    Thank you very much!
    This is the first time I hear about ai_hints.ini, seems like quite an easy fix for my problem.
     
    MGMetroDave likes this.
  5. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    49
    Likes Received:
    2
    Thanks
    I make
    1. AI app on
    2. START recording
    3. drive slow just before START LINE
    4. accross again START LINE (see new line Ciano color)
    5. press STOP RECORDING but never stop record
    6. try SAVE ai, but never save .candidate file in YOURTRACK\ai folder
    What wrong?
    AC ver 1.6.3 (last version)
    Thanks
    Giovanni


     
  6. Won

    Won New Member

    Joined:
    Aug 21, 2016
    Messages:
    25
    Likes Received:
    18
    Location:
    Spain
    Go one more lap!

    Are the beginning and end of the cyan line joined?
    If they are not, take another lap until you see that they join.

    And about the point 5, do not worry, never stop recording, be sure to click "save AI" ,with that it should be enough.
    btw!.. you can do it at any speed, don't worry about it!

    :)
     
  7. giovanni pasolini

    giovanni pasolini Member

    Joined:
    Feb 11, 2018
    Messages:
    49
    Likes Received:
    2
    Thanks,
    about the point 5 seem recor file not when push stop, but when leave the track and return to panel AC
    Gio
     
  8. Terden

    Terden New Member

    Joined:
    Apr 9, 2020
    Messages:
    2
    Likes Received:
    1
    [​IMG]
    I have made a cross-over track.
    The AI on the top road temporary slows down where it crosses the AI-line on the bottom road. Almost like it doesn't know which AI-line to choose.
    It doesn't do this the other way around; on the bottom road the AI keeps on going like it should.
     
  9. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    833
    Likes Received:
    284
    Is the track all in one mesh? try to cut the road into pieces, especially the crossing parts should be two different meshes. But not sure if it helps.
     
  10. Terden

    Terden New Member

    Joined:
    Apr 9, 2020
    Messages:
    2
    Likes Received:
    1
    That indeed solved it, thank you.
    Only now I can't beat my own AI anymore
     
    fughettaboutit likes this.
  11. Ariel Suraniti

    Ariel Suraniti Member

    Joined:
    May 2, 2020
    Messages:
    73
    Likes Received:
    6
    I have a big problem. I am converting some circuits to assetto. I already made several. However, in some, the cars barely start, go against the pit wall and stay against it. Despite doing the correct procedure of doing the ai first, then using the ai helper, shifting those limits and performing the ai again.
    Regarding the definition of materials, everything is fine (boxes is 1pit_; asphalt is 1road_; the walls are defined as 1wall_)
    Can anybody help me?
    Cheers
     
  12. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    833
    Likes Received:
    284
    when recording the new ai line, everything else but your road-mesh in your surfaces.ini should be set to IS_VALID_TRACK=0

    if you dont do this, ac will assume it can drive anywhere, also in the pits, if you use your normal "surfaces.ini" with pits set to valid

    another thing that should fix this (i dont know for sure)
    would be recording side_r.csv and side_l.csvwith ai-line helper and using those with the "holding-shift at ac-start" method
     
  13. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    833
    Likes Received:
    284
    (maybe also keep curbs valid, not only road)
     
  14. Ariel Suraniti

    Ariel Suraniti Member

    Joined:
    May 2, 2020
    Messages:
    73
    Likes Received:
    6
    Road to? I recorded left and rigth sides.
     
  15. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    833
    Likes Received:
    284
    set road to valid, all others to invalid
    upload_2020-5-25_4-28-26.png
     
  16. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    833
    Likes Received:
    284
    seems like its not enough to have side_r/l.csv
     
  17. Ariel Suraniti

    Ariel Suraniti Member

    Joined:
    May 2, 2020
    Messages:
    73
    Likes Received:
    6
    thanks a lot. Solved it
     
    fughettaboutit likes this.
  18. Ariel Suraniti

    Ariel Suraniti Member

    Joined:
    May 2, 2020
    Messages:
    73
    Likes Received:
    6
    I have another problem. On some tracks, ia cars start too slow. They barely move ...
    The ai is perfect, the cars go where they belong and set very good lap times, difficult to match.
    But this about the start, I can't fix it.
    What could it be?
     
  19. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    833
    Likes Received:
    284
    should not happen without CustomShadersPatch, with it enabled, set ai strength and aggression to 100%, thats a long lived bug ;(
     
  20. Ariel Suraniti

    Ariel Suraniti Member

    Joined:
    May 2, 2020
    Messages:
    73
    Likes Received:
    6
    I tried all this that you tell me, but the same thing happens to me. Could it be that you have to see the distance between the starting drawers of each car?
     
: #AI path
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice