Finance window addition

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Finance window addition

Post by gkirilov »

I've seen some patches for the Finance window(Yearly expences) but I couldn't find the following: What about a fourth column in the this window which will display the total values of all years(total expences for buildings, vechicles, ect.; total income from each type of transport and so on ... you get the idea.
So .. is it possible to have that?
(That means really huge numbers)
This would come in handy to see the summary at the end of the game and even more useful especially if the year cheat is used :) when you lose track of time.

(p.s. I've seen this in other games like Industry Giant2)
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
Gudella
Engineer
Engineer
Posts: 26
Joined: 09 Nov 2005 12:09
Location: Hungary

Re: Finance window addition

Post by Gudella »

gkirilov wrote:I've seen some patches for the Finance window(Yearly expences) but I couldn't find the following: What about a fourth column in the this window which will display the total values of all years(total expences for buildings, vechicles, ect.; total income from each type of transport and so on ... you get the idea.
So .. is it possible to have that?
(That means really huge numbers)
This would come in handy to see the summary at the end of the game and even more useful especially if the year cheat is used :) when you lose track of time.

(p.s. I've seen this in other games like Industry Giant2)
I like the idea of this 4th column :)
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

So .. it looks like no one wants to give it a try. :)
Can someone tell me in which source file(s) to look if i want to implement is by myself.
Thanks.

p.s. according to me this 4th column with the total expences/incomes it the only reasonable (kind of) game score!
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

gkirilov wrote:So .. it looks like no one wants to give it a try. :)
Can someone tell me in which source file(s) to look if i want to implement is by myself.
Thanks.

p.s. according to me this 4th column with the total expences/incomes it the only reasonable (kind of) game score!
:lol: It isnt easy to list where they are. I would first hunt down the routine that displays the current finance window (misc_gui may be a good place... might not of course ;) ), then find where that display window gets its data, then find where those variables get accessed (mostly where you spend money). Pretty much wherever a finance variable is changed, you will need to add a change to the relevant Total.

Good luck... expecting someone to leap on your idea and do the work doesnt generally happen here. Its much more "its your idea, you do it".
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

gkirilov: grep is your friend.

In a big way.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
proudmoore
Director
Director
Posts: 575
Joined: 01 Jun 2005 18:07

Finance window expansion

Post by proudmoore »

If one is discussing really huge numbers, then maybe it migt be appropriate for me to post this here. In very long games, going on for hundreds or even thousands of years (in the screenie i posted, i estimated that the game was about 2000 years old), the values of money doesn't fit into the finance windw.

The profit columns overlap each other, making it very difficult to look at what one has made - and gloat! Would it be possible either to enlarge the window and columns to allow the large numbers - or alternatively, allow a 'larger' currency - one that has 5 or 10 pounds per unit.

In the screenshot, the iron ore train making £18,000,000 originally made £30,000 per trip...
Attachments
Too much money.png
If you see what the ron ore train is making..
(815.93 KiB) Downloaded 417 times
For Knowledge, Civilisation, and Chocolate Waffles!
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

Heh. You don't need the game's to go on for thousands of years to run out of money. Just change the currency to Yen. You'll immediatly have hundreds of billions, and the finance screen looks a mess.
User avatar
proudmoore
Director
Director
Posts: 575
Joined: 01 Jun 2005 18:07

running out of money?

Post by proudmoore »

i don't want to run out of money - i started that game totry to work out how inflation costs rise - if theres an equation behind it. Unfortunately, the costs got too big - wouldn't fit into the finance window, so i couldn't read them.

I just gave up and left it to run.
For Knowledge, Civilisation, and Chocolate Waffles!
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Post by Moriarty »

Sure you can figure out how inflation is worked out within just a couple of game years. A quick (5 year) test shows that it's not percentile based.
(Yes I know I could check the source code, but seeing as my maths skills are abysmal I don't stand much chance of understanding what's going on there :) ).
User avatar
proudmoore
Director
Director
Posts: 575
Joined: 01 Jun 2005 18:07

Post by proudmoore »

[missed this out]

And of course, i wanted to see how much money could get. That games been running for probably about 500 hours now - it was one of the first serious games i made with openttd
For Knowledge, Civilisation, and Chocolate Waffles!
User avatar
Benbo
Transport Coordinator
Transport Coordinator
Posts: 380
Joined: 09 Jan 2006 18:51
Location: UK

Post by Benbo »

So really, are you thinking that it shows subtotals of different things? I think I know what you're thinking.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest