The International Simutrans Forum

 

Author Topic: Detail financial dialogue  (Read 3178 times)

0 Members and 1 Guest are viewing this topic.

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Detail financial dialogue
« 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

Offline skreyola

  • *
  • Posts: 337
  • Trivial Troubleshooter
Re: Detail financial dialogue
« Reply #1 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.

Offline colonyan

  • Devotee
  • *
  • Posts: 526
  • Full and Warm
Re: Detail financial dialogue
« Reply #2 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).

Offline skreyola

  • *
  • Posts: 337
  • Trivial Troubleshooter
Re: Detail financial dialogue
« Reply #3 on: August 11, 2010, 03:57:23 PM »
overhead = CPU/memory/swap space consumption

Offline colonyan

  • Devotee
  • *
  • Posts: 526
  • Full and Warm
Re: Detail financial dialogue
« Reply #4 on: August 11, 2010, 06:02:07 PM »
My vocabulary skill : +1   8)

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Detail financial dialogue
« Reply #5 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.

Offline skreyola

  • *
  • Posts: 337
  • Trivial Troubleshooter
Re: Detail financial dialogue
« Reply #6 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.

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Detail financial dialogue
« Reply #7 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?

Offline wlindley us

  • Devotee
  • *
  • Posts: 978
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Should be zero performance hit
« Reply #8 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?

Offline skreyola

  • *
  • Posts: 337
  • Trivial Troubleshooter
Re: Detail financial dialogue
« Reply #9 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.