Released nascar script ai turning fix

Discussion in 'Utilities and programming' started by vouthin, Oct 3, 2023.

  1. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    (this is my first ever post in the forums so take this with a grain of salt i guess? and english isnt my native language so forgive me if the wording or anything is bad)

    ive had issues with the script ai in the past, like a lot. specially one where the ai just understeer/brake more than necessary whenever they take a turn very fast. unfortunately i couldnt find a single solution in the forums

    sooo i decided to fix it myself.


    its a very simple solution, all i did was increase the steering and decrease the deviation coefficients in the code. but i hope this helps with your recordings

    please keep in mind that this adjustment will impact ALL script ai paths, including those unrelated to nascar. this means that even non-nascar-related paths can be affected, as the car will not brake as aggressively when deviating too much from the path. however, I believe this change could also benefit those recordings in some way.

    (I have no idea if this was already a known solution or if its fixable within the game itself, if thats the case i probably didnt look deep enough. If it isnt then im surprised no one tried this before since its a very easy fix.)

    How to install:
    1. go to your installation folder
    2. go to lua/vehicle
    3. drop the file there
     

    Attached Files:

    #1 vouthin, Oct 3, 2023
    Last edited: Oct 3, 2023
    • Like Like x 4
  2. beam master381

    beam master381
    Expand Collapse

    Joined:
    Jul 27, 2023
    Messages:
    10
    only if my game didnt be dumb
     
  3. LDogg48_Gaming

    LDogg48_Gaming
    Expand Collapse

    Joined:
    Jun 26, 2022
    Messages:
    704
    I may have to try this later. It would have saved me time while making this monstrosity:
     
  4. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    note: it works even better if you increase the static friction in the asphalt
    --- Post updated ---
    just a tip: if you plan to record a lot of cars at once you can put slow motion and then speed up the recording when editing, it will make it look smoother
     
    #4 vouthin, Oct 3, 2023
    Last edited: Oct 3, 2023
  5. indo2711

    indo2711
    Expand Collapse

    Joined:
    Oct 1, 2023
    Messages:
    2
    vouthin pro
     
  6. LDogg48_Gaming

    LDogg48_Gaming
    Expand Collapse

    Joined:
    Jun 26, 2022
    Messages:
    704
    I know. I just don't usually do it because it kills the sound.
     
    • Like Like x 1
  7. astid

    astid
    Expand Collapse

    Joined:
    Oct 3, 2023
    Messages:
    1


    I got the game like 7 months ago, I wanted to set up the AI but I was too lazy to, can you tell me how to set up the AI to follow this?
     
  8. LDogg48_Gaming

    LDogg48_Gaming
    Expand Collapse

    Joined:
    Jun 26, 2022
    Messages:
    704
    You still have to do it yourself. This just makes the ai follow the paths better.
     
    #8 LDogg48_Gaming, Oct 4, 2023
    Last edited: Oct 4, 2023
  9. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    Hey, sorry for having to make you wait but you inspired me to make a nascar ai tutorial lol, here:
     
  10. s13g39_crashes_and_flips

    s13g39_crashes_and_flips
    Expand Collapse

    Joined:
    Apr 5, 2022
    Messages:
    231
    Does It work with the old daytona track? If you wanna see it look at my yt vids.
     
  11. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    as long as your line doesnt hit the wall, it should. this just helps to make the ai turn more and not brake as often
     
  12. LoganoFanGG22

    LoganoFanGG22
    Expand Collapse

    Joined:
    Feb 24, 2024
    Messages:
    1
    I can not find the LUA/vehicles folder in my game to put the mod into, so where do I put it?
     
  13. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    your game physically cannot work if you dont have those folders so you SHOULD have them. and no you cant put it anywhere else other than the place i mentioned.
    upload_2024-2-25_15-0-2.png
    upload_2024-2-25_15-0-23.png
     
  14. andrewtrollz

    andrewtrollz
    Expand Collapse

    Joined:
    Oct 22, 2022
    Messages:
    21
    You should be able to find it by doing this process. File Manager / Program Files (x86) / Steam / steamapps / common / BeamNG.Drive / lua / vehicle.
     
  15. FoxxyplayzBeam

    FoxxyplayzBeam
    Expand Collapse

    Joined:
    Aug 15, 2023
    Messages:
    101
    quick question is the sound still bugged?
     
  16. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    wdym?
     
  17. FoxxyplayzBeam

    FoxxyplayzBeam
    Expand Collapse

    Joined:
    Aug 15, 2023
    Messages:
    101
    look
     
  18. vouthin

    vouthin
    Expand Collapse

    Joined:
    Jan 3, 2022
    Messages:
    48
    its a slow motion thing, you can speed it up in recording playback and it will sound normal again.
     
  19. FoxxyplayzBeam

    FoxxyplayzBeam
    Expand Collapse

    Joined:
    Aug 15, 2023
    Messages:
    101
    alr
     
  20. s13g39_crashes_and_flips

    s13g39_crashes_and_flips
    Expand Collapse

    Joined:
    Apr 5, 2022
    Messages:
    231
    I am using the updated daytona now. what track does this ai work on?
     
  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