Manhunters may try to breach doors they have not seen colonists move through

Started by Pichu0102, April 09, 2017, 11:59:56 PM

Previous topic - Next topic

Pichu0102

In vanilla with all mods disabled, this behavior still appears. If you have a setup where you have a wall with an open corridor outside and a building inside, perhaps to line with traps, a colonist moving into the inner building will cause the manhunters to begin attacking outer doors they have never seen a colonist go through. They correctly start moving down the corridor if a colonist is inside the outer wall but outside the inner wall, but sometimes will attack doors in the outer wall if that colonists moves inside the inner walls.

Screenshots for examples: https://imgur.com/a/uczhI

It can take a few tries to reproduce, but will happen much more with larger manhunter packs. Simply move a colonist out of the inner building into the outer walls area, wait for the manhunter to notice and begin to attempt to path to them from outside the outer walls, move the colonist back inside the inner walls.

Save: https://drive.google.com/file/d/0Bw9MkN7biQ5BdS1COTFOajc3MVU/view?usp=sharing

An output log is here: https://drive.google.com/file/d/0Bw9MkN7biQ5BbHZ0eDc4LUpYOVU/view?usp=sharing
The vanilla reproduction of the bug starts at the line: "Initializing new game with mods Core" with no other mods after that.

nccvoyager

Thank you for the well-written report there.  ;D

Manhunters will attempt to find a path to colonists that are not inside of an enclosed area.
In your screenshot, the outer wall is not enclosed.

If the pawn that a manhunter is targeting enters an enclosed area, the manhunter will change behaviour, and will attempt to take the shortest path to their original target, likely attacking the nearest door to the manhunter animal.
LOS (line of sight) is not currently a factor in these calculations.

It will be up to Tynan whether or not LOS (and the ability for an animal to see) will be a factor in this behaviour in the future, but for now, manhunter pathfinding ignores LOS, and this therefore appears to be WAD.


ison

I think it's fine. The colonist had entered an enclosed area, so the manhunting elephant was allowed to bash all doors. If we required a line of sight  then it would usually take too long for manhunting animals to notice colonists. Thanks for reporting though, very well-written report.