Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Getting farmers to deposit to the right stockpile.  (Read 839 times)

Snow Gibbon

  • Bay Watcher
    • View Profile
Getting farmers to deposit to the right stockpile.
« on: February 21, 2016, 09:15:50 am »

Simple enough question. I have two plant stockpiles, stockpile A next to my farms and stockpile B a few levels above supplying some kitchens and stills. A minecart elevator connects the two. Instead of putting the harvest in stockpile A the farmers are taking the 50ish tile trek to stockpile B. Seeing as there's no way to take from a farm much like taking from a workshop, is there any way to save my farmer's effort?
Logged

Skorpion

  • Bay Watcher
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #1 on: February 21, 2016, 10:35:22 am »

Have the stockpile by the kitchens set to take from the farm stockpile, and set it to 'take from sources only'.

What you have is a pathing issue. Z-levels count as one step for determining what's closest, no matter the route.
Logged
The *large serrated steel disk* strikes the Raven in the head, tearing apart the muscle, shattering the skull, and tearing apart the brain!
A tendon in the skull has been torn!
The Raven has been knocked unconcious!

Elves do it in trees. Humans do it in wooden structures. Dwarves? Dwarves do it underground. With magma.

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #2 on: February 21, 2016, 11:12:05 am »

- So you've set DF to farmers only harvesting?
- If your mine cart takes from stockpile A and deposits into stockpile B, you should almost do what Skorpion said, i.e. set stockpile B to take from links only, but you shouldn't set up any links, as the mine cart does the delivery, but I may have misunderstood the setup.
Logged

greycat

  • Bay Watcher
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #3 on: February 21, 2016, 12:10:46 pm »

What you have is a pathing issue. Z-levels count as one step for determining what's closest, no matter the route.

Hmm... I'm not sure how harvesting actually works.

In the generic stockpile case (not harvesting, just stuff that happens to be lying around), each stockpile is an active, conscious entity that prowls the item list looking for acquisitions.  When it finds an item it can acquire, it generates a hauling job, and its bearded minions do its bidding.

Now, harvesting might be different.  I'm not sure.  If a dwarf harvests a crop, and there's a stockpile space for it, I don't know whether the dwarf somehow bypasses the whole "here's an item, wait for a stockpile to claim it" step, or if the dwarf harvests the plant, drops it on the ground, waits for a stockpile to claim it, picks it back up, etc.  Gathering fruits/nuts/plants as an Herbalist might also have some special code.  Again, I don't know.

If harvesting uses the generic stockpile code without any special bypasses, then the distance to the stockpiles is completely irrelevant.  It's not a "pathing issue", and the whole "Z levels count as +1 distance even if you have to walk 500 steps to a staircase and back" issue is also irrelevant.  If there is a special bypass, then the distance calculation may be relevant.
Logged
Hell, if nobody's suffocated because of it, it hardly counts as a bug! -- StLeibowitz

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #4 on: February 21, 2016, 05:02:55 pm »

I believe harvesting uses some special logic, because my miners LOVE to harvest (running towards the mining site 140 levels down [+horizontal movement], only to turn back to harvest, again and again, only occasionally performing their actual job), and they don't have food hauling enabled, but still generate a store in stockpile job after harvesting (which I don't mind). Herbalism has some odd behavior, since most of the time the harvesting dorf brings the stuff back, but sometimes big piles of stuff are dropped on the ground (often to wither). Fruit gathering (using a step ladder), on the other hand, results in piles of fruit on the ground under the tree for food haulers to bring in.
I've also seen herbalism resulting in piles of mixed greenery in a food stockpile that only accepted some of them (at the time I separated brewables/threshables from cooking only greenery). That was 0.40.24, but I doubt it's changed.
Logged

a12c5

  • Escaped Lunatic
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #5 on: February 21, 2016, 06:52:04 pm »

I believe harvesting uses some special logic, because my miners LOVE to harvest[...], and they don't have food hauling enabled,
Be careful ! Harvesting is not hauling !
If you want to preven your non-farmer dorfs to harvest, you have to set "only farmer harvest" in the standing order (key : o in the main menu)
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #6 on: February 22, 2016, 03:03:17 am »

I know harvesting isn't food hauling, and I also know its possible to disable harvesting from ALL non farmers. However, most of the work in the fortress takes place close to the farms, and I want everyone to harvest, rather than having the crops wither when the farmer goes on a praying spree, but I'd like harvesting to be a job that can be enabled/disabled individually (probably in the other jobs category containing hauling and cleaning), so I could exclude the miners (at least temporarily), and possibly magma sea workshop workers.
Logged

Snow Gibbon

  • Bay Watcher
    • View Profile
Re: Getting farmers to deposit to the right stockpile.
« Reply #7 on: February 22, 2016, 04:00:54 am »

thanks guys, did the "link only" fix and its working perfectly.
Logged