View Issue Details

IDProjectCategoryView StatusLast Update
0004721Spring engineAIpublic2015-06-04 10:38
Reportermsafwan Assigned TojK  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version98.0.1+git 
Summary0004721: Unit can't reach attack target/stuck
DescriptionI'm reporting ZK issue: https://github.com/ZeroK-RTS/Zero-K/issues/664

I've tested using /debugpath view and its confirmed that unit stuck

I also include video for convenience.
Steps To Reproducedo
/give spherepole
/give armsolar 1

attack the solar from random direction
Additional Informationhttps://www.youtube.com/watch?v=jLQWZCgowns
Tagspathfinding
Attached Files
20150401_001845_ScorpioBattleground_98.0.1-499-g1effda2 develop.sdf (Attachment missing)
98.0.1-706-gaa3e0e2 ground target.sdf (Attachment missing)
Checked infolog.txt for Errors

Activities

jK

2015-03-31 15:08

developer   ~0014261

not engine ...
spherepole just doesn't auto attack buildings, must be some zk lua ...
spawn an unit with a weapon and see spherepole attacking it
spawn an building w/o weapon -> won't move at all (even on fire at will + roam)

Google_Frog

2015-03-31 15:20

reporter   ~0014262

Spherepole does not auto attack Solars because they are a bad target. That is just using noChaseCategories. If you spawn a spherepole near armfusion and set to roam it will go and attack it.

If you think that is relevant to the report then you misunderstand the bug. The bug is that when given an attack command it will often stop before it is in range. Target acquisition is not what the report is about.

I have reproduced this with luarules and luaui disabled.

Google_Frog

2015-03-31 15:24

reporter   ~0014263

"20150401_001845_ScorpioBattleground_98.0.1-499-g1effda2 develop" is a short demonstration replay.

Engine: 98.0.1-499-g1effda2
Game: Zero-K v1.3.3.8
Map: ScorpioBattleground

cleanrock

2015-04-04 07:16

reporter   ~0014272

Is this a recently introduced bug ?
If so, in which version/commit was this bug introduced ?

Google_Frog

2015-04-04 08:14

reporter   ~0014273

I do not think it is recent.

azaremoth

2015-05-04 22:45

reporter   ~0014429

Same thing for The Cursed (comapre http://azaremoth.square7.ch/img/refusal_to_attack.jpg).

The bug was already included 99.0-RC3. Maybe even before. I do not know.

abma

2015-05-08 08:34

administrator   ~0014448

Last edited: 2015-05-08 08:35

edit: wrong issue, sorry.

Google_Frog

2015-05-16 06:58

reporter   ~0014468

I have bisected the bug and found that it is actually a recent bug. For some reason the bug seems to have become worse recently but I have not done a good test to determine this.

Works in 97.0.1-363-g81eb79c
https://github.com/spring/spring/commit/81eb79ceaa785a1bcf2ba645b0d5469f883e85f2

Broken in 97.0.1-372-g41e3c42
https://github.com/spring/spring/commit/41e3c42f77ff8787488631bccaae3409bf36f13c

There are a few pathfinding changes between those two versions but I don't have any intermediate builds.

Google_Frog

2015-06-01 15:03

reporter   ~0014503

This still occurs most of the time even though https://springrts.com/mantis/view.php?id=4778 appears fixed for ground units.

Google_Frog

2015-06-03 15:11

reporter   ~0014533

This bug seems to only occur when the target of the attack is on impassible terrain which is covered by an enemy structure. I tested with attack ground commands to underneath an enemy structure as well as attack commands directly on the structure. Perhaps the pathfinder stops the unit prematurely because the target cannot be reached. Perhaps it is something to do with targeting. I don't know.

The bug with both attack ground and unit targeting is demonstrated in '98.0.1-706-gaa3e0e2 ground target'

I would like to know that jK isn't ignoring this issue. I worry because his only post was to dismiss the bug because the unit had a noChaseCategory.

jK

2015-06-04 10:38

developer   ~0014536

seems to be fixed by https://github.com/spring/spring/commit/47bf190a1801a0490811bfd9c58ba0c4b2ac13b6

duno how and why - i thought I only fixed ground attack -, but you don't question gifts that fall from the sky ;)

Issue History

Date Modified Username Field Change
2015-03-30 19:23 msafwan New Issue
2015-03-30 19:23 msafwan Tag Attached: pathfinding
2015-03-30 19:23 msafwan Tag Attached: p
2015-03-30 19:23 msafwan Tag Detached: p
2015-03-31 15:08 jK Note Added: 0014261
2015-03-31 15:20 Google_Frog Note Added: 0014262
2015-03-31 15:23 Google_Frog File Added: 20150401_001845_ScorpioBattleground_98.0.1-499-g1effda2 develop.sdf
2015-03-31 15:24 Google_Frog Note Added: 0014263
2015-04-04 07:16 cleanrock Note Added: 0014272
2015-04-04 08:14 Google_Frog Note Added: 0014273
2015-05-04 22:45 azaremoth Note Added: 0014429
2015-05-08 08:34 abma Note Added: 0014448
2015-05-08 08:34 abma Note Edited: 0014448
2015-05-08 08:35 abma Note Edited: 0014448
2015-05-16 06:58 Google_Frog Note Added: 0014468
2015-06-01 15:03 Google_Frog Note Added: 0014503
2015-06-03 15:11 Google_Frog Note Added: 0014533
2015-06-03 15:11 Google_Frog File Added: 98.0.1-706-gaa3e0e2 ground target.sdf
2015-06-04 10:38 jK Note Added: 0014536
2015-06-04 10:38 jK Status new => resolved
2015-06-04 10:38 jK Resolution open => fixed
2015-06-04 10:38 jK Assigned To => jK