The International Simutrans Forum

 

Author Topic: How does the Traffic Lights work?  (Read 272 times)

0 Members and 1 Guest are viewing this topic.

Offline emirkir se

  • *
  • Posts: 116
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
How does the Traffic Lights work?
« on: August 22, 2018, 10:05:41 AM »
I've seen that you can open a settings-menu when clicking on the traffic lights, but how to change the parameters when there's just three boxes and four directions?
Let me explain:
Screenshot:

Re-creation of the box in english:
-----------------------------------------------------------------------------
| Simutrans-player                                                               |
| Road sign                                                                          |
| Directions: 5                                                                      |
| Specify time-interval NorthSouth/EastWest direction:      |
| < 16 >  < 16 >  < 0 >                                                         |
-----------------------------------------------------------------------------
As noted above, there's 5 directions but only three boxes.
Can someone please explain how this works?
Thanks!

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5341
  • Languages: EN, NO
Re: How does the Traffic Lights work?
« Reply #1 on: August 22, 2018, 08:40:24 PM »
Actually, there are only two directions: north-south, and east-west. The third box is, if I remember correctly, the time to wait for the junction to clear before giving the next green light.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2836
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: How does the Traffic Lights work?
« Reply #2 on: August 22, 2018, 08:57:37 PM »
The third value is an offset to try and synchronise multiple traffic lights. So if one traffic light has this value at zero and the second has 2, the second traffic light will have a 2 second offset on the light switching.