1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

why do only some cars spawn in traffic when using the new simplified traffic settings?

Discussion in 'General Discussion' started by ned228, Oct 7, 2022.

  1. ned228

    ned228
    Expand Collapse

    Joined:
    Jul 18, 2014
    Messages:
    269
    Hi
    I am using the simplified traffic settings. However, when I turn that setting on only a couple of the cars spawn in traffic. And they spawn over and over again. There is no variety. However, when I turn off this setting, the normal variety of cars spawn instead of the 5 or so that spawn otherwise. I did notice that not all cars have simplified traffic parts and wonder if this is related. If it is related, why don't all cars have simplified traffic parts?
    Thanks
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,237
    Because it takes some time to add those simplified parts... They had no time to add them to all cars yet but in the future they will all have them probably
     
  3. r3eckon

    r3eckon
    Expand Collapse

    Joined:
    Jun 15, 2013
    Messages:
    529
    Best thing you can do to have simplified traffic with more variety is a custom vehicle group that includes all vehicles, using simplified variant configs when they exist. So your performance would fluctuate, worst when it's all full detail vehicles and best when it's all simplified variants. I don't think they can be used with circular menu traffic so you have to use lua script or flowgraph. Using multiple groups you can get a bit more control over traffic. For instance you can make it so there's only a certain amount of cops at any time, same with trucks or other crazy modded vehicles you would want to spawn less often than regular traffic. For more variety with the best performance you make a group with full detail vehicles and use it to only spawn 2-3 vehicles. So all vehicles are there but there's less of the full detail ones so you got more stable performance than a single group with both low and full detail vehicles included.

    This is what I use to keep a set amount of cops on the map. The JSON file loaded is what you get when you export spawn groups.



    Flow goes through these nodes in order:
    1. Load JSON Table
    2. Spawn Vehicle Group (outflow from "loaded" arrow)
    3. Traffic Activator
    4. Repeat 1-3 for other spawn groups. Spawn Vehicle Group needs active flow but Traffic Activator received an impulse. So turn on a flow switch that has constant flow to it using the impulse from Traffic Activator.
    5. From the last Traffic Activator send flow to Traffic Parameters, the impulse is fine this time
    6. End with Scatter Traffic to teleport traffic away from player
    Maybe there's another way to do it I'm missing but that's what I've been using for my mod. I think it might be nice if the game let us use custom vehicle groups for traffic using the circular menu.
     
  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