FS#5736 - Autoreplace - Not working with brake van

Attached to Project: OpenTTD
Opened by Milos (Milsa) - Thursday, 05 September 2013, 11:29 GMT
Last edited by frosch (frosch) - Thursday, 05 September 2013, 16:29 GMT
Type Bug
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


Please look at this images.
This task depends upon

Closed by  frosch (frosch)
Thursday, 05 September 2013, 16:29 GMT
Reason for closing:  Won't fix
Additional comments about closing:  cannot be done automatically
Comment by frosch (frosch) - Thursday, 05 September 2013, 16:28 GMT
Isn't the brake van supposed to go to the end of the train?

Anyway, it's impossible to support this. OpenTTD does not know what a brake van is, not what other fancy stuff NewGRF might come up with.
Comment by Milos (Milsa) - Thursday, 05 September 2013, 17:30 GMT
I admit that I don't know where is the wagon position. I give him forward so I saw him in small depot window. Game takes it.

Support is possible, partial. Remove wagon with cargo capacity larger than zero. And add this information to known-bugs.txt for information for players.

Or remove wagon and if it fails then remove next wagon etc. Please reopen this task.
Comment by andythenorth (andythenorth) - Tuesday, 24 December 2013, 13:18 GMT
Partial support is worse than no support. It creates a half-assed situation with nasty edge cases, and confusing behaviour for player and newgrf author.

There is *no* way for OpenTTD to know what a brake van is - it's a concept limited to within the newgrf.
Comment by Milos (Milsa) - Tuesday, 24 December 2013, 13:42 GMT
This is already closed. I don't wait answer alrady. Thank you for answer.

Is possible add support for brake van to NewGRF in tomorrow?
Comment by andythenorth (andythenorth) - Sunday, 13 August 2017, 14:16 GMT
FWIW, brake vans are supported by auto-replace when using 'remove wagons', I just tested it. Appears that only the type of wagons being replaced are removed if too long, leaving brake van(s) in place. So eh.