News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Global private car percentage incorrectly reported

Started by Matthew, January 12, 2021, 05:19:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Matthew

I noticed that the in-game interface says Bridgewater-Brunel private car ownership is ~1%:



Perhaps the chart is not reporting the data correctly. But if true, it might explain why there is less inter-city traffic than expected!
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。

freddyhayward

Quote from: Matthew on January 12, 2021, 05:19:22 AM
I noticed that the in-game interface says Bridgewater-Brunel private car ownership is ~1%:



Perhaps the chart is not reporting the data correctly. But if true, it might explain why there is less inter-city traffic than expected!
There is still quite a lot of local traffic for 1% ownership...

jamespetts

I have split this from the other topic, since this appears to be a separate bug.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

RESTRICTED ACCOUNT

I looked into this and it was just a display bug. I set it to PERCENT because the suffix can be selected with incorporating from the standard, but it displays 1/100 value because the value recorded is not the unit for normal percentage display to be used.

We can choose not to display "%" on the chart, or increment to the new save version and multiply by 100 when loading from the old save. In the latter case, the value read from dat needs to be multiplied by 100, or the value of dat needs to be multiplied by 100, so the former is easy.

const uint8 citylist_frame_t::hist_type_type[karte_t::MAX_WORLD_COST] =
{
STANDARD,
STANDARD,
STANDARD,
STANDARD,
STANDARD,
STANDARD,
STANDARD,
STANDARD,
PERCENT,
STANDARD,
PERCENT,
STANDARD,
PERCENT,
STANDARD,
STANDARD
};

In the former case, just change the end to STANDARD as above.

RESTRICTED ACCOUNT