dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

Pathability display plugin "flying mode"

Open Tachytaenius opened this issue 3 years ago • 1 comments

Right now the pathable plugin shows whether walking units can go to places. But the algorithm stores links for flying creatures too, doesn't it? Either way, wouldn't it be good to have a switch to show paths that flying creatures can get to?

Tachytaenius avatar Oct 22 '21 20:10 Tachytaenius

Unfortunately no, the algorithm does not store the necessary information for flying creatures. This is what pathable uses, and there is no related field for pathing through the air: https://github.com/DFHack/df-structures/blob/fc098e53fce4fdd112a52690188a23b1e177a013/df.map.xml#L292-L297

In fact, if this note from the wiki is still accurate, it sounds like flying creatures can't navigate between points if they are only connected by air, so it is possible that flying creatures use the same walkable cache as non-flying creatures:

Due to an apparent bug, flying creatures must be able to path to their target without flying. However when actually moving to the target they will take the most direct route (flying).

lethosor avatar Oct 23 '21 15:10 lethosor