Opened 7 years ago

Last modified 5 years ago

#4681 new defect

Blinking territory but not decaying

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Simulation Keywords:
Cc: Patch:

Description

In this Alpha 21 replay provided by Imarok, the teal player has captured a farmstead at minute 10 that is connected to the orange players territory and thus didn't decay. However it has blinked the entire time until the player reached the next age.

(At minute 6 the teal player equally captured a farmstead at purple that was connected to that territory and never started blinking).

When trying to reproduce the issue, it is easily possible to build a house near an allies territory line without bordering it. (So it is expected to decay but doesn't).

Attachments (4)

commands.txt (567.2 KB ) - added by elexis 7 years ago.
commands.2.txt (46.2 KB ) - added by elexis 7 years ago.
Alpha 22 replay showing apparently disconnected houses not blinking nor decaying.
screenshot1516.jpg (486.0 KB ) - added by elexis 6 years ago.
disconnected not-decaying not-blinking house in the a22 replay
screenshot1520.jpg (423.8 KB ) - added by elexis 6 years ago.
Blinking but not decaying connected farmstead in the a21 replay

Download all attachments as: .zip

Change History (11)

by elexis, 7 years ago

Attachment: commands.txt added

by elexis, 7 years ago

Attachment: commands.2.txt added

Alpha 22 replay showing apparently disconnected houses not blinking nor decaying.

comment:1 by elexis, 7 years ago

refs #4749

comment:3 by elexis, 7 years ago

Milestone: BacklogAlpha 23

Someone should check wheather it was fixed by r20268.

comment:4 by temple, 6 years ago

In 20949:

Add a tile owner check in territory decay

Differential Revision: https://code.wildfiregames.com/D1225
Reviewed By: mimo
Comment By: elexis
Fixes: #4787
Refs: #4681, #4749

comment:5 by temple, 6 years ago

Territories can be adjacent diagonally, plus the boundary lines are curved so they don't extend all the way to the corner of a territory square. So it can look like two territories are disconnected even though they're actually connected, the same kind of issue as #1229.

by elexis, 6 years ago

Attachment: screenshot1516.jpg added

disconnected not-decaying not-blinking house in the a22 replay

by elexis, 6 years ago

Attachment: screenshot1520.jpg added

Blinking but not decaying connected farmstead in the a21 replay

comment:6 by temple, 6 years ago

Milestone: Alpha 23Backlog

I tried removing the diagonal connections, but the boundary lines are smoothed (which is a good thing), so territories that are connected just by one tile can still appear to be disconnected. We'll need to make the boundary line algorithm smarter and more complicated to fix that.

Another issue is territories can be cut off from a root building, but if the player doesn't have a building in there to trigger a blinking check, it won't blink and he'll be able to place foundations until he finishes his first building and the territory finally starts to blink. This is a rare situation, but it can happen.

Last edited 6 years ago by temple (previous) (diff)

comment:7 by Itms, 5 years ago

Component: UI & SimulationSimulation
Note: See TracTickets for help on using tickets.