Patch: Show final income as how it's paid to bank account

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Eddi
Tycoon
Tycoon
Posts: 8271
Joined: 17 Jan 2007 00:14

Patch: Show final income as how it's paid to bank account

Post by Eddi »

if you currently use a lot of transfer services, the final vehicle often shows hugely negative income. in order to better show that this is due to your transfer service, this patch changes how the profit is shown so that the "income" part is changed to the total route profit (your bank account will change by this much), and additionally "transfer" income is shown if it differs from the route profit (it is really unlikely that this will be the same if you use transfers, so this should be shown for all routes that involve transfers, and never for any routes that don't use transfer).


So instead of "Cost: 500.000€" it will now show "Transfer: -1.500.000€ / Income: 1.000.000€".

Gameplay should not be changed at all, but this patch requires a savegame version bump, otherwise vehicles which were unloading during save will show wrong profit information.
Attachments
show_final_income_and_transfer_credits.diff
(3.9 KiB) Downloaded 105 times
Timmaexx
Transport Coordinator
Transport Coordinator
Posts: 301
Joined: 03 Jan 2009 17:55

Re: Patch: Show final income as how it's paid to bank accoun

Post by Timmaexx »

Hi Eddi,

I really like the idea behind this patch! Didn't test it, but I fear, the Vehicle-Infobox would get too large. Can you post a screenshot of the one, please?

Greets,
Tim
Eddi
Tycoon
Tycoon
Posts: 8271
Joined: 17 Jan 2007 00:14

Re: Patch: Show final income as how it's paid to bank accoun

Post by Eddi »

this doesn't change the vehicle info at all, just the price animation on delivery. the vehicle will still amass huge negative profit, just you're more likely to spot that transfer is the cause.

and there were cases which showed transfer/income combinations there before (especially with cargodist), this just changes this a bit.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Deicide and 19 guests