[PATCH] Life time profit on vehicle windows
Moderator: OpenTTD Developers
[PATCH] Life time profit on vehicle windows
I've been thinking about this one for a while.
There is now a lifetime profit value against vehicles which can be viewed alongside the profit this year and profit last year.
V1
[*] Stores lifetime profit (gets updated at end of year)
[*] Displays on the vehicle info window where the other profits are shown.
This currently isn't saved into the save games.
There is now a lifetime profit value against vehicles which can be viewed alongside the profit this year and profit last year.
V1
[*] Stores lifetime profit (gets updated at end of year)
[*] Displays on the vehicle info window where the other profits are shown.
This currently isn't saved into the save games.
- Attachments
-
- Lifetime profit V1.patch
- Lifetime profit patch v1
- (3.39 KiB) Downloaded 371 times
-
- openttd.zip
- Binaries and language
- (7.44 MiB) Downloaded 297 times
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Re: [PATCH] Life time profit on vehicle windows
V2 attached.
This now saves the lifetime profit in to the save game and loads it.
This now saves the lifetime profit in to the save game and loads it.
- Attachments
-
- openttd.zip
- (7.99 MiB) Downloaded 223 times
-
- Lifetime profit V2.patch
- (5.42 KiB) Downloaded 457 times
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Re: [PATCH] Life time profit on vehicle windows
Good idea, I always wondered why there is lack of such information.
I'm using first patch (for game/multiplayer compatibility), hope that it will be in trunk, combined with group info
BTW, how profit_lifetime variable is initialized?
I'm using first patch (for game/multiplayer compatibility), hope that it will be in trunk, combined with group info

BTW, how profit_lifetime variable is initialized?
[PATCH] Life time profit on vehicle windows
Ahh... Yeah I just realised that on new game it doesn't get initialised :S
I don't know How I missed that!
I'm glad you like it, I hope it gets in trunk as well. Ive written another small patch that meddles with the share system and dividends
Sent from my iPhone using Tapatalk
I don't know How I missed that!
I'm glad you like it, I hope it gets in trunk as well. Ive written another small patch that meddles with the share system and dividends

Sent from my iPhone using Tapatalk
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Re: [PATCH] Life time profit on vehicle windows
Hi. Can it also be added to the Sort by when listing vehicles? That would be awesome.
Formerly known as Samu
Re: [PATCH] Life time profit on vehicle windows
I don't see why not. I shall look in to it in the week
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Re: [PATCH] Life time profit on vehicle windows
V4
[*] NEW: Option to use Lifetime instead of last years profit for news alert.
V3
[*] New: Sort by lifetime profit in vehicle lists.
[*] NEW: Option to use Lifetime instead of last years profit for news alert.
V3
[*] New: Sort by lifetime profit in vehicle lists.
- Attachments
-
- Lifetime profit V3.patch
- (6.85 KiB) Downloaded 290 times
-
- Lifetime profit V4.patch
- (11.66 KiB) Downloaded 301 times
-
- Lifetime Patch R27447 - V4.zip
- Win 32 binaries
- (5.2 MiB) Downloaded 209 times
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Re: [PATCH] Life time profit on vehicle windows
I've made a few slight tweaks to version 3 of this patch.
I'm not sure that it makes sense in general for profit warnings to use the lifetime profit, as that effectively means that older vehicles which later become unprofitable will not show a warning.
Edit: updated.
- Display the current lifetime profit, instead of the lifetime profit at the start of the current year
- Change the lifetime profit string format to avoid breaking translations
I'm not sure that it makes sense in general for profit warnings to use the lifetime profit, as that effectively means that older vehicles which later become unprofitable will not show a warning.
Edit: updated.
- Attachments
-
- lifetime_profit_v3.1.1.patch
- (7.76 KiB) Downloaded 300 times
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Who is online
Users browsing this forum: No registered users and 16 guests