The International Simutrans Forum

 

Author Topic: Signals cannot be built on junctions, but junctions can be built on signals  (Read 2085 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18617
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
I have tested this with the release 112.2 [r6390] - I do not think that this has been changed in the nigtlies. The game will stop a player building a railway signal on a piece of track that is a junction/switch - presumably because signals on junctions lead to errors. However, it is possible to build a junction on top of an existing signal, effectively bypassing this check.

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1324
Building a junction on a signal does indeed work, and is quite handy in certain circumstances. But you better know what you're doing as the behaviour is perhaps not as one expects... IMHO the fix should be to the logic to support this configuration, not to forbid it.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5495
  • Languages: EN, NO
How would a one-way signal work on a junction?

There is also a similar case with dead-end tiles. You can't build signals one them, but you can make a tile with a signal into a dead-end.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2868
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
I use this 'bug' with private signs.

How would a one-way signal work on a junction?
As the signal was placed one tile before the direction it's forbidding.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5495
  • Languages: EN, NO
As the signal was placed one tile before the direction it's forbidding.

I was more referring to swithing it between the three or four directions.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2868
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
The game forbids change the direction. If you drag, the signal is removed. In both cases it opens the message that you can't build the signal.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5495
  • Languages: EN, NO
I was also not asking how it works, but how it would work, assuming that one is allowed to build, and I therefore assume also modify, signals on existing junctions as suggested by TurfIt.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2868
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Ah ok, sorry.

Since the signal works normally over a junction the only problem so far is the graphic that most of the times looks weird over the road for some paksets. For instance pak128 looks and behave perfectly.

I think there could have more graphics for signals, because as it's now, your limited to roadside signs and can't create 'on road' signs.
I did tried creating one but it's impossible, here's why:


There could have toggle options for blocking more than one direction at same time too.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9472
  • Languages: De,EN,JP
The problem is that diagonal arrows would block both ribi. Thus for the logic, as straight arrow (let say to the west) and SW and NW diagonal also blockign westwards are represented as W. You would need to store the direction of the roadsing and the ribi. (That is neither difficult nor memory consuming, so it can be done.) A little bit extra logic just to keep them in sync and to discern traffic lights from eight dir roadsigns.

That will not solve any issues with signals at crossings or dead ends.