AIW Editing - some Videos

Discussion in 'Track Modding' started by redapg, Jun 1, 2022.

  1. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    Hello Ruben, i've never seen the AI behaving like that. :)
    It could be a Problem with the Corridors.
    In the Video, i did use 3DSimEd only to position the Car on the Track, when there are no Garages from an old AIW already and Coordinate 0,0,0 is not on a drivable Part of the Track and to check where the X Objects are, so no, that is not necessary for what you want to do.
    For which Track do you want to create a Pitlane?
    And what exactly did you do, did you, for Example, create a new Waypoint Path for the Pitlane?
    If you want, you can send me the AIW File with that it happens and a Link to the Track for that it is, that i can check it.
     
  2. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    924
    Likes Received:
    6,278
    This can be fixed by smooth branch path line connection between pitlane & main road path, as this is almost always required after you added a new pitlane path that connected to main path.

    Just follow those steps (carefully):

    1. you have to drive your car near the end of pit lane path, then switch to 3rd person view, adjust viewing distance further away from car & rotate if needed (and probably best to pause game before editing AIW).

    2. click "path sub menu", then on the 3rd line (Visible/Actionable path), click droplist and select "FASTEST". now you can see a white line following along main road & pitlane waypoints (and you will notice that).
    upload_2022-6-27_11-15-52.png

    3. go back to previous page, click "show/hide menu", then check "hide main waypoints" & "hide special waypoints". After that, only pit lane waypoints & white path are visible (this step is to make manual way points selection easier).
    upload_2022-6-27_11-20-42.png

    3. now use left mouse button to drag & select first few waypoints that is near the end of pit lane path. As below:
    After selection (make sure every selected points are next to each other).

    now, rf2 provides two method for normalize(smooth) path, as "non-linear Interpalation enable" & "linear Interpalation enable" shown below. You will have to test to see which works best for your selected path. Once decided, click "normalize curve" to smooth the white line path. (it is best that you make backup file first)
    upload_2022-6-27_11-27-45.png

    4. if everything goes well, you can turn back on main path and see that pit lane exit path now joins with main road path better & smoother. And now you will have to repeat this process for pit lane entry waypoints as well, and other path type (left, right, block path) may also need those adjustments.
    upload_2022-6-27_11-26-9.png

    5. now, if you did not get good results from step 3 "normalize curve", then you have another option, which is to adjust each way points manually.

    To do it, select only one way point at a time (once you are familiar, you can select more points for group moving), then hold "left ctrl" key and press left or right arrow keys, this will shift white path line, such as below (exaggerated):
    upload_2022-6-27_11-36-52.png
    You can also hold "right ctrl" + left or right arrow keys, which moves white line faster. Or, hold "left ctrl + left alt + left/right arrow keys" to do "fine" adjustments.

    With enough time and patience, you can achieve very good results from manual adjusting. This also applies to main road path line.

    Note:
    it is best to enable "show Speed text" in "path sub menu" for manually adjusting way points for main path line, those speed text indicates relative speed that AI will aim for when heading into a corner. If speed value is inconsistent or too low/high, AI will have issue going through some corners or lead to crashes. Those speed text will change when manually move path line. You can also manually adjust speed text by holding "left ctrl + up/down arrow keys", or "left ctrl + left alt + up/down arrow keys" for fine adjustments. (one of the most important feature)
    upload_2022-6-27_11-48-8.png
     
    Last edited: Jun 27, 2022
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    I did describe the Smoothing in my Videos. ;)
    But even with an "unsmoothed" Path, i have never seen the AI behaving like @Ruben Cerlem has described.
    So i asked what exactly he did.

    EDIT I understand his Post in that Way, that the AI steers left-right-left-right... along of the whole Pit Path.
    If it happens only, when the AI joins the main Path, coming from the Pit Path, it indeed is the Smoothing. But as said, i did describe that in my Video already.
     
    Last edited: Jun 27, 2022
  4. DJCruicky

    DJCruicky Registered

    Joined:
    Jan 25, 2012
    Messages:
    1,592
    Likes Received:
    1,121
    The AI would act like that if he has not done the 'Find Corridors' on the points of his new pit path.
     
  5. Ruben Cerlem

    Ruben Cerlem Registered

    Joined:
    Jul 9, 2017
    Messages:
    95
    Likes Received:
    37

    Thank you very much for the help. I couldn't answer before even though I read it. I'm going to get on it throughout the afternoon. Cheers
     
  6. Ruben Cerlem

    Ruben Cerlem Registered

    Joined:
    Jul 9, 2017
    Messages:
    95
    Likes Received:
    37
    I did a manual smoothing, but in the video I didn't see that I made those sharp turns of the wheel throughout the pit lane, without understanding why. I saw the video of waypoints and corridors 2 times, and I didn't find the solution, because it didn't happen, and I didn't know if the solution is the same, but the tutorial @svictor posted helped me, although the base on the video I already had it clear. It was that specific problem. Except for this problem, the rest of the lines were recorded fine.
     
  7. Frederick Alonso

    Frederick Alonso Registered

    Joined:
    May 29, 2020
    Messages:
    397
    Likes Received:
    2,648
    Thanks for the time and effort to put this up for the community
     
    redapg likes this.
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    Just to get it clear: do you have the left-right-left-right... Steering of the AI along of the whole Pitlane (that is what i understood) or only at the Moment when the AI moves from the End of the Pit Path to the main Path?
     
  9. Ruben Cerlem

    Ruben Cerlem Registered

    Joined:
    Jul 9, 2017
    Messages:
    95
    Likes Received:
    37
    No. I only recorded what is the route from the entrance to the pit lane, all the way along the lane, until the exit that I stretched to the first corner. In fact, the one I recorded was at the Barcelona circuit, a version apart from the 2021 steamworkshop version, but one that I use to learn.
     
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    It's getting more confusing now. :D
    What does "recorded" mean here?
    Can it be, that you try to record a Path from a Barcelona Replay, to a Barcelona AIW where you changed something that affects the Count of Waypoints?
    If yes, that won't work.
    If not, what exactly are you trying to do?
     
  11. Ruben Cerlem

    Ruben Cerlem Registered

    Joined:
    Jul 9, 2017
    Messages:
    95
    Likes Received:
    37

    What I'm trying to do is create a new line through the pit, from the input to the output, and have it join the fastest lines in both cases. I have achieved that, but the problem is that the AI is seen to turn the steering wheel to the right and left during that journey. And that's what I wanted to ask for a solution.

    By the way, when I created the new line, it was not from a replay, but directly.
     
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    What did you do to create the new Line?
    Did you delete the old Pitline Waypoints and make a new Waypoint Path for the Pitlane?
    Depending on what you did to create that new Line, there can be several Things that causes that strange Behaviour.
    Can you please upload the not working AIW File here?
     
  13. Ruben Cerlem

    Ruben Cerlem Registered

    Joined:
    Jul 9, 2017
    Messages:
    95
    Likes Received:
    37
    Ok. I've already hit a bug then. And it is that I simply hid the waypoints of the old pitlane, and I did not delete them as you have commented. I'm going to do the delete step and record the line again. Let's say that even if a new one is recorded, if the old one is not deleted, no matter how small the variation, it causes the search for both and that strange steering wheel turn. I try, and if it continues to give problems, I go to AIW, and the link of the circuit in which I have the problem.
     
  14. Garitt Gibsn

    Garitt Gibsn Registered

    Joined:
    Dec 13, 2017
    Messages:
    149
    Likes Received:
    236
    Hello all,
    first of all thanks to Chris for the videos. They are great.
    So now to one part, maybe someone can explain something to me:
    I record a path and can then select several options.
    But what is the "GENERIC PATH" all about?

    upload_2022-6-30_12-29-51.png
     
  15. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    You can take another Way to handle such Things.
    In this Case for Example, ask yourself if you miss an Option to create a Path that you badly need, when you create an AIW File.
    If not, simply don't care for it. ;)
    Like a lot of other Things too, also this one lacks of a Explanation/Documentation.
    You can now spend xxx Hours to maybe find out for what it is and how the AI uses it or can be forced to use it.... or (better) you go out, enjoy the Summer and get some Ice Cream. :)
     
  16. Garitt Gibsn

    Garitt Gibsn Registered

    Joined:
    Dec 13, 2017
    Messages:
    149
    Likes Received:
    236
    Hello Chris, you are right in your statement.
    I'm just a curious person.

    PS written from my smartphone in the ice cream parlour.
    (Good tip)
     
    redapg likes this.

Share This Page