News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

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.

Ranran(retired)

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.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Ranran(retired)

ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)