The International Simutrans Forum

Development => Patches & Projects => Topic started by: THLeaderH on March 25, 2018, 05:36:32 AM

Title: Control the directions of a traffic light by buttons
Post by: THLeaderH on March 25, 2018, 05:36:32 AM
Hello, everyone :)
I made a patch that control the directions of a traffic light by buttons as figure_1.jpg shows.
In the current simutrans, a vehicle cannot turn right in a intersection with traffic lights that consists of more than one tile like figure_2.jpg because the signal of back side blocks a right turn. With this patch, a proper setting of a traffic light enables the right turn.
The translations of "Set phases" in various languages are not nice for this patch, so the improvement is requested.
The patch is r8412 based.
Title: Re: Control the directions of a traffic light by buttons
Post by: prissi on March 25, 2018, 01:59:35 PM
Well, but at such a traffic light, traffic can never pass straight through then in the right turn direction. Hence the introduction of cycle length, so one could intentionally detune them.
Title: Re: Control the directions of a traffic light by buttons
Post by: Ters on March 26, 2018, 08:08:25 AM
For proper dual carriage way operation, traffic lights would need to group together and function like a single unit like crossings do. (Although I find traffic lights pretty much useless in Simutrans. Intersections in Simutrans are much more costly than in the real world no matter what.)