View Issue Details

IDProjectCategoryView StatusLast Update
0009383Dwarf FortressPathfindingpublic2015-12-19 02:21
ReporterEwcongogamer Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformPCOSWindowsOS Version7 64bit
Product Version0.42.03 
Summary0009383: Mining over z levels takes forever.
DescriptionIf 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.
Steps To Reproduce1. 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.
Additional Informationhttp://dffd.bay12games.com/file.php?id=11513
Save file
TagsNo tags attached.

Activities

Killzemallgod

2015-12-18 19:44

reporter   ~0034037

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.

Ewcongogamer

2015-12-18 20:36

reporter   ~0034041

if you do it all 4 directions it still jumps between z levels. need to add additional calculations?

PatrikLundell

2015-12-19 01:17

reporter   ~0034043

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.

user8971

2015-12-19 02:21

  ~0034045

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.

Issue History

Date Modified Username Field Change
2015-12-18 17:31 Ewcongogamer New Issue
2015-12-18 19:44 Killzemallgod Note Added: 0034037
2015-12-18 20:36 Ewcongogamer Note Added: 0034041
2015-12-19 01:17 PatrikLundell Note Added: 0034043
2015-12-19 02:21 user8971 Note Added: 0034045