News:

SimuTranslator
Make Simutrans speak your language.

Train ignores one way signal on tile with waypoint

Started by TurfIt, November 27, 2015, 12:11:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TurfIt

The train in the screenshot proceeds northbound through the signal in the wrong direction to reach the waypoint at (47,46,-1).

Ters

This could actually serve a feature, even if it's rather non-obvious. Perhaps more so for no entry signs than normal signals, though, making it possible to restrict a shorter route to a few specific vehicles/lines by excluding everything by default and letting just them override the sign(al), rather than having to remember to route everything else around with waypoints or by using a non-natural distinction between electric trains and non-electric trains.

prissi

The reason is most likely the curve, as the route finder goes backwards to find the route. I guess there is a bug lingering for the last tile. (Also I would guess this issue is older.)

Dwachs

tried to fix this in r 7712.

@Ters: this did not serve as hidden feature. As soon as the train reaches the tile with the signal and waypoint, it turns back, leaving the tile through the direction admitted by the signal.
Parsley, sage, rosemary, and maggikraut.

TurfIt

Might this affect the behaviour of signals on junctions?
I realized later this 'bug' is more working as designed - a consequence of signals controlling the exit of a tile, not the entrance. But I'll admit it's confusing since it even got me!

Ters

Signals on junctions is a bug in the first place, isn't it? You can't build them there directly.

Dwachs

@Turfit: there was already a semi-fix in the code. It prevented entering tiles with straight track and signal from the wrong direction. The commit r7712 also prevents this for signal and waypoint on a curve. I did not check what this means for signals on junctions. As there are now more cases, where entering a tile is considered forbidden now, this might affect signals on junctions as well.
Parsley, sage, rosemary, and maggikraut.

TurfIt

The original problem is fixed. There is also no apparent impact to signals on junctions.