The International Simutrans Forum

Development => Extension Requests => Topic started by: Václav on August 10, 2010, 06:22:06 pm

Title: Detail financial dialogue
Post by: Václav on August 10, 2010, 06:22:06 pm
Hi, I have this idea for financial dialogue - I would like to have choice to open subdialogue of financial budget where I could see:

maintenance cost divided into many categories - for example: roads, tracks (railways, maglevs, trams), electrification by type (trains, trams, trolleybuses, maglevs), high wires, bought buildings ... and so on.

income divided into many categories - for example: trains, trams, trolleybuses, maglevs, planes, high wires*

* - currently it has own line
Title: Re: Detail financial dialogue
Post by: skreyola on August 10, 2010, 10:57:57 pm
That would be cool, but I imagine it would increase overhead by quite a bit to keep all those streams separate.
Title: Re: Detail financial dialogue
Post by: colonyan on August 10, 2010, 11:34:15 pm
It will be nice to have.
I thought there were no expenditure named overhead now.
If it didn't exist, it could be applied, and finally make HQ building give more meaning
by make them overhead, maintenance modifier(to lower).
Title: Re: Detail financial dialogue
Post by: skreyola on August 11, 2010, 03:57:23 pm
overhead = CPU/memory/swap space consumption
Title: Re: Detail financial dialogue
Post by: colonyan on August 11, 2010, 06:02:07 pm
My vocabulary skill : +1   8)
Title: Re: Detail financial dialogue
Post by: Václav on August 11, 2010, 06:44:58 pm
I think that it could be saved in any extra file - for example of xml type - because changes in maintenances and so on are not so frequent to file could be unsufficient way.
Title: Re: Detail financial dialogue
Post by: skreyola on August 11, 2010, 08:02:41 pm
Maintenance isn't as big a deal as income. Income is going to eat up a lot of CPU cycles to keep tallied by category, I'd think.
Title: Re: Detail financial dialogue
Post by: Václav on August 11, 2010, 08:32:03 pm
Affair of income - hmm... it may be true.
But who says it cannot be done by any else way - or updated with month frequence?
Title: Should be zero performance hit
Post by: wlindley on August 11, 2010, 08:41:46 pm
Code should only need to change from "income += income_from_this_vehicle" to "income[vehicle_type] += income_from_this_vehicle" and likewise for expenses ... that should take just about zero time... no?
Title: Re: Detail financial dialogue
Post by: skreyola on August 13, 2010, 12:13:13 am
Code should only need to change from "income += income_from_this_vehicle" to "income[vehicle_type] += income_from_this_vehicle" and likewise for expenses ... that should take just about zero time... no?
Negligible time, perhaps. Negligible memory, maybe, maybe not, but more of an issue.