Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003898Dwarf FortressReactionspublic2011-01-18 09:102012-02-27 06:39
ReporterAlluvian_Est-Endrati 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformWindowsOSWindows 7OS Version
Product Version0.31.18 
Target VersionFixed in Version 
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, bone, bones, dwarf fortress mode, reactions, stock, stockpiles, workshops
Attached Files

- Relationships
child of 0002011new Decorating with bone/horn uses whole stack 

-  Notes
(0014904)
Quietust (reporter)
2011-01-18 19:21

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).

- 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-26 11:47 Buglist Issue Monitored: Buglist
2012-02-27 06:39 Footkerchief 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


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker