チケット #44519

link with irrigation no longer works

登録: 2022-05-06 01:48 最終更新: 2022-05-09 09:25

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
3

詳細

in 3.01

same kind of message as in #44504

SHIFT-I stops at the first tile

チケットの履歴 (12 件中 3 件表示)

2022-05-06 01:48 更新者: alain_bkr
  • 新しいチケット "link with irrigation no longer works" が作成されました
2022-05-06 01:48 更新者: alain_bkr
2022-05-06 02:19 更新者: cazfi
コメント

Reply To alain_bkr

in 3.01 same kind of message as in #44504

Doesn't fix in #44504 help to this?
2022-05-06 17:46 更新者: alain_bkr
  • 詳細が更新されました
2022-05-06 17:49 更新者: alain_bkr
コメント

I think i applied the patch, how could i be sure ?

It would be very simple if you push #44504 comits (and all other 3.0 patches) in the need branches, so i just pull and recompile and test, and check git-rev

2022-05-06 20:13 更新者: cazfi
コメント

I can reproduce. Seems to be because terrain transforming activities are handled separately from other activities fixed in #44504 + irrigation & mine building activities are wrongly considered as terrain transformation activities in S3_0.

Correct fix for S3_0 probably has two parts: Stop considering irrigation / mine building as terrain transformations, and also handle the (remaining) terrain transformation activities correctly. For later branches former is probably already handled by the separation of Irrigation/Cultivate and Mine/Plant activities, but latter part is likely needed.

2022-05-07 05:37 更新者: cazfi
コメント

Reply To cazfi

Stop considering irrigation / mine building as terrain transformations ... For later branches former is probably already handled by the separation of Irrigation/Cultivate and Mine/Plant activities

Nope, the bug has been faithfully reimplemented in the new system.

Further investigation has also revealed that there's additional bug in that in this special cased terrain transformations handling *other* activities of *other* units turned illegal because of the terrain change is not handled at all. That seems like it has been a bug actually affecting the game for a long time (has not been only dormant bug, like the other issues turned active by the recent orders cancelling change) It seems to me that after fixing all these issues, terrain transforming actions are not special case at all (their handling is exactly the same code as the "else" branch)

2022-05-07 06:51 更新者: cazfi
コメント

Different patch for each branch:

- S3_0 differs already because the branch has the extra building and terraing transforming variants of the irrigation and mine activities in the same activities. Overall did the minimum changes to fix the bug (no unnecessary changes to a release branch)
- S3_1 fix the bugs, but does not refactor the special casing of terrain changing actitivies away. Difference to S3_0 in this respect is that S3_1 adds fc_assert() to check that indeed it the refactoring would be safe
- master does the full refactoring

Not tested much yet. Wanted to submit anyway, as waiting that I get to testing these could postpone the submission significantly.

2022-05-09 09:25 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 修正済み に更新されました
  • コンポーネント(未割り当て) から Server に更新されました

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする