1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.35 Bug Reporting thread
    Solutions and more information may already be available.

Traffic flow in BeamNG

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by hw06531, Jul 6, 2017.

  1. hw06531

    hw06531
    Expand Collapse

    Joined:
    Jul 6, 2017
    Messages:
    8
    Hello. I am studying how to use machine learning to avoid traffic accidents in autonomous driving in BeamNG

    I have some questions about implementing a traffic simulation in BeamNG:



    1) How can I define a traffic flow (i.e., control every car) in BeamNG?

    2) How can I make and control traffic signals and modify the behavior of a car in response to a traffic signal?

    3) How can I make pedestrians?


    I hear that some MODs for BeamNG can provide some of the above functions.

    I would appreciate if you can tell me what they are.


    Actually, I am also looking into implement a MOD myself.

    Can you tell me which software tools I should use to hack into BeamNG to turn it into a traffic simulator?

    Or there is opensource BeamNG?

    Thank you very much for your reply
     
  2. KJP12

    KJP12
    Expand Collapse

    Joined:
    Jul 26, 2016
    Messages:
    669
    This is a nice idea. Better AIs in general.

    However, there is no open source BeamNG.drive that I know of. You might be able to hack some code into Drive, but without any source to go off of, that would be a hit and miss kind of deal.
     
  3. ManfredE3

    ManfredE3
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    2,467
    Why would you want to use this game? There are plenty of games/software much better suited to simulating all of the above.
     
  4. TechnicolorDalek

    TechnicolorDalek
    Expand Collapse

    Joined:
    Dec 6, 2013
    Messages:
    1,026
    https://rigsofrods.org/

    AI exists, I don't know what state it's in though. Rigs of Rods continues to be developed and is open source, it's the progenitor for BeamNG that several of the BeamNG developers worked on first.
     
  5. KJP12

    KJP12
    Expand Collapse

    Joined:
    Jul 26, 2016
    Messages:
    669
    Probably because it is the most realistic game for driving, crashing etc. So that is maybe why he wants to. But true that there is other games and software that is better suited for this kind of stuff.

    Also...
    Rigs of Rods could be a good alternative if you still want soft body physics, and it is open source too, meaning you can actively change the AI there.
     
  6. hw06531

    hw06531
    Expand Collapse

    Joined:
    Jul 6, 2017
    Messages:
    8

    Thank you for answer. The problem is that there is no open source. Do you know what sources are on the Github? https://github.com/BeamNG
     
  7. hw06531

    hw06531
    Expand Collapse

    Joined:
    Jul 6, 2017
    Messages:
    8
    Reply to ManfredE3 //
    KJP12 gave ManfredE3 exactly the answer I wanted. Is there an example of another suitable simulation game/software?
     
  8. jojos38

    jojos38
    Expand Collapse

    Joined:
    Oct 22, 2013
    Messages:
    1,069
    You can just go in beamng installation folder and into lua folder, everything is there
     
  9. ManfredE3

    ManfredE3
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    2,467
    I don't really see the need for soft body physics or individual system simulation for simulating traffic, but I guess if you really want it RoR is probably a better option as others recommended for the whole open source thing and all that. Just for traffic simulations there are many driving/city/transportation simulators available which can run enough vehicles to make a decent size vehicle simualtion viable. I don't really do anything software related so I can't recommend anything specific, but there are so many of them out there I am sure it won't be hard to find one easy to modify that already has pedestrian/traffic infrastructure in place (most of the major city simulator games for example).
     
  10. CaptanW

    CaptanW
    Expand Collapse

    Joined:
    Aug 18, 2014
    Messages:
    1,095
    1) How can I define a traffic flow (i.e., control every car) in BeamNG? You cant

    2) How can I make and control traffic signals and modify the behavior of a car in response to a traffic signal? You cant

    3) How can I make pedestrians? You cant
     
  11. Rainvest

    Rainvest
    Expand Collapse

    Joined:
    Dec 26, 2014
    Messages:
    1,906
    You could have different controllers in multiseat but I'd doubt that would work. That's how most of those dashcam crashes videos work. It's quite possible but very challenging.
     
  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