FS#5437 - Vehicles: take refitted capacity into account in buy menu

Attached to Project: OpenTTD
Opened by George (George) - Saturday, 05 January 2013, 12:45 GMT
Last edited by andythenorth (andythenorth) - Friday, 01 September 2017, 11:02 GMT
Type Feature Request
Category Vehicles
Status New
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No



In buy vehicle window when vehicles are sorted by capacity and filtered by cargo type, value of capacity for default cargo is used.
for example:
84 crates of goods
60 tons of food (wagon #2)
52 crates of goods
But when the wagon #2 is refited to goods, it gets capacity equal to 120 crates of goods, which is more than 84 crates of goods.
It would be nice to display refited capacity in this case (when a filter by cargo is applied), like this
120 crates of goods (wagon #2)
84 crates of goods
52 crates of goods
This task depends upon

Comment by pagnon stephane (krinn) - Tuesday, 15 January 2013, 16:09 GMT
I could answer that one as i've been told why :)

openttd cannot know some vehicle properties by the newGRF until the vehicle is created. So to fill up the value you are seeking, openttd would need to create one vehicle of each type, and record all properties once built to keep track of them.
Not something undoable, but until one create a caching properties system, you will never seen it happen.