News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

Map drawing issue with placing the toolbar on the left

Started by Ranran(retired), July 11, 2021, 04:00:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

I suspect that you will only see this symptom at certain zoom magnifications if you place the toolbar on the left.


I've confirmed it in extended, but it's possible that I missed something.


In addition, if you place the toolbar to the left or right, the overlay (such as the station name) is not in the correct position at certain zoom magnifications.
You do not see this symptom on the horizontal toolbar. The positional relationship between the object and the nameplate is kept regardless of the zoom magnification.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

prissi


Ranran(retired)

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

Ranran(retired)

Quote from: Ranran on July 11, 2021, 04:00:31 PMIn addition, if you place the toolbar to the left or right, the overlay (such as the station name) is not in the correct position at certain zoom magnifications.
You do not see this symptom on the horizontal toolbar. The positional relationship between the object and the nameplate is kept regardless of the zoom magnification.
This problem seems to have gotten worse than before. Now the symptoms appear no matter what position the toolbar is in.
And while before it was misaligned when zoomed out, now it is misaligned every two zooms when zoomed in, making the bug more noticeable than before.
This is a serious problem for the signal overlay arrows... (´・ω・`)

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

Ranran(retired)

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

Ranran(retired)

Additional Information:
It seems that at least the calculation of ypos passed to planquadrat_t::display_overlay is incorrect.
Show station coverage. It also sometimes misaligns. The tile frame is correct. Drawing the tile frame is not the job of planquadrat_t::display_overlay but there is a problem with the player color overlay.
The strange thing is that changing only the width of the window somehow sometimes changes the ypos.
Changing the width of the window may change the vertical display position of the map, in which case the ypos should change by the same amount, but in fact the changes do not seem to match.
In other words, even if the map does not move, the ypos of the overlay will change, causing misalignment.
Therefore I think there is a problem with the simview yypos, but I did not understand. (´・ω・`)

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

prissi


Ranran(retired)

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