View Issue Details

IDProjectCategoryView StatusLast Update
0003898Dwarf FortressReactionspublic2014-07-31 10:57
ReporterAlluvian_Est-Endrati Assigned ToToady One  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWindowsOSWindows 7 
Product Version0.31.18 
Fixed in Version0.40.06 
Summary0003898: Entire Bone Stacks are used in Reactions instead of a single Bone
DescriptionFor several pre-scripted reactions, as well as custom reactions (such as for a custom building) there are problems when using bone as a material. In specific the problem is that an entire stack of bone will be utilized instead of a single bone.

Crafting a bone bow, at the bowyer, is an example of one of the reactions that seems to work properly at the moment. However for all other custom reactions I have tried, an entire stack of bone is used up as the Reagent in production.

The item is still produced out of the reaction, but the entire stack is depleted in its construction.
Steps To ReproduceSlaughter/Butcher some creature to get some bone.
Use the following reaction information as a custom reaction.

[REACTION:MAKE_BONE_BLOCKS]
[NAME:Make bone Blocks]
[BUILDING:BONE_QUARRY:NONE]
[REAGENT:A:1:BONE:NONE:NONE:NONE][ANY_BONE_MATERIAL][USE_BODY_COMPONENT]
[PRODUCT:100:1:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:BONECARVE]

Attempted to even use something like [PRODUCT_DIMENSION:1] to reduce the amount of material utilized, to no avail.

A bone block would be produced correctly with the following reaction. However if you had a stack of 12 cow bones, it would make a single block just as if you had access to only a single cow bone but 'waste' 11 bones in the process.
Additional InformationThis problem seems endemic regardless of what is being made in the PRODUCT line. Attempts with other product types (chair, armor, door, etc.) result in the same stack use. For Reagent purposes I would guess that a stack of bone looks just like a single bone for material purposes.

Tried adding the following to the bone material template:
[REACTION_CLASS:BONE]
[MATERIAL_REACTION_PRODUCT:BONE_MAT:LOCAL_CREATURE_MAT:BONE]

And then changing the reagent above to something like this:
[REAGENT:A:1:BONE:NONE:NONE:NONE][REACTION_CLASS:BONE]
[HAS_MATERIAL_REACTION_PRODUCT:BONE_MAT][USE_BODY_COMPONENT]

Did not fix the issue of utilizing a whole stack of the substance.
Tagsbody parts, bones, dwarf fortress mode, reactions, workshops

Relationships

related to 0002011 resolvedToady One Decorating with bone/horn uses whole stack 
has duplicate 0006727 resolvedlethosor Crafting certain items from bone uses entire stack rather than individual bones. 
child of 0000808 resolvedToady One Processing Raw Turtles only makes one shell per stack, and other stack size issues 

Activities

Quietust

2011-01-18 19:21

reporter   ~0014904

The "BONE:NONE:NONE:NONE" in the reagent is technically incorrect, since BONE is not an item token (see http://df.magmawiki.com/index.php/Item_token for a list) - you should either be using NONE (which is probably what it was using anyways) or possibly CORPSE/CORPSEPIECE (which might not work as expected).

lethosor

2014-07-08 15:52

manager   ~0025168

Still a problem in 0.40.01, according to 0006727

Liens

2014-07-21 05:51

reporter   ~0027123

Confirming still an issue in 0.40.03

Issue History

Date Modified Username Field Change
2011-01-18 09:10 Alluvian_Est-Endrati New Issue
2011-01-18 09:10 Alluvian_Est-Endrati Tag Attached: bone
2011-01-18 09:11 Alluvian_Est-Endrati Tag Attached: body parts
2011-01-18 09:11 Alluvian_Est-Endrati Tag Attached: bones
2011-01-18 09:11 Alluvian_Est-Endrati Tag Attached: reactions
2011-01-18 09:12 Alluvian_Est-Endrati Tag Attached: dwarf fortress mode
2011-01-18 09:12 Alluvian_Est-Endrati Tag Attached: stock
2011-01-18 09:12 Alluvian_Est-Endrati Tag Attached: stockpiles
2011-01-18 09:12 Alluvian_Est-Endrati Tag Attached: workshops
2011-01-18 12:34 Logical2u Relationship added child of 0002011
2011-01-18 19:21 Quietust Note Added: 0014904
2012-02-27 06:39 user6 Summary Entire Bone Statcks are used in Reactions instead of a single Bone => Entire Bone Stacks are used in Reactions instead of a single Bone
2014-07-08 15:49 lethosor Relationship added has duplicate 0006727
2014-07-08 15:52 lethosor Note Added: 0025168
2014-07-21 05:51 Liens Note Added: 0027123
2014-07-21 05:57 lethosor Tag Detached: stock
2014-07-21 05:57 lethosor Tag Detached: stockpiles
2014-07-21 05:58 lethosor Tag Detached: bone
2014-07-30 12:12 Toady One Relationship added child of 0000808
2014-07-30 12:12 Toady One Relationship replaced related to 0002011
2014-07-31 10:57 Toady One Status new => resolved
2014-07-31 10:57 Toady One Fixed in Version => Next Version
2014-07-31 10:57 Toady One Resolution open => fixed
2014-07-31 10:57 Toady One Assigned To => Toady One