Outdated Traffic Tool 1.2.1

It's here! Create dynamic traffic on almost any map!

Thread Status:
Not open for further replies.
  1. B727ClassicFlyer

    B727ClassicFlyer
    Expand Collapse

    Joined:
    Feb 9, 2013
    Messages:
    2,183
    Do the AI traffic here follow road rules or something? Just curious because I want to see if I can get a car pulled over or something...
     
  2. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Traffic is pretty basic, it uses the original BeamNG AI logic, plus the drivers are aware of other vehicles directly in front of them. They can be idiots at intersections and other road layouts. In future updates, as I learn more about programming, they'll be smarter and more interactive. I have a long way to go.

    I'm disabling the "auto activate" feature in my app now, as it's causing new problems to deal with.
     
    • Like Like x 4
  3. B727ClassicFlyer

    B727ClassicFlyer
    Expand Collapse

    Joined:
    Feb 9, 2013
    Messages:
    2,183
    Definitely looking forward to seeing this interesting traffic app.
     
    • Agree Agree x 1
  4. cgjunk

    cgjunk
    Expand Collapse

    Joined:
    Mar 1, 2015
    Messages:
    85
    I give my blessing on any neural network coding you are doing. Except for one exception.... I dont want my computer to start talking nonsense like “I’m sorry Dave, I cant do that.”

    If I start to hear any back sass whatsoever, I’ll have my computer singing Daisy just as fast as I can rip the side case off and start pulling wires.

    Edit: just noticed bob.blunderton’s Deal Gap and the traffic app mentioned together in one sentence. Mind blown, Im speechless. I’m going to need a mininute...
     
    • Agree Agree x 1
  5. powerwindows83

    powerwindows83
    Expand Collapse

    Joined:
    Aug 1, 2016
    Messages:
    16
    im just waiting for a "follow player without rear ending them" feature in the ai app, and also something that allows them to go proper banger racing without continuously standing on the gas and getting stuck against other vehicles on the track
     
    • Agree Agree x 2
  6. cgjunk

    cgjunk
    Expand Collapse

    Joined:
    Mar 1, 2015
    Messages:
    85
    Seriously man, you are some sort of mind reader. Exactly the type of suggestion Id feel embarrased to ask for (because Id feel like an ingrate for soing so). And you’ve already thought of it. Minimizing the app would add even more to the realism.
     
    • Agree Agree x 1
  7. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Hahaha, yeah! I feel like it's not even supposed to work, I coded it badly as I'm awful at AngularJS. But yeah, I got annoyed with having the official AI Control app in my way at times, so I tried my best to do this feature.

    Likely doing the app release tomorrow. Going through things with a fine toothed comb now.
     
    • Like Like x 3
  8. Richard

    Richard
    Expand Collapse

    Joined:
    Aug 20, 2013
    Messages:
    53
    I'm so stoked for this, been checking this thread every day :)) I can't wait omgg lol
     
    • Agree Agree x 1
  9. YellowRusty

    YellowRusty
    Expand Collapse

    Joined:
    Nov 9, 2016
    Messages:
    1,202
    Are you and I on the same wavelength regarding potential uses for this thing?
    screenshot_2019-02-18_19-50-43.png screenshot_2019-02-18_19-53-30.png screenshot_2019-02-18_19-54-16.png
     
    • Agree Agree x 1
  10. bob.blunderton

    bob.blunderton
    Expand Collapse

    Joined:
    Apr 3, 2015
    Messages:
    3,289
    Going to do my best to get a race coded for going each way on Deal's Gap - never had a mission in my maps yet (exception: ones made by others, yes)...
    Would need Gamergull's help for-sure on that.
    @Gamergull take all the time one needs to make a fixed version of your app. So entirely going to mess with this and put as many cars in the map as I can until it goes below 30fps.

    Do they follow one-way roads or is it only by the rules of 'random driving'? I have a lot of highway (one-way) roads in my maps.
     
    • Like Like x 2
  11. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Yes! Ooh, I really wanna go in depth with this. For decalRoads with "one way" ticked on, traffic will automatically spawn facing the correct direction, and will therefore drive that way. I'm playing on the Mount Glorious map right now, and all the decalRoads are actually one lane & one way, as a workaround for left lane driving. As a result, traffic spawns and drives excellently there :) . For maps that don't have one way roads where they should be (biggest offender is WCA, argh), I added a chunk of code that detects if there's a parallel road that could be a highway. If it finds one, it tries to logically spawn traffic facing the right direction. You will see this in action in Utah (works about 90% of the time) and in WCA (works... about 70% of the time). It's hard to get perfect results, and I would prefer that the roads get corrected in the future.
     
    • Like Like x 3
  12. bob.blunderton

    bob.blunderton
    Expand Collapse

    Joined:
    Apr 3, 2015
    Messages:
    3,289
    Glad it 'sees' one-ways!
    Your ECA traffic mod 'free roaming' like mission is what this entire game should revolve around.
    IT'S THE GOD OF BEAMNG.DRIVE. No, really, I mean it. Flying down the road and completely broadsiding someone pulling out in-front of you?
    It's so much more fun and invigorating, employing all my senses so much better even just to keep on the road!
    I'm going to try and 'reskin' your ECA traffic mod into something that'll work on Tail of The Dragon. I think it will be awesome (I just want to test, and show you the concept, you can then correct anything if it needs it, or adjust to suit your own standards, and release). I have to work on my Tail of The Dragon (Deal's Gap) map anyways this week and fix it up a bit (along with Nevada Interstate and Roane County TN).
    Entirely made of awesome. Will 100% be checking out this traffic tool for free roam when you've buttoned up the code a bit more. That will sure take the leg-work out of AI testing to say the absolute least. On a more applicable note, it'll allow me to test AI much more efficiently in a limited time-frame.
    My 4.4ghz (all core speed) i7 4790k happily ran 40~60fps or better with cranked up reflections on an RX 480 8gb card - with 7 AI vehicles. I almost wanted more (who doesn't?).
    The AI was differing in driving styles, and I could even switch it to flee or chase just by moving over to the signs. Brilliant.
    Now I know you're thinking 'this is just the traffic tool not the ECA traffic mission/mod', but on-point, I do know this. I just wanted to say thanks.
    I will have a review in on it this week on your resource page for it, deservedly so.

    It's just one of those things where you pause and say, 'how did I ever live/play this game without this?'.

    --Cheers & TY

    EDIT: Why isn't this part of the base game?
     
    • Agree Agree x 3
  13. Blood-PawWerewolf

    Blood-PawWerewolf
    Expand Collapse

    Joined:
    Jan 18, 2016
    Messages:
    654
    More like, Why hasn’t BeamNG hired this guy already?
     
    #33 Blood-PawWerewolf, Feb 19, 2019
    Last edited: Feb 19, 2019
    • Agree Agree x 7
    • Informative Informative x 1
  14. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Haha, thanks! I think I'm gonna have to port the code from my app to my ECA scenario; a lot has changed under the hood, and I seem to improve something every day. I don't think I've played on Tail of The Dragon, I'll have to check it out. But yeah, I'm fascinated by traffic in other driving games, so I wanted to figure out how to do it in this game. This whole process feels like a natural progression, from learning the basics of Lua, to figuring out how to teleport cars, to this stuff now. I don't even wanna know how many hours I put into this; probably a good chunk of my 688 hours in total.

    traffic-app-mount-glorious.jpg

    Soon.
     
    • Like Like x 8
  15. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460


    A quick look in video form! It only covers a handful of the features in this app.

    The lower resolution and larger UI was intentional.
     
    • Like Like x 9
  16. fyamil2

    fyamil2
    Expand Collapse

    Joined:
    Jan 29, 2019
    Messages:
    28
    Wow! Amazing :eek:
     
    • Agree Agree x 1
  17. Chat's7

    Chat's7
    Expand Collapse

    Joined:
    May 21, 2014
    Messages:
    148
    Yep, amazing !!

    The app choose randomly on all vehicle installed in game ? Color and model are random ? We could be choose a class like, truck, fullsize, racing, etc :)
     
  18. Danny Werewolf

    Danny Werewolf
    Expand Collapse

    Joined:
    Mar 31, 2017
    Messages:
    2,268
    When did teleporting cars cause no lag? So confusing, I can't rack my head around the lack of lag....well maybe I can, my laptop is s**t
     
  19. B727ClassicFlyer

    B727ClassicFlyer
    Expand Collapse

    Joined:
    Feb 9, 2013
    Messages:
    2,183
    Can't wait to do screenshots with this. :D
     
  20. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    It chooses from most of the stock vehicles! Choosing a class is a really good idea, I'll try to do that for V1.1.

    There's been less respawn lag since the 0.15 update. Not sure how well crappy systems will run this, but I guess I'll see.
     
Thread Status:
Not open for further replies.
  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