Author Topic: [120.2.2&r8387] Yearly goods stat in city list chart not in sync with city chart  (Read 1973 times)

0 Members and 1 Guest are viewing this topic.

Offline kazarmy

  • *
  • Posts: 31
Either the number of goods delivered yearly is hopelessly high or abysmally low but the numbers on the charts are not in sync and they should be in sync since there's only 1 city. I think it's the city chart (right hand side) that's off since there's quite a number of goods trucks delivering stuff:





Appears in 120.2.2 with pak64 120.2. Also appears in r8387 nightly. Savegame attached.

Offline kazarmy

  • *
  • Posts: 31
Forget to add, both drive_left = 1 and signals_on_left = 1.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4372
  • Languages: EN, DE, AT
These are completely different and uncomparable numbers. The charts for 'Arrived' and 'Goods' in the city window show count how often per month a factory in the city had supplies and how often supply was checked...
Parsley, sage, rosemary, and maggikraut.

Offline kazarmy

  • *
  • Posts: 31
Shouldn't they be the same number, like for Passengers and Mail?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4372
  • Languages: EN, DE, AT
The ration of 'Arrived' and 'Goods' shows the ratio of factories with input storage divided by the number of checks performed. Only factories that receive passengers from the city are taken into account.

The button description is completely misleading. Also the ration of supplied vs all factories is not very interesting (although city growth depends on this).
Parsley, sage, rosemary, and maggikraut.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8978
  • Languages: De,EN,JP
These buttons are only for citygrowth, as Dwachs pointed out, and only for factories within the cities catchment area. So even if these would record the amount (and not activity), then numbers would deviate.

I am open to suggestions for a better translation.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4372
  • Languages: EN, DE, AT
I would rather show the percentage of supplied factories: so one graph and button. Button name could be 'Factories supplied' or something similar.
Parsley, sage, rosemary, and maggikraut.

Offline kazarmy

  • *
  • Posts: 31
I am open to suggestions for a better translation.

Based on stadt_t::city_growth_get_factors code, I prefer "Supply" and "Goods demand" for the 2 buttons in the city window, but if demand is just a constant, arbitrary number of checks per month (with adjustment for February), then it might be a waste of a graph to display it.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4372
  • Languages: EN, DE, AT
Here is a patch: It shows the ration of the values of "arrived" and "goods" in current version. See image.
Parsley, sage, rosemary, and maggikraut.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8978
  • Languages: De,EN,JP
Maybe leave the empty button out?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4372
  • Languages: EN, DE, AT
You mean: move the button 'Supplied Factories' to the left?

What about the general idea of the patch?
Parsley, sage, rosemary, and maggikraut.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8978
  • Languages: De,EN,JP
I like the general idea. Although for consistency on could also show 100% on potential (or zero without factories) and then real time producing. (Like it is done for production increase statistics in the factory charts.) Maybe player/devotees using these dialogues more than me would be the better judges ...

Offline kazarmy

  • *
  • Posts: 31
Would be very interested in finding out why the ratio is below maximum (no matter what the maximum is or whether it's shown explicitly), but can't justify the effort to instrument the code at the moment.

(Like it is done for production increase statistics in the factory charts.)

Btw, aren't those Production/Boost factory charts for Passengers/Mail Generated/Departed/Arrived supposed to start from 0 every month?

Offline kazarmy

  • *
  • Posts: 31
Btw, aren't those Production/Boost factory charts for Passengers/Mail Generated/Departed/Arrived supposed to start from 0 every month?

Bug report at https://forum.simutrans.com/index.php?topic=18015.0.