Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Stockpile "give to" and "take from" quiz  (Read 956 times)

TC

  • Bay Watcher
    • View Profile
Stockpile "give to" and "take from" quiz
« on: July 28, 2020, 12:48:34 pm »

I have several questions about the "give to" and "take from" features of stockpiles. I have presented my questions in the form of a multiple choice quiz.

1. If a workshop is configured to take from one or more stockpiles, then dwarfs will take an un-stockpiled item, or an item from a non-linked stockpile, for a job at the workshop:
    a. at will
    b. only when linked stockpiles can't provide a required item
    c. never

2. If a workshop is configured to take from two or more stockpiles, then dwarfs will take an item from linked stockpile i for a job at the workshop:
    a. at will
    b. only when stockpiles 0 through i-1 can't provide a required item
    c. never

3. If a workshop is configured to give to one or more stockpiles, then dwarfs will deliver an item produced at the workshop to a non-linked stockpile or workshop:
    a. at will
    b. only when linked stockpiles can't accept the item
    c. never

4. If a workshop is configured to give to one or more stockpiles, then dwarfs will take an item produced at the workshop for building and construction jobs, trade depot stocking, apparel needs, etc.:
    a. at will
    b. only when linked stockpiles can't accept the item
    c. never

5. If a workshop is configured to give to two or more stockpiles, then dwarfs will deliver an item produced at the workshop to linked stockpile i:
    a. at will
    b. only when linked stockpiles 0 through i-1 can't accept the item
    c. never

6. If a stockpile is configured to take from one or more stockpiles and/or workshops, then dwarfs will take an un-stockpiled item, or an item from a non-linked stockpile or workshop, for storage in the stockpile:
    a. at will
    b. only when linked stockpiles and workshops can't provide an item suitable for storage in the stockpile
    c. never

7. If a stockpile is configured to take from two or more stockpiles and/or workshops, then dwarfs will take an item from linked stockpile or workshop i for storage in the stockpile:
    a. at will
    b. only when linked stockpiles and workshops 0 through i-1 can't provide an item suitable for storage in the stockpile
    c. never

8. If a stockpile is configured to give to one or more stockpiles and/or workshops, then dwarfs will deliver an item from the stockpile to a non-linked stockpile or workshop:
    a. at will
    b. only when linked stockpiles and workshops can't accept the item
    c. never

9. If a stockpile is configured to give to one or more stockpiles and/or workshops, then dwarfs will take an item from the stockpile for building and construction jobs, trade depot stocking, apparel needs, etc.:
    a. at will
    b. only when linked stockpiles and workshops can't accept the item
    c. never

10. If a stockpile is configured to give to two or more stockpiles and/or workshops, then dwarfs will deliver an item from the stockpile to linked stockpile or workshop i:
    a. at will
    b. only when linked stockpiles or workshops 0 through i-1 can't accept the item
    c. never

Of course, dwarfs with strange moods don't play by the rules, so I assume that none of this applies to them.

I feel that the only question clearly answered on the wiki is No. 1. Some of the other answers are easy to guess at, but I'd prefer to have definitive answers. What is known, and what requires research?


-TC
« Last Edit: July 28, 2020, 12:51:01 pm by TC »
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Stockpile "give to" and "take from" quiz
« Reply #1 on: July 28, 2020, 01:43:20 pm »

2. Workshops configured to take from links only take from links: everything not in any of those stockpiles is unavailable to the workshop (couldn't make sense of the alternatives). I'm not aware of the order of links making any difference.
3. c.
4. a.
5. a.
6. They'll take from unlinked sources at will unless the "take from links only" flag is set. Give to links does nothing to prevent usage for non stockpile/free workshop purposes.
7. b. With the caveat that stockpiles configured to use containers won't deliver anything to stockpiles set not to use containers.
8. a. There is no setting allowing the specification of "give to links only", for some reason.
9. a.
10. a, but see 7.
Logged

mightymushroom

  • Bay Watcher
    • View Profile
Re: Stockpile "give to" and "take from" quiz
« Reply #2 on: July 28, 2020, 02:36:33 pm »

All tasks work on a "take from" basis. The labels for "give to" are for human benefit to help trace the link network. So most or all of your questions can be answered when you consider whether or not the taking entity is restricted by the links.

Stockpiles may have links but are only restricted in where they take from if set to "take from links only."
Workshops with any link are automatically "from links only"; workshops without links take from anywhere.
All other jobs never even consider the link system and are always take from anywhere.

The questions about stockpile i assume that there is something about the stockpile number that matters. For everything taking from a stockpile, only the item's position matters so far as I know. (Dwarfs prefer a rough, sometimes inaccurate, approximation of "nearest to myself.") When it is a stockpile generating a Store Item task, it is entirely possible for any or all stockpiles to do so simultaneously. If there is a bias toward higher or lower stockpile numbers, I can't detect it because DF culls these possible tasks in non-obvious ways before listing them on the screen (primarily to match the number of tasks vs. number of haulers of that type).
Logged

TC

  • Bay Watcher
    • View Profile
Re: Stockpile "give to" and "take from" quiz
« Reply #3 on: July 28, 2020, 10:29:05 pm »

Thank you PatrikLundell and mightymushroom. I learned much from your replies.
-TC
Logged