Dwarf Fortress

Dwarf Fortress

60 个评价
Multi-Hauling
3
   
奖励
收藏
已收藏
取消收藏
qol, item
标签: dfhack
文件大小
发表于
更新日期
116.783 KB
7 月 23 日 上午 2:34
7 月 27 日 上午 2:18
2 项改动说明 ( 查看 )

订阅以下载
Multi-Hauling

描述
[This mod requires DFHack!]

This tool allows dwarves to collect several adjacent items at once when performing hauling jobs with a wheelbarrow. When enabled, new StoreItemInStockpile jobs with wheelbarrows will automatically attach nearby items so they can be hauled in a single trip.
Jobs without wheelbarrows would try to attach one if autowheelbarrows option is on.
Items claimed by another jobs or already stored in stockpiles would be ignored.
By default, up to ten additional items within 10 tiles of the original item are collected.

Warnings:
1. Destination stockpile filters are currently ignored by the job (because of DF logic). Which items qualify can be controlled with the --mode option.
2. Be careful about QSP and minecarts that accept wheelbarrows. It can go crazy.
3. autowheelbarrows would use any free wheelbarrows nearby, regardless of their connection to any stockpile.
4. Disable autowheelbarrows if you exp big fps drop.
5. Use "any" mode carefully: it could end up with unexpected things.
6. Script automaticly checks if there are any stuck jobs once in a while. But you can focre it with "multihaul unstuckjobs"


Usage
multihaul enable [<options>]
multihaul disable
multihaul status
multihaul unstuckjobs
multihaul config [<options>]
The script can also be enabled persistently with enable multihaul.

Options
--radius <tiles>
Search this many tiles around the target item for additional items. Default is 10.
--max-items <count>
Attach at most this many additional items to each hauling job. Default is 10.
--mode <any|sametype|samesubtype|identical>
Control which nearby items are attached. any collects any items nearby, even if they are not related to an original job item, sametype only matches the item type (like STONE or WOOD), samesubtype requires type and subtype to match, and identical additionally matches material. The default is sametype.
--autowheelbarrows <on|off|enable|disable>
Automatically assign wheelbarrows to jobs that lack them.
--debug <on|off|enable|disable>
Show debug messages via dfhack.gui.showAnnouncement when items are attached.

Code on github:
https://github.com/LoireLab/df_scripts/tree/multihaul

You can support me here:
https://ko-fi.com/loirelab
热门讨论 查看全部(2)
0
1
7 月 23 日 下午 12:39
置顶: FAQ
L. Loire
0
7 月 23 日 上午 4:58
置顶: Using this mod in an existing world/save/fortress
L. Loire
17 条留言
Intrinsic 10 月 15 日 下午 11:38 
Thought i'd comment here that for me i've yet to see it actually work. I'm just using the default settings but they still only haul 1 boulder for example.
ProviD 10 月 6 日 上午 7:00 
Yeah, can confirm that something must be going on with either just DF and/or the mod script.

Ever since the last update, I've been getting some Job Cancelled notification on Forbidden and otherwise inaccessible resources. These notifications seem to come and go on their own.

On rare occasions, the dwarves have actually managed to Multihaul Forbidden items (logs in this case) to stockpile.

Of the two confirmed occasions, both were full (default?) 10-item hauls with Forbidden items being in the middle #4-#7 slots, start and finish being allowed/legit hauling targets.
Dragoon209 9 月 3 日 下午 7:57 
I managed to capture it, see the image here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3561722095

In this case there was a grouping of forbidden boulders adjacent to a few available ones. The dwarf proceeded to pick up the free boulder, and then grabbed the forbidden ones nearby. When they were dumped off in the stockpile, they remained forbidden.
L. Loire  [作者] 9 月 3 日 上午 3:51 
Hmm, that's strange. Would test it
Dragoon209 9 月 2 日 下午 7:31 
In 52.04, it it seems that after picking up the first stone, dwarves are happy to continue to then pick up multiple forbidden stones as well.
Chumpkins 7 月 27 日 下午 9:12 
Heyo! I installed this mod to an existing world and I'm seeing similar issues with settings being reset to default on save load. Haven't tested it out with a fresh world but stuff like autochop, autobutcher, suspendmanager, and this mod itself either turn off completely or require tweaking things past their default settings. Other than that mod works exactly as intended. I use it on the identical setting and it's super helpful for moving large quantities of stone or wood to their intended stockpiles. Let me know if you'd like a copy of my save or any other info and I'd be happy to help.
L. Loire  [作者] 7 月 27 日 上午 5:43 
I would need to research on that topic!
it should save itself within your save file, at least how it is supposed to work
Insulina-Sama 7 月 27 日 上午 5:05 
@L. Loire, Excelent, but i have a question about the mod. I installed it in a pre-existing world like you instructed, but after I installed it, DFHack settings are not being saved after exiting the game, so i have to manually adjust the settings every time i get into my saved game. Do you know why? Sorry for the long question and thank you in advance.
L. Loire  [作者] 7 月 27 日 上午 2:19 
Reuploaded it, since update went by another steam_id :debug:
Insulina-Sama 7 月 26 日 下午 4:39 
@L. Loire You are amazing mate, truly <3