Unsolved How to connect traffic lights with Traffic Signal intersection/controller?

Discussion in 'Mod Support' started by Experimental Pilot :-), Feb 28, 2023.

  1. Experimental Pilot :-)

    Experimental Pilot :-)
    Expand Collapse

    Joined:
    Sep 15, 2021
    Messages:
    18
    Im updating my map, Buckyville Island, and have traffic lights at an intersection. I set up the Traffic Signal Intersection and Controller tools but the light wont correspond with the controller or intersection.
     
    • Agree Agree x 1
  2. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Hi. I'll try to help with this. The Traffic Signals tool usage is not obvious sometimes.

    Do you have your actual traffic light objects set up in the map? Do they support dynamic instanceColor? (See attached image for an example, this light shows up as "green")
    If yes, were you able to get any results from the Select Objects button (and then clicking & applying the traffic light object)?
     

    Attached Files:

    • dynamic-traffic-lights.png
  3. Experimental Pilot :-)

    Experimental Pilot :-)
    Expand Collapse

    Joined:
    Sep 15, 2021
    Messages:
    18
    I u
    I used the traffic lights from ECUSA but when i do the find objects it come up with nothing. It shows items selected when i select them manually and up all the lights come on at once in the right colors but they dont change at all even though it shows the cycle when simulating the traffic controller
     
  4. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Alright.
    I took a closer look, and it actually seems that the Find Object function is bugged at the moment. It will need to get patched in an update.
    Fortunately, there is a way to manually set up the traffic light objects. Select the traffic light object with the main Object Select tool, and then in the Inspector (right panel), go all the way down to Dynamic Fields. Add a field named intersection, and give it a value matching the intersection name. Add a field named phaseNum, and give it a value matching the phase # from the traffic signals tool. See attached image. I hope this works for you.
     

    Attached Files:

    • traffic-light-fields.png
  5. Experimental Pilot :-)

    Experimental Pilot :-)
    Expand Collapse

    Joined:
    Sep 15, 2021
    Messages:
    18
    It still isnt working idk if im doin smth wrong but all 3 lights still come on at once even after doing what you said
    upload_2023-3-8_15-28-42.png
    upload_2023-3-8_15-29-45.png
     
  6. Experimental Pilot :-)

    Experimental Pilot :-)
    Expand Collapse

    Joined:
    Sep 15, 2021
    Messages:
    18
    is there smth wrong in these pics?
     
  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