News:

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

[GUI] Fare graph

Started by Ranran(retired), December 07, 2021, 10:29:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

A question from a newbie inspired me.
Extended has a rather complicated fare system, so visualizing it would be very helpful to players. (´・ω・`)ウンチィ...ン
The patch adds two graphs to the goods list dialog that show the relationship between distance and freight for each cargo item.

The two graphs are different distance scales. The graphs are linked to the existing input options.

I had to make some changes to the chart code in order to draw a clear curve (to reflect the decimal point).
Also this patch fixes a bug that prevented the existing mode switch button from appearing in the intended position.

The following translatable words will be added by this patch.

fare_chart
fare_short
fare_long
no_speed_bonus
has_no_class


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

jamespetts

Thank you for your work on this and apologies for the delay in replying. Attempting to merge this produces conflicts in the Japanese translation texts; I should be grateful if you could resolve these so that I can test this, as I would not be sure how to resolve conflicts in a Japanese translation file.

Thank you again.
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)

Quote from: jamespetts on December 23, 2021, 03:31:37 PMAttempting to merge this produces conflicts in the Japanese translation texts; I should be grateful if you could resolve these so that I can test this, as I would not be sure how to resolve conflicts in a Japanese translation file.
I think I have fixed it.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

Quote from: Ranran on December 31, 2021, 03:03:49 PM
I think I have fixed it.

Excellent, thank you for that; that does indeed now work. I have incorporated this.
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.