FS#6360 - Orders: 'max reliability' order filter

Attached to Project: OpenTTD
Opened by Simon Smith (Simons_Mith) - Sunday, 09 August 2015, 14:44 GMT
Last edited by andythenorth (andythenorth) - Saturday, 02 September 2017, 12:50 GMT
Type Feature Request
Category Vehicles
Status With patch
Assigned To David (chindit)
Operating System All
Severity Low
Priority Normal
Reported Version 1.5.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


I set up orders to make vehicles go to depot and stop when they passed their maximum age.
But what I really wanted to do was to send vehicles to depot when their /maximum reliability
after servicing/ dropped too low.

So in the interests of 'do what you mean'*, instead of

'Jump to order 7 when Remaining lifetime (years) is less than 0'

I would like to use

'Jump to order 7 when Maximum reliability is less than 50'

But maximum reliability/reliability after servicing doesn't exist as an order filter. Could it be

* 'Do what you mean' - in programming, when you want a computer to do x, always try to tell
it directly to do x, rather than telling it to do something else that indirectly causes it to do x.
Helps with debugging and improves code clarity.
This task depends upon

Comment by David (chindit) - Saturday, 22 August 2015, 11:25 GMT
I've created a patch.
Tested and functional with road vehicles.
I'm testing it with train and planes but it normally works fine.
Comment by andythenorth (andythenorth) - Saturday, 02 September 2017, 12:54 GMT
Patch compiles on r27910.

Appears to work as expected, in my brief testing.