Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Quantum stockpiles and barrels  (Read 2962 times)

Vndetta

  • Bay Watcher
    • View Profile
Quantum stockpiles and barrels
« on: December 15, 2014, 03:23:26 am »

Just out of curiosity, has anyone ever gotten a quantum stockpile to work with booze, or is it still not possible?

For clarity's sake, I'm referring to the long-standing difficulty with using minecarts to dump loads of barrels/pots into a one-tile stockpile. The dwarves tend to take the barrels back to the originating stockpile instead of leaving them in the new one like they do with anything not in a container. This happens with any container except bags, which work fine. So essentially you can quantum stockpile anything in the fortress except things that are forced into pots, like liquids.

I doubt this has been solved, as I've continued to observe this behavior in .40.19, and it's not a big deal of course, but I'm very curious.
Logged

utunnels

  • Bay Watcher
  • Axedwarf
    • View Profile
Re: Quantum stockpiles and barrels
« Reply #1 on: December 15, 2014, 03:41:00 am »

It doesn't work well with containers.
Logged
The troglodyte head shakes The Troglodyte around by the head, tearing apart the head's muscle!

Risen Asteshdakas, Ghostly Recruit has risen and is haunting the fortress!

Larix

  • Bay Watcher
    • View Profile
Re: Quantum stockpiles and barrels
« Reply #2 on: December 15, 2014, 04:33:20 am »

As far as i can tell, containers are only properly handled if they are _assigned_ to a stockpile, e.g. if the description reads "prepared food barrel (oak) (#34)" and you're currently looking at Stockpile #34. Container assignments are issued only by stockpiles which have open capacity and newly-assigned containers must be hand-hauled by dwarfs. Notably, assignments don't change when a container is moved via minecart, i.e. they remain assigned to their origin stockpile, which is why dwarfs feel compelled to return them to their "proper" place.

If containers actually make it to the target pile, you could forbid them, wait a few turns and reclaim them. This normally clears the stockpile allegiance of containers; they'll be sort-of orphaned, but at least it might be possible to prevent the back-hauling. I haven't tried that, though.
Logged

Syndic

  • Bay Watcher
    • View Profile
Re: Quantum stockpiles and barrels
« Reply #3 on: December 15, 2014, 11:11:33 am »

Well, it somewhat works if you make your originating stockpile "take only from links" (and link it to the still). That way it won't ever stockpile booze you bought or seized from caravans, but anything from your still goes to the quantum stockpile and since they don't have a stockpile to carry it to, dwarves will just drop the barrel again right after drinking, which will be on (or at least, closely around) your quantum stockpile.

/edit: hmm, I haven't tested whether you can link a stockpile to take from a trade depot too - if that works, it would solve the whole issue. should try that sometime.
Logged

Dozebôm Lolumzalìs

  • Bay Watcher
  • what even is truth
    • View Profile
    • test
Re: Quantum stockpiles and barrels
« Reply #4 on: December 16, 2014, 03:50:06 pm »

You can't link a stockpile to a non-workshop building. Smelters, I don't know, I'll go check right now.

EDIT: Yep, smelters work, depots don't.
Logged
Quote from: King James Programming
...Simplification leaves us with the black extra-cosmic gulfs it throws open before our frenzied eyes...
Quote from: Salvané Descocrates
The only difference between me and a fool is that I know that I know only that I think, therefore I am.
Sigtext!

Vndetta

  • Bay Watcher
    • View Profile
Re: Quantum stockpiles and barrels
« Reply #5 on: December 16, 2014, 11:01:25 pm »

As far as i can tell, containers are only properly handled if they are _assigned_ to a stockpile, e.g. if the description reads "prepared food barrel (oak) (#34)" and you're currently looking at Stockpile #34. Container assignments are issued only by stockpiles which have open capacity and newly-assigned containers must be hand-hauled by dwarfs. Notably, assignments don't change when a container is moved via minecart, i.e. they remain assigned to their origin stockpile, which is why dwarfs feel compelled to return them to their "proper" place.

If containers actually make it to the target pile, you could forbid them, wait a few turns and reclaim them. This normally clears the stockpile allegiance of containers; they'll be sort-of orphaned, but at least it might be possible to prevent the back-hauling. I haven't tried that, though.

This is some cool info, thanks! I haven't had a chance to really test your suggestion yet but I like it. I wonder if there would be any downsides to having sort-of-orphaned containers? I can't really think of what kind of effect a barrel not being assigned would have, code-wise.
Logged