Dwarf Fortress

Dwarf Fortress

Multi-Hauling
 This topic has been pinned, so it's probably important
L. Loire  [developer] 23 Jul @ 12:39pm
FAQ
Can you tell like, what's the workflow during the game?
Here is a basic logic of the mod.
The tool activates whenever a storage hauling job starts: it checks if a wheelbarrow is attached (and tries to attach one if it is not). After that it analizes main job item and depending on used mode adds relevant items near it to the job.

If you are interested in code logic, it's better to check it on github, but here is a key part:

for_each_item_in_radius(x, y, z, state.radius, function(it) if it ~= target and not it.flags.in_job and it.flags.on_ground and not it:isWheelbarrow() and not dfhack.items.isRouteVehicle(it) and not is_stockpiled(it) and matches(it) then dfhack.job.attachJobItem(job, it, df.job_role_type.Hauled, -1, -1) count = count + 1 if count >= state.max_items then return true end end end)


Do you have to assign wheelbarrow to every pile?

By default — no, script would use any free wheelbarrow it finds nearby
If autowheelbarrows option is off, then yes — it would only work with typical wheelbarrow pattern. And that would be using assigned to the stockpile wheelbarrows only and only with heavy items (>75 units)



Does it work with quantum?

You still need to use minecarts for a classic quantum stockpiles. But since wheelbarrows are unloaded to a single tile, almost any storage would be used more efficient (and closer to QSP). Because there would be more than one item laying in a single tile. So in many cases you would not really need QSP that badly.



Do you have to turn on any menu?

Just standard DFhack stuff:

1. Install DFhack (if not already)
2. Run multihaul enable in the dfhack console
3. Leave it as is, or set up all the params by yourself

Would you recommend makong some spare wheelbarrows in that case?

Keeping free wheelbarrows in your fort should improve your overall logistic efficiency. For an easy solution, create a task via order management with creating wheelbarrows if amount of empty ones is lower than a set threshold.
Last edited by L. Loire; 24 Jul @ 5:55am