dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

Dig-now Channel issue

Open nutwick opened this issue 2 years ago • 3 comments
trafficstars

Dig-now seemed to mine instead of channel in this instance.

image Recording 2023-01-25 at 16 47 03

nutwick avatar Jan 26 '23 00:01 nutwick

The issue (as Rose noticed from the screenshot on Discord) appears to be that dig-now is channeling out every alternate layer. What is likely happening is that after one layer is channeled out, the next layer becomes invalid for channeling due to the lack of rock (because the layer that was just channeled removed it), so that layer is skipped. The logic either needs to be updated to process levels in the opposite direction or otherwise handle this case.

I believe the code goes in the order it does to support successive levels of ramps, so the fixer for this issue should check that both channels and ramps work over multiple levels.

myk002 avatar Jan 26 '23 08:01 myk002

Oh, I forgot to open an issue about this in December. I totally forgot I encountered this.

I imagine running a check to detect this situation, then re-applying the designations and running the process again could also solve it. Though that does feel like more of a hack than solution.

cppcooper avatar Jan 27 '23 21:01 cppcooper

I'm sure it can all be done in a single pass. It just needs a better algorithm than the one I wrote

myk002 avatar Jan 28 '23 05:01 myk002