2024-04-23 21:44 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004721Spring engineAIpublic2015-06-04 10:38
Reportermsafwan 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version98.0.1+git 
Target VersionFixed in Version 
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
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0014261

jK (developer)

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)

~0014262

Google_Frog (reporter)

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.

~0014263

Google_Frog (reporter)

"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

~0014272

cleanrock (reporter)

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

~0014273

Google_Frog (reporter)

I do not think it is recent.

~0014429

azaremoth (reporter)

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.

~0014448

abma (administrator)

Last edited: 2015-05-08 08:35

View 3 revisions

edit: wrong issue, sorry.

~0014468

Google_Frog (reporter)

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.

~0014503

Google_Frog (reporter)

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

~0014533

Google_Frog (reporter)

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.

~0014536

jK (developer)

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 ;)
+Notes

-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 View Revisions
2015-05-08 08:35 abma Note Edited: 0014448 View Revisions
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
+Issue History