[Oxyd] [1.1.6] Biters trying to path through indestructible entities attack them

This subforum contains all the issues which we already resolved.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

[Oxyd] [1.1.6] Biters trying to path through indestructible entities attack them

Post by Muppet9010 »

Below indestructible is:

Code: Select all

LuaEntity.destructible = false
When biters try to path through indestructible entities they attack them, despite being able to do no damage. I believe the pathing biters are expected to treat an indestructible entity the same as an entity with its health set to 0 and know to path around it.

I can't find a definition that this ignoring indestructible entities behaviour should be expected, but this similar bug looks to support it:
viewtopic.php?f=11&t=92740
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5304
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [1.1.6] Biters trying to path through indestructible entities attack them

Post by Klonan »

Can you provide a save or scenario showing this behavior?

It works as expected when I test it

Attachments
2021-01-03_20-02-27.mp4
(8.66 MiB) Downloaded 183 times
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Re: [1.1.6] Biters trying to path through indestructible entities attack them

Post by Muppet9010 »

Sorry I was quickly logging this as I came across a note I made when making a mod ages ago. I had assumed it was more common than it turns out.

The attached save reproduces the issue:
aaa3.zip
(1.17 MiB) Downloaded 138 times
The issue seems to be if the biter is already attacking the entity and then the entity becomes indestructible.

To make the attached save:
  1. I placed everything in editor pause mode
  2. unpaused
  3. let the biter path through the wall to the turret
  4. biter starts to attack the wall
  5. Then I made the wall indestructible.
  6. The biter continues to attack the wall, but does no damage any more
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Oxyd] [1.1.6] Biters trying to path through indestructible entities attack them

Post by Oxyd »

Thanks, fixed in 1.1.9.
Post Reply

Return to “Resolved Problems and Bugs”