Why is this entry signal showing green

openttd

enter image description here

Can someone explain to me why is the entry signal showing green for this train?

I stopped two trains at the station and both exit signals are correctly in red. But the entry signal is green so it's allowing the train to go into the X junction and all trains are getting stuck.

Best Answer

The problem is that you've got an entry pre-signal giving access to a block without any exit pre-signals. In that situation, it acts as an ordinary block signal, and since the block it's protecting is unoccupied, it shows green. In order for your signal to work as you expect, you need to turn the two signals protecting the station into exit pre-signals.

(Note that pre-signals are nearly obsolete. Path-based signals can do almost everything they can, many things they can't, and usually permit a more compact layout.)