Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000808Dwarf FortressDwarf Mode -- Jobs, Fishingpublic2010-04-08 10:382014-08-03 14:03
Zeg 
Toady One 
normalminoralways
resolvedfixed 
0.31.01 
0.40.06 
0000808: Processing Raw Turtles only makes one shell per stack, and other stack size issues
Processing a stack of Raw Turtles only seems to make one turtle shell per stack, rather than the same number as turtles in the stack.

Also, it doesn't seem to produce any bones at all. I guess that may possibly be intentional, since logically turtle bones should be too small for most of the applications they used to be used for (5 turtle bone bolts from one turtle).
binary patch, bones, fish, food, shell
related to 0000347resolved Toady One Rendering a stack of fat yields individual tallow items rather than a stack 
parent of 0002117resolved Toady One stacked lye only produces 1 potash 
parent of 0002161resolved Toady One Render fat job gets queued at multiple kitchens for single stack of fat 
parent of 0002011resolved Toady One Decorating with bone/horn uses whole stack 
parent of 0001436resolved Toady One Animal traps get baited with a whole stack of meat/fish 
parent of 0003034resolved Toady One bone greaves require 3 stacks of bone (not just 3 bones) 
parent of 0004616resolved Toady One Spinning stacks of wool only produces a single yarn thread 
parent of 0003898resolved Toady One Entire Bone Stacks are used in Reactions instead of a single Bone 
parent of 0003151resolved Toady One Shell crafts use up the entire stack 
related to 0000231resolved Toady One Body parts from large creatures (bones, meat, leather, tusks, etc) slow workshops down due to clutter 
related to 0000510new  Striking with stacked ammo gives a momentum bonus but no contact area penalty 
related to 0000867confirmed Dwarfu Bad interaction between repeated bone-using jobs & new one-bone-per-job behavior causes cancellation spam 
related to 0004593resolved Toady One shearing sometimes produces stack of 1 wool, which cannot be used 
related to 0006420acknowledged Footkerchief Strange mood requests don't take item dimension into account for decoration materials 
Issue History
2010-04-08 10:38ZegNew Issue
2010-04-08 10:40ZegTag Attached: bones
2010-04-08 10:40ZegTag Attached: fish
2010-04-08 10:40ZegTag Attached: food
2010-04-08 10:40ZegTag Attached: shell
2010-04-08 10:48FootkerchiefNote Added: 0002089
2010-04-08 10:48FootkerchiefIssue Monitored: Footkerchief
2010-04-08 21:00AsheryNote Added: 0002248
2010-04-08 21:01AsheryNote Deleted: 0002248
2010-04-08 21:11GreyhawkNote Added: 0002250
2010-04-08 21:54derigoNote Added: 0002259
2010-04-09 00:18FootkerchiefIssue End Monitor: Footkerchief
2010-06-06 10:53FootkerchiefSummaryProcessing Raw Turtles only makes one shell per stack, always produces no bones. => Processing Raw Turtles only makes one shell per stack
2010-06-22 09:02FootkerchiefRelationship addedchild of 0000347
2010-06-22 09:03FootkerchiefRelationship addedparent of 0002117
2010-06-22 09:03FootkerchiefRelationship addedparent of 0002161
2010-06-22 09:03FootkerchiefRelationship replacedrelated to 0000347
2010-06-22 09:04FootkerchiefRelationship addedparent of 0002011
2010-06-22 09:05FootkerchiefRelationship addedrelated to 0000231
2010-06-22 09:06FootkerchiefSummaryProcessing Raw Turtles only makes one shell per stack => Processing Raw Turtles only makes one shell per stack, and other stack size issues
2010-06-22 09:06FootkerchiefRelationship addedrelated to 0000510
2010-06-22 09:06FootkerchiefRelationship addedrelated to 0000867
2010-06-22 09:07FootkerchiefRelationship addedparent of 0001436
2010-06-22 09:11FootkerchiefSticky IssueNo => Yes
2010-07-17 15:47Khym ChanurIssue Monitored: Khym Chanur
2010-08-10 09:56theqmannIssue Monitored: theqmann
2010-08-15 13:11DwarfuRelationship addedrelated to 0003034
2010-08-15 16:33FootkerchiefRelationship replacedparent of 0003034
2011-03-03 05:32greycatNote Added: 0015700
2011-03-24 22:17JmzLostNote Added: 0016547
2011-04-04 23:47nb4estIssue Monitored: nb4est
2011-04-05 20:03greycatNote Added: 0017117
2011-04-06 11:59RossMNote Added: 0017138
2011-04-06 11:59RossMIssue Monitored: RossM
2011-04-07 00:36nb4estIssue End Monitor: nb4est
2011-04-12 12:21freezeNote Added: 0017322
2011-04-12 12:27RossMNote Added: 0017323
2011-04-16 05:55KumquatNote Added: 0017403
2011-05-07 08:05FootkerchiefRelationship addedparent of 0004616
2011-05-07 11:28FootkerchiefRelationship addedrelated to 0004593
2011-05-18 19:14kwielandNote Added: 0017780
2011-07-13 06:48ellindseyNote Added: 0018221
2011-08-04 21:59CelIssue Monitored: Cel
2011-08-23 14:30krazykatboyNote Added: 0018618
2011-08-23 16:17QuietustNote Added: 0018619
2011-09-14 17:50MorrolanIssue Monitored: Morrolan
2012-03-27 03:58StebIssue Monitored: Steb
2012-06-09 04:43ToksyuryelIssue Monitored: Toksyuryel
2012-09-19 03:28agNote Added: 0023590
2012-09-19 03:28agIssue Monitored: ag
2012-10-07 09:40arclanceIssue Monitored: arclance
2013-09-15 05:45nb4estIssue Monitored: nb4est
2013-09-22 17:12FootkerchiefTag Attached: binary patch
2014-01-15 14:46Kirig Stonebeard IIIssue Monitored: Kirig Stonebeard II
2014-01-17 10:08Kirig StonebeardIssue Monitored: Kirig Stonebeard
2014-01-26 17:55FootkerchiefRelationship addedrelated to 0006420
2014-03-25 13:41DwarfuAssigned To => Dwarfu
2014-03-25 13:41DwarfuStatusnew => acknowledged
2014-07-07 22:31sarkNote Added: 0024934
2014-07-08 18:46sarkIssue Monitored: sark
2014-07-29 15:33DwarfuStatusacknowledged => confirmed
2014-07-30 12:12Toady OneRelationship addedparent of 0003898
2014-07-30 12:12Toady OneRelationship addedparent of 0003151
2014-07-31 10:57Toady OneStatusconfirmed => resolved
2014-07-31 10:57Toady OneFixed in Version => Next Version
2014-07-31 10:57Toady OneResolutionopen => fixed
2014-07-31 10:57Toady OneAssigned ToDwarfu => Toady One
2014-07-31 13:39Hello71Issue Monitored: Hello71
2014-08-03 14:03lethosorSticky IssueYes => No
2016-04-05 04:04StebIssue End Monitor: Steb

Notes
(0002089)
Footkerchief   
2010-04-08 10:48   
The lack of bones is intentional, yeah -- you now only get bones if the creature has enough bone tissue in its body (for example, kittens usually won't give you any bones).

Can anyone confirm about only getting one shell per stack?
(0002250)
Greyhawk   
2010-04-08 21:11   
Yeah, I've seen turtle [5] and (just one) turtle shell at the fishery.
(0002259)
derigo   
2010-04-08 21:54   
my fisher wasn't as skilled (or something) so my turtles were in stacks of 3, and yes, 1 shell per stack.
(0015700)
greycat   
2011-03-03 05:32   
I've been seeing this throughout the entire 0.31.* series. Still happens in 0.31.19.
(0016547)
JmzLost   
2011-03-24 22:17   
Still happening in 31.22. However, when a stack of turtles rots I get 1 shell per turtle. Seems like the fishery is just losing the other shells.

JMZ
(0017117)
greycat   
2011-04-05 20:03   
Producing soap with a barrel of lye [10] from the caravan uses up the entire barrel (plus 1 tallow) and only gives 1 bar of soap. (When soap is made from a bucket or barrel with a single lye, you still get 1 bar of soap.)

I'm not sure if you want this to be a separate bug report, to be marked as a child of this one, or if including it here is best.

I can provide a save game if needed.
(0017138)
RossM   
2011-04-06 11:59   
I can confirm the lye problem.
(0017322)
freeze   
2011-04-12 12:21   
other container/liquid/stack issues i've run across

*soap/potash production consumes all units of lye in a container
-this is true for a barrel from the caravan (lye[10]) and a barrel/pot of homemade lye (lye lye lye ...)

*collected liquids (milk, honey, lye) are not combined
-I'd love to see this addressed as being able to produce larger than single unit stacks of cheese and mead would make the industries worth doing

*liquid production job (lye, etc) can occur on non-empty container

*soldiers assigned drinks can use non-empty containers (vials of golden salve)

Producing bolts from a stack of bone works as expected, in that multiple units of bone bolts[5] are produced. I guess that this is also true for decorating, etc, from a stack of bone, while moods will consume multiple entire stacks.
(0017323)
RossM   
2011-04-12 12:27   
Using non-empty containers to produce liquids is 0001324.
(0017403)
Kumquat   
2011-04-16 05:55   
Stacks of rotting mussels only leave behind a single shell, too.
(0017780)
kwieland   
2011-05-18 19:14   
@freeze I agree that processing bone[7] produces 7 stacks of bolts[5]. However, in previous version processing bone[7] would yield bolt[35], in a single job. 0000867 doesn't directly address this. If it is posted already please pardon the post.
(0018221)
ellindsey   
2011-07-13 06:48   
Further stack weirdness:

If you somehow create a stack of rough gems (only possible with modding), the 'cut gem' operation will consume the entire stack and only generate a single cut gem.

If you somehow create a stack of metal ore (again, only possible with modding), the smelter will consume the entire stack yet only generate a single bar of metal.
(0018618)
krazykatboy   
2011-08-23 14:30   
Also, more stack stuff: Arrows and bolts created at different times or recovered from the field won't stack with pre-existing arrows/bolts of the same material. While this makes sense for used ammo, which could have sustained damage when it hit, this is rather confusing with new ammo.
(0018619)
Quietust   
2011-08-23 16:17   
krazykatboy: this bug is only dealing with jobs not taking stack size into account (i.e. producing fewer goods as a result), not with merging existing stacks together (which has been an issue since, well, forever, and isn't going away any time soon).
(0023590)
ag   
2012-09-19 03:28   
I have made two experimental patches for linux and windows that fix reagent consumption in dwarf mode custom reactions:

http://pastebin.com/x84UWvS0 [^]
http://pastebin.com/cGrJFSkG [^]

The [pseudo]code change amounts to basically this. Since multiplying rsz by granularity makes no sense, I expect that this was intended to work correctly, but a typo crept in. Adventure reactions use a different function, but with code seemingly copied from the dwarf mode verbatim.

for (i = 0; i < num_items; i++)
{
    ridx = reagent_idx[i];
    sz = reagent_quantity[ridx]; // used quantity
    if (sz <= 0) continue;
    reag = reagent[ridx];
    if (reag->flags.PRESERVE_REAGENT) continue;
    rsz = items[i]->getTotalDimension();
<<<<<<<<
    if (reag->flags3.ANY_RAW_MATERIAL)
        rsz *= BASE_SIZE(items[i]->getType());
    if (items[i]->subtractDimension(rsz))
========
    /* Not in patch, but necessary for full correctness:
    if (reag->flags3.ANY_RAW_MATERIAL)
        rsz /= BASE_SIZE(items[i]->getType());
    */
    if (reag->flags3.ANY_RAW_MATERIAL)
        sz *= BASE_SIZE(items[i]->getType());
    if (items[i]->subtractDimension(sz))
>>>>>>>>
        destroy_item(items[i]);
    reagent_quantity[ridx] -= rsz
    if (reagent_quantity[ridx] < 0)
        reagent_quantity[ridx] = 0;
}

Note also that this directly exposes another issue: the subtractDimension (name arbitrarily guessed) virtual method does nothing when called on a stack and the amount is smaller than one item. A simple solution to that would be to split the stack as necessary if within a container, or round the subtracted amount up if not.
(0024934)
sark   
2014-07-07 22:31   
Still present in 0.40.01. Stack of 5 lye and 1 tallow = no more lye and 1 soap.