You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a NewGRF which has cargos with a negative value, for example Industries of the Caribbean or Minimalist Industries, transfer credits show the proper negative value for the vehicle's portion of the delivery.
Actual result
Transfer credits are positive, showing the vehicle made a profit. It doesn't matter whether the cargo value is defined by property or callback — the attached savegame defines it as a property, but Industries of the Caribbean uses the callback and has the same problem.
Of course, transfer credits are virtual and the company doesn't actually make money when it should not. This is purely an accounting error.
Note that GRF specs explicitly allows negative cargo values, per the NML specs for the profit callback. A previous bug with inflation and negative cargo values was fixed in #9455.
Steps to reproduce
Load the attached savegame with included Minimalist Industries NewGRF: transfer_credits.zip.
Note the cargo value for Building Materials in Cargo Payment Rates graph, showing that no positive profit is ever possible.
Notice how the train shows a positive profit this year, and the transfer credit pop-up text is positive, but the truck shows the correct negative profit and delivery pop-up text.
The text was updated successfully, but these errors were encountered:
I'd suggest that transfer credits should not apply if cargo value is negative.
All legs have to pay the fee, and if you transport it weirdly, you get to pay higher fees.
Version of OpenTTD
12.1
Expected result
When using a NewGRF which has cargos with a negative value, for example Industries of the Caribbean or Minimalist Industries, transfer credits show the proper negative value for the vehicle's portion of the delivery.
Actual result
Transfer credits are positive, showing the vehicle made a profit. It doesn't matter whether the cargo value is defined by property or callback — the attached savegame defines it as a property, but Industries of the Caribbean uses the callback and has the same problem.
Of course, transfer credits are virtual and the company doesn't actually make money when it should not. This is purely an accounting error.
Note that GRF specs explicitly allows negative cargo values, per the NML specs for the
profit
callback. A previous bug with inflation and negative cargo values was fixed in #9455.Steps to reproduce
The text was updated successfully, but these errors were encountered: