Ticket #44519

link with irrigation no longer works

오픈 날짜: 2022-05-06 01:48 마지막 업데이트: 2022-05-09 09:25

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
3

Details

in 3.01

same kind of message as in #44504

SHIFT-I stops at the first tile

Ticket History (3/12 Histories)

2022-05-06 01:48 Updated by: alain_bkr
  • New Ticket "link with irrigation no longer works" created
2022-05-06 01:48 Updated by: alain_bkr
2022-05-06 02:19 Updated by: 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 Updated by: alain_bkr
  • Details Updated
2022-05-06 17:49 Updated by: 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 Updated by: 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 Updated by: 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 Updated by: 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 Updated by: cazfi
  • Status Update from Open to Closed
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Fixed
  • Component Update from (None) to Server

Edit

Please login to add comment to this ticket » Login