待辦事項 #44176

click on shady tile doesn't show resource

啟用日期: 2022-03-25 04:50 最後更新: 2022-04-07 12:00

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

3.0.0

"shady tile" meaning a tile that has been seen before (darker but not black) but is not currently live visible (lighter). When you center mouse click on it to get the tile info, it ignores any resources - doesn't list it and the numbers are wrong.

Seen with both gtk3 and qt clients. Works as expected in 2.6.6

Ticket History (3/12 Histories)

2022-03-25 04:50 Updated by: ddeanbrown
  • New Ticket "click on shady tile doesn't show resource" created
2022-03-25 05:19 Updated by: cazfi
評語

I cannot produce (in S3_0 HEAD - haven't gone back to 3.0.0 yet) with any of gtk3.22-, qt-, or gtk3-client.

So the client still shows the resource graphics in the FoW (fog-of-war) for you, and yet the tile info popup does not match?

2022-03-25 05:35 Updated by: ddeanbrown
評語

Correct - client still shows the resource graphics in the FoW, and yet the tile info popup does not match. Different behavior than in 2.6.6

Maybe has already been fixed and 3.0.1 will be OK.

2022-03-25 05:54 Updated by: cazfi
評語

Reply To ddeanbrown

Maybe has already been fixed and 3.0.1 will be OK.

I can't reproduce with 3.0.0 either, so I don't see a difference between 3.0.0 and HEAD. It's hard to imagine any of the changes gone in to have fixed this (as a side-effect)

Which ruleset are you using?

2022-03-25 06:11 Updated by: ddeanbrown
評語

Didn't expect ruleset would make a difference, but it does! Works OK with default ruleset and not with my custom one, which has additional resource types (but the bug is not just with the added ones). Will have to investigate some more, could possibly be a problem with my custom ruleset.

2022-03-25 14:26 Updated by: cazfi
評語

I don't understand how there could be difference between seen and FoW tiles, but it's the extra "category" field that controls how the popup lists the extra

; category = How UI should categorize this extra. One of
; "Infra", "Natural", "Nuisance", "Resource",
; or "Bonus"

2022-03-26 13:23 Updated by: ddeanbrown
評語

Ruleset was a wild goose chase, I was seeing the bug when loading a saved game, and don't see it when starting a new game with my same custom ruleset. The problem is with saved files, load any saved game file with any ruleset and then the bug happens.

That's a lot more plausible, the code doing the save could handle fogged tiles differently.

2022-03-26 16:54 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
  • 里程碑 Update from (無) to 3.0.1 (closed)
評語

Thanks, it was easy to reproduce by loading a saved game.

2022-03-28 07:39 Updated by: ddeanbrown
評語

Verified that it's OK in 2.6.6

2022-04-07 12:00 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入