Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sun Sep 24, 2017 8:59 pm

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Mar 29, 2015 11:38 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Fri Jun 16, 2006 5:18 pm
Posts: 326
Location: Somwhere near a computer
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.


Attachments:
File comment: Lifetime profit patch v1
Lifetime profit V1.patch [3.39 KiB]
Downloaded 39 times
File comment: Binaries and language
openttd.zip [7.44 MiB]
Downloaded 31 times

_________________
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Top
   
PostPosted: Sun Apr 05, 2015 6:00 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Fri Jun 16, 2006 5:18 pm
Posts: 326
Location: Somwhere near a computer
V2 attached.

This now saves the lifetime profit in to the save game and loads it.


Attachments:
openttd.zip [7.99 MiB]
Downloaded 20 times
Lifetime profit V2.patch [5.42 KiB]
Downloaded 30 times

_________________
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Top
   
PostPosted: Wed Apr 08, 2015 8:58 pm 
Offline
Chairman
Chairman
User avatar

Joined: Sat Jan 18, 2014 6:10 pm
Posts: 885
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?


Top
   
PostPosted: Wed Apr 08, 2015 9:15 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Fri Jun 16, 2006 5:18 pm
Posts: 326
Location: Somwhere near a computer
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

_________________
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]


Top
   
PostPosted: Fri Apr 10, 2015 8:05 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 149
Hi. Can it also be added to the Sort by when listing vehicles? That would be awesome.

_________________
Formerly known as Samu


Top
   
PostPosted: Sat Apr 11, 2015 1:07 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Fri Jun 16, 2006 5:18 pm
Posts: 326
Location: Somwhere near a computer
I don't see why not. I shall look in to it in the week


Sent from my iPhone using Tapatalk

_________________
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]


Top
   
PostPosted: Sat Dec 26, 2015 1:17 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Fri Jun 16, 2006 5:18 pm
Posts: 326
Location: Somwhere near a computer
V4
[*] 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 14 times
Lifetime profit V4.patch [11.66 KiB]
Downloaded 21 times
File comment: Win 32 binaries
Lifetime Patch R27447 - V4.zip [5.2 MiB]
Downloaded 17 times

_________________
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
Top
   
PostPosted: Fri Jan 01, 2016 2:07 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Aug 08, 2005 1:46 pm
Posts: 1689
Location: Ipswich
I've made a few slight tweaks to version 3 of this patch.
  • 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

The update in version 4 is not multiplayer safe, as the AI event for unprofitable vehicles depends on the current client display setting for which profit to use.
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 30 times

_________________
Ex TTDPatch Coder, Grumpy Greymuzzle
Avatar by MoonsongWolf.
Patch Pack, Github
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.