FS#3479 - Train depots & forbid 90 degree turns: Don't make unusable connections

Attached to Project: OpenTTD
Opened by Leif Linse (Zuu) - Monday, 04 January 2010, 14:48 GMT
Last edited by andythenorth (andythenorth) - Sunday, 20 August 2017, 18:07 GMT
Type Feature Request
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


It would probably help some new players if the code that automatically connect depots when you build them were aware of the forbid 90 degree turn settings.

This requires knowledge of more than just the adjacent tile, so it is a bit more complex.

The attached screenshot shows how I think the game should react on different track configurations, when you build a depot and have forbid 90 degree turns enabled. It is not 100% good, but it is at least somewhat likely that new players will get aware of the forbid 90-degree setting, when they play at servers with it enabled.
This task depends upon

Closed by  andythenorth (andythenorth)
Sunday, 20 August 2017, 18:07 GMT
Reason for closing:  Won't implement
Additional comments about closing:  I discussed this with Zuu, and he's happy with it being closed as part of Flyspray clean up.

It's a good example of simple-looking settings spawning extra effort to make them work right :)
Comment by Remko Bijker (Rubidium) - Friday, 15 January 2010, 23:14 GMT
The attached patch more of less implements this, but fails in the right most two cases. Bascially because it only looks at the local tile, not at the neighbouring tiles.
However, doing that means that the behaviour would change in the case you have a straight piece of track with a tile missing and you build a depot just next to the missing rail tile. With the changed behaviour it would connect those. Though better it's quite a bit more complex.
Comment by Leif Linse (Zuu) - Friday, 15 January 2010, 23:28 GMT
Indeed it is quite a bit more complex to address the cases when you need to analyze more than one tile. It will take quite some time to get a good pattern of checks to accomplish that. That said just doing what you have done will hopefully make the new players to think. If they add the track and the train get stuck they are themself to blame. Hopefully most of them realize what to do and only very few of them complain about the train being stuck.