Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009383Dwarf FortressPathfindingpublic2015-12-18 17:312015-12-19 02:21
Ewcongogamer 
 
normalminoralways
newopen 
PCWindows7 64bit
0.42.03 
 
0009383: Mining over z levels takes forever.
If you have a strip of mining designated to mine over multiple z levels the dwarfs mining will go from one level to another after only digging one spot. This causes it to take longer as the distance to between z levels is not calculated and delays mining.
1. Have a fortress with a mining dwarf
2. Designate a strip of rocks to be mined out across z levels where the levels are all accessible.
3. Watch the Dwarf run between levels after each block mined.
http://dffd.bay12games.com/file.php?id=11513 [^]
Save file
No tags attached.
Issue History
2015-12-18 17:31EwcongogamerNew Issue
2015-12-18 19:44KillzemallgodNote Added: 0034037
2015-12-18 20:36EwcongogamerNote Added: 0034041
2015-12-19 01:17PatrikLundellNote Added: 0034043
2015-12-19 02:21DetrosNote Added: 0034045

Notes
(0034037)
Killzemallgod   
2015-12-18 19:44   
Sounds like its more to do with pathfinding.
Might just be left to right then does top to bottom. all while doing the left most across z levels.
(0034041)
Ewcongogamer   
2015-12-18 20:36   
if you do it all 4 directions it still jumps between z levels. need to add additional calculations?
(0034043)
PatrikLundell   
2015-12-19 01:17   
This was introduced in late 0.40.X with the jobs overhaul. The "next tile to process" algorithm is fond of taking the geometrically closest tile regardless of travel distance, often resulting in running between levels if you're digging out two floors.

The work around is to make use of the job priorities introduced at the same time, i.e. designate the top level with a priority of e.g. 1, the next one down with 2, etc. For strip mining, that also has the advantage of not resulting in isolated islands you can't reach without building something to reach their tops, and also avoids cave-in accidents.
(0034045)
Detros   
2015-12-19 02:21   
In 0.42.03 there was "Tweaked how distance is calculated for certain jobs".

See 0001068:0033794, "Dwarves don't choose closest garbage dump (new in 0.31.03!)" which notes treatment of z-distance got changed recently.