Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.69k stars 2.98k forks source link

RTS AI Commands ground units to unaccessible locations on the map #10217

Closed JianhuiDong9999 closed 1 month ago

JianhuiDong9999 commented 1 month ago

Platforms

Mac

Build

bleeding-edge build 25292

Issue

RTS AI issues move/target commands ground units to attack inaccessible locations, such as bores within a space confined by terrain walls and islands surrounded by liquids capable of drowning said units.

https://github.com/user-attachments/assets/66bfba7d-dc2b-4518-a855-4cc9e4836d11

Steps to reproduce

Make a map with ground-inaccessible tiles and turn on RTS AI. Put buildings that RTS AI attacks (bores, cliff crushers, turbine condensers, etc.) within the inaccessible terrain pocket(s) and spawn enemy ground units. Switch to enemy team to see where they are being commanded to attack. Some of them will be stuck trying to attack buildings within the pocket.

Mods used

No response

Save file

No response

(Crash) logs

No response

Submission

JasonP01 commented 1 month ago

Is your vid supposed to be 1 second long?

jehosula commented 1 month ago

https://github.com/user-attachments/assets/d2f0b827-43c9-4a41-bd17-20f848f3edbf bug showcase.zip

the bug is easy to replicate

jehosula commented 1 month ago

https://github.com/user-attachments/assets/7ca16338-90c4-4661-87b5-63e44e0e9467

i think i forgot the video

Anuken commented 1 month ago

As the template says, a save file is required. I can't reproduce this issue in a test map.