1. Thread posting restricted: Only the BeamNG team members can post new threads in this sub-forum in order to prevent spam. Posting is available on unlocked threads.

Script AI Preview

Discussion in 'Microblogs' started by tdev, Dec 14, 2018.

  1. Яeverse Bass

    Яeverse Bass
    Expand Collapse

    Joined:
    Oct 31, 2014
    Messages:
    181
    The AI system is very nice in general, but at the same time there's just too many problems. When there's a flat road, the AI basically always overshoots it, Strange thing is, it's not even when I'm cornering as hard as possible, which leads me to believe it's just an error in the programming. At the same time, when there's some heavy banking, the AI just undershoots it very, very heavily.
     
  2. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    thanks for your feedback - video please :)
     
  3. IAchievedBacon

    IAchievedBacon
    Expand Collapse

    Joined:
    Jul 3, 2017
    Messages:
    2,821
    One thing I would like for the Script AI to have is for it to take input from vehicle specific controls. For example, say you had independent rear steering set to RB and LB on an Xbox controller. The AI doesn’t recognize that you’re using both front and rear steering because it only recognizes front steering. But I’m just not sure if this is planned, already ingame, or if it’s even possible.o_O
     
  4. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    This is planned, but not implemented yet :)
     
    • Like Like x 2
    • Informative Informative x 1
  5. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Hmm, if there would be way to bind keys to record/stop recording current, play/stop all, so that one could use controller button to start stop such activities, that might open some interesting possibilities.

    Play all would be useful for example if one records a racing run and wants to race against that run, that way one could start race easily etc.

    If play button of specific vehicle would have button bind next to it to bind toggle of play/stop to controller button, that too might be useful, you could for example play vehicle 3 then bit later press play for vehicle 2.

    Might be difficult to implement though.
     
  6. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    Okay, took me some hours ... :|

    Demo's recording, saving and loading with another vehicle

    Video - Click to Play - Direct Link
     
    • Like Like x 10
  7. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    The last hotfix improved this feature a lot, please test it in 0.15.0.2 :)
     
    • Like Like x 2
  8. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    recorded the path once, loaded the recording into multiple vehicles.
    Video - Click to Play - Direct Link
     
    • Like Like x 7
  9. Cooldriver10

    Cooldriver10
    Expand Collapse

    Joined:
    Feb 22, 2017
    Messages:
    1,898
    In the video, on the first time it was in sic, but on the second time it made an error.
     
  10. Яeverse Bass

    Яeverse Bass
    Expand Collapse

    Joined:
    Oct 31, 2014
    Messages:
    181
    No rec software. But it's very, very common for the AI to overshoot the path. Can't you make some kind of aggression slider for the AI to be slower when cornering and more precise in regards to the recorded position? And better and earlier braking please! The AI just loses control when it comes to driving at the limit (thus the AI should be more cautious, because it just doen't drive good ;P).

    Also, when the AI spins out and goes (a certain amount?) off course it doesn't follow the path anymore how it should, it just seems to skip a great portion of it...

    Guess the banking issue was because it was on a mesh. The AI can't properly navigate the big oval on Gridmap. Not sure about Light Runner mode.
     
  11. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Where is the script AI at I cant find it in game
     
  12. Danny Werewolf

    Danny Werewolf
    Expand Collapse

    Joined:
    Mar 31, 2017
    Messages:
    2,268
    Try CTRL+F10 (It's what I use, might just be F10)

    Or change the toggle for that feature, whatever it's called.
     
    • Like Like x 2
  13. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Thankyou!
     
  14. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    The video in the first posts also provides a quick 'how to'
     
  15. DuneWulff

    DuneWulff
    Expand Collapse

    Joined:
    Apr 25, 2016
    Messages:
    1,034

    ...and I see many promising uses :D
     
    • Agree Agree x 2
  16. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    Is it also possible to have the AI "loop" without resetting the car at the beginning?

    Currently when the "loop" option is turned off the car will roll to a stop when it reaches the end of the recorded path, and when the "loop" option it turned on the car will reset back to the beginning when it reaches the end.

    Is it also possible to loop without resetting, so the car will drive to the first point of the recording when it reaches the end, but still be damaged and have the same speed?

    (it probably won't work well if the recording's start point is far away from the end point, but if the recording is e.g. driving a lap around a race track it would be nice.)
     
  17. The Gas Station

    The Gas Station
    Expand Collapse

    Joined:
    Jul 14, 2016
    Messages:
    272
    Will you be able to load an AI script into a scenario? It could really help with scenario creation.
     
  18. Cooldriver10

    Cooldriver10
    Expand Collapse

    Joined:
    Feb 22, 2017
    Messages:
    1,898
    This is kind of on topic, AI scripting = more car chases scenes recreated.
    Examples:
     
  19. RAINY

    RAINY
    Expand Collapse

    Joined:
    Apr 29, 2017
    Messages:
    152
    U LIKE THE DART AND THE HELL IS THE DART
     
  20. BeamNG.Lover2002

    BeamNG.Lover2002
    Expand Collapse

    Joined:
    Nov 6, 2018
    Messages:
    188
    The script AI works gr8 but the only problem is I drove a T Series through Italy to the airport from one of the towns and when I hit play after recording it the truck took a slightly wider path on the first corner and got stuck on a balcony so I had to re-record it so I wish that the Ai would take the exact same path:(. Another problem is under half throttle when recording because when playing the recording it would accelerate and brake non stop like it was on drugs(pun not actually on drugs).:p

    But other then that it is a feature that everyone enjoys and makes this game 21% better as this game is already so incredible:);):cool::p
     
  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