keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Units of Orange ignore own locked doors

Open Loobinex opened this issue 1 year ago • 3 comments

See image: image

All the units of player5, which has been configured in the level script as roaming, will try to walk through their own locked door. White creatures in the same situation do not.

To reproduce, load the testmap and frameskip for a short time: map09999.zip

Loobinex avatar Aug 04 '24 08:08 Loobinex

ah black, It might be to do with the navColour not supporting purple/black/orange, unrelated to roaming

PieterVdc avatar Aug 04 '24 09:08 PieterVdc

ah black, It might be to do with the navColour not supporting purple/black/orange, unrelated to roaming

I can confirm it works correctly if player2 is set to roaming. I get it to work correctly if I set 'players_are_mutual_allies' to always return true, but that indeed may only be the case because that would mess with get_navigation_colour_for_door.

Loobinex avatar Aug 04 '24 09:08 Loobinex

#3390 fixed it for Purple and Black, but Orange is still broken.

Changing the short to long that is needed to fix Orange pathfinding too, will stop regular pathfinding from working. A test for that is to start level 17 (probably any other level works too) and dig towards the portal, and notice all imps fail to find the wall to dig. Issue is because creature_can_navigate_to_with_storage returns 'false'. I believe it is a sub of ma_triangle_route going wrong.

Loobinex avatar Aug 07 '24 14:08 Loobinex