Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0007032Dwarf FortressDwarf Mode -- Jobs, Farming/Farmer's Workshoppublic2014-07-10 23:592014-08-14 23:49
darkness100 
Toady One 
normaltweakalways
resolvedfixed 
Windos 7
0.40.02 
0.40.09 
0007032: PROCESS_PLANT_TO_BAG reaction does not produce seeds
The reaction of processing plant to bag don't produce any rock nut.
Intentional/Expected?, Probable Quick Fix, raw files
has duplicate 0007094resolved Dwarfu Disappearing Rock Nuts 
has duplicate 0007187resolved Footkerchief Quarry bushes don't produce seeds 
has duplicate 0009110resolved lethosor Quarry Bushes do not produce Rock Nuts 
Issue History
2014-07-10 23:59darkness100New Issue
2014-07-11 00:35DwarfuNote Added: 0025702
2014-07-11 00:35DwarfuAssigned To => Dwarfu
2014-07-11 00:35DwarfuStatusnew => acknowledged
2014-07-11 00:36DwarfuSummaryDo not produce rock nuts => PROCESS_PLANT_TO_BAG reaction does not produce seeds
2014-07-11 00:36DwarfuTag Attached: Intentional/Expected?
2014-07-11 01:12darkness100Note Added: 0025712
2014-07-11 02:48HmHNote Added: 0025722
2014-07-11 17:34DwarfuRelationship addedhas duplicate 0007094
2014-07-13 00:29FootkerchiefRelationship addedhas duplicate 0007187
2014-07-13 00:53crossmrNote Added: 0026096
2014-07-15 03:43JoeJoeNote Added: 0026448
2014-07-15 18:05FootkerchiefRelationship addedrelated to 0007337
2014-07-15 19:49DwarfuRelationship deletedrelated to 0007337
2014-07-25 03:23MultipartiteIssue Monitored: Multipartite
2014-07-25 05:54QuietustNote Added: 0027485
2014-07-25 05:54QuietustNote Edited: 0027485bug_revision_view_page.php?bugnote_id=0027485#r10320
2014-07-25 05:55QuietustNote Edited: 0027485bug_revision_view_page.php?bugnote_id=0027485#r10321
2014-07-25 06:44FootkerchiefTag Attached: Probable Quick Fix
2014-07-25 15:49KirkegaardIssue Monitored: Kirkegaard
2014-07-27 10:40KanddakIssue Monitored: Kanddak
2014-07-27 15:19DwarfuNote Added: 0027723
2014-07-30 12:12KanddakNote Added: 0027973
2014-07-30 12:13KanddakNote Edited: 0027973bug_revision_view_page.php?bugnote_id=0027973#r10553
2014-07-30 12:59DwarfuStatusacknowledged => confirmed
2014-07-31 13:55jpcostaIssue Monitored: jpcosta
2014-07-31 14:324maskwolfIssue Monitored: 4maskwolf
2014-08-02 12:59toombsNote Added: 0028158
2014-08-03 15:47greycatNote Added: 0028241
2014-08-05 10:21toombsNote Added: 0028385
2014-08-05 10:45toombsNote Edited: 0028385bug_revision_view_page.php?bugnote_id=0028385#r10807
2014-08-05 11:27toombsNote Edited: 0028385bug_revision_view_page.php?bugnote_id=0028385#r10810
2014-08-05 13:50toombsNote Edited: 0028385bug_revision_view_page.php?bugnote_id=0028385#r10811
2014-08-11 11:57KanddakNote Added: 0028821
2014-08-11 11:57KanddakTag Attached: raw files
2014-08-12 18:52MrCNote Added: 0028909
2014-08-13 12:07Toady OneStatusconfirmed => resolved
2014-08-13 12:07Toady OneFixed in Version => Next Version
2014-08-13 12:07Toady OneResolutionopen => fixed
2014-08-13 12:07Toady OneAssigned ToDwarfu => Toady One
2014-08-13 12:224maskwolfIssue End Monitor: 4maskwolf
2014-08-13 12:28KanddakIssue End Monitor: Kanddak
2014-08-13 13:52KirkegaardIssue End Monitor: Kirkegaard
2014-08-14 23:49MultipartiteIssue End Monitor: Multipartite
2015-11-06 05:47Knight OtuRelationship addedrelated to 0009110
2015-11-06 18:15lethosorRelationship replacedhas duplicate 0009110

Notes
(0025702)
Dwarfu   
2014-07-11 00:35   
The new reaction PROCESS_PLANT_TO_BAG in reaction_other.txt does not have a seed as a product. In previous version this hard-coded reaction produced a seed. Should probably be matched with the brewing reactions to produce a seed.
(0025712)
darkness100   
2014-07-11 01:12   
I think I solve the problem. The raw file of PROCESS_PLANT_TO_BAG should be added a line to produce a seed. And the raw file of quarry bush should be added a line to define the SEED_MAT of quarry bush.
(0025722)
HmH   
2014-07-11 02:48   
Additionally, the reaction produces 5 leaves regardless of how many bushes are used since the bag doesn't have [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]. Adding that tag solves the problem.
(0026096)
crossmr   
2014-07-13 00:53   
This is possibly related. It seems my pig tails did the same thing. I had some growing, actually it seemed a couple years, but suddenly now my seeds are gone.
(0026448)
JoeJoe   
2014-07-15 03:43   
Yeah, I've had my cave wheat disappear once, and now my sweet pods and rock nuts are gone (even though I updated the raws).
(0027485)
Quietust   
2014-07-25 05:54   
(edited on: 2014-07-25 05:55)
The solution to this one is simple enough:


    [PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
    [PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
    [PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]


This exactly matches behavior for eating plants (start with 1 seed, 1/2 chance to increase to 2 seeds, and 1/8 chance to increase to 3 seeds IF it didn't choose 2), and should probably be used with the brewing reactions as well for consistency with older versions.

(0027723)
Dwarfu   
2014-07-27 15:19   
Not sure seeds work the same now, though I can't say I paid much attention to it before, but even though the seed products for brewing are:
[PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT],
it is 100% per plant in the stack...a stack of plant[4] is producing 4 seeds for me.
(0027973)
Kanddak   
2014-07-30 12:12   
(edited on: 2014-07-30 12:13)
It's been a long time since I've mucked around with the raws, so for readers in similar circumstances, here's a more detailed description of how I fixed my raws using HmH, Quietust, and darkness100's patches.

1. The files you need to change are in raw/objects. This will fix the issue for any new worlds generated after the change. To fix it in existing worlds, you need to get into data/save/regionx/raw/objects, where regionx is the name of your save.

2. Open reaction_other.txt and scroll down to "[REACTION:PROCESS_PLANT_TO_BAG]", the last reaction in the file.
Inside the indented block opened with "[REAGENT:bag:1:BOX:NONE:NONE:NONE]", append the line "[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]".
At the end of the reaction, indented only one level, insert "[PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]" and, optionally, two copies of "[PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]".

3. Open plant_standard.txt and scroll down to "[PLANT:BUSH_QUARRY]", the fifth plant in the file.
Inside the first indented block, the one opened with "[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]", append the line "[MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEED]".

(0028158)
toombs   
2014-08-02 12:59   
I turned Kanddak's instructions into a diff:

--- reaction_other.txt- 2014-08-02 03:38:33.318878918 -0400
+++ reaction_other.txt 2014-08-02 15:47:41.539514686 -0400
@@ -325,6 +325,10 @@
         [EMPTY]
         [BAG]
         [PRESERVE_REAGENT]
+ [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
     [PRODUCT:100:5:GET_ITEM_DATA_FROM_REAGENT:plant:BAG_ITEM]
         [PRODUCT_TO_CONTAINER:bag]
+ [PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
+ [PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
+ [PRODUCT:25:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
     [SKILL:PROCESSPLANTS]

Those responsible for packaging .40.05 for Linux should consider applying this to their package.
(0028241)
greycat   
2014-08-03 15:47   
Your patch is missing the part for the plant_standard.txt file.

--- ../../../x/df_linux/raw/objects/reaction_other.txt 2014-08-03 14:55:50.000000000 -0400
+++ reaction_other.txt 2014-08-03 18:43:37.903971931 -0400
@@ -325,6 +325,8 @@
         [EMPTY]
         [BAG]
         [PRESERVE_REAGENT]
+ [DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
     [PRODUCT:100:5:GET_ITEM_DATA_FROM_REAGENT:plant:BAG_ITEM]
         [PRODUCT_TO_CONTAINER:bag]
+ [PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
     [SKILL:PROCESSPLANTS]
--- ../../../x/df_linux/raw/objects/plant_standard.txt 2014-08-03 14:55:50.000000000 -0400
+++ plant_standard.txt 2014-08-03 18:44:44.640998605 -0400
@@ -210,6 +210,7 @@
         [MATERIAL_VALUE:2]
         [EDIBLE_VERMIN]
         [ITEM_REACTION_PRODUCT:BAG_ITEM:PLANT_GROWTH:LEAVES:LOCAL_PLANT_MAT:LEAF]
+ [MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEED]
     [BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
     [PICKED_TILE:5][PICKED_COLOR:7:0:0]
     [GROWDUR:500][VALUE:2]
(0028385)
toombs   
2014-08-05 10:21   
(edited on: 2014-08-05 13:50)
@greycat: Noted. That explains why I'm still leaking rock nuts. I found that getting a working diff file from pasting in the text we posted is endlessly fussy due to DOS line endings and tab characters, so this time, I'm posting a link to a ready-made patch with all of the right formatting.

http://s000.tinyupload.com/index.php?file_id=03211338005757724538 [^]

I have confirmed that this patch did work for me. Linux packagers: use this patch!

(0028821)
Kanddak   
2014-08-11 11:57   
Confirmed: The need to patch the raws before farming quarry bushes persists in 0.40.08.
(0028909)
MrC   
2014-08-12 18:52   
Please fix these entries into the raws before next update.