Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006544Dwarf FortressCivilizations/Entities -- Populationspublic2014-07-07 20:062014-07-29 11:17
Gentlefood 
Toady One 
lowminorrandom
resolvedfixed 
MacBook ProWindows 764 bit
0.40.01 
0.40.06 
0006544: Dwarf likes to consume Unknown Leaves
With the addition of new plants and probably multi-tile trees I have discovered a dwarf who likes to consume "unknown leaves".
As with all dwarf traits reproducing is random.
Unknown if it has any further impact than not being able to make something to a dwarfs taste. Probably not.
No tags attached.
Issue History
2014-07-07 20:06GentlefoodNew Issue
2014-07-07 20:06GentlefoodIssue Monitored: Gentlefood
2014-07-07 20:06GentlefoodIssue End Monitor: Gentlefood
2014-07-07 20:12GentlefoodNote Added: 0024905
2014-07-08 11:03FootkerchiefRelationship addedrelated to 0006659
2014-07-10 16:09DwarfuNote Added: 0025614
2014-07-10 16:09DwarfuAssigned To => Dwarfu
2014-07-10 16:09DwarfuStatusnew => needs feedback
2014-07-10 21:12GentlefoodNote Added: 0025679
2014-07-10 21:12GentlefoodStatusneeds feedback => assigned
2014-07-10 21:54Rafal99Note Added: 0025681
2014-07-10 21:56Rafal99Note Edited: 0025681bug_revision_view_page.php?bugnote_id=0025681#r9572
2014-07-10 23:07Rafal99Issue Monitored: Rafal99
2014-07-12 11:49DwarfuNote Added: 0026000
2014-07-12 11:49DwarfuStatusassigned => needs feedback
2014-07-12 17:50GentlefoodNote Added: 0026060
2014-07-12 17:50GentlefoodStatusneeds feedback => assigned
2014-07-16 11:02musicmastermshNote Added: 0026647
2014-07-16 11:28Rafal99Issue End Monitor: Rafal99
2014-07-25 12:15Lich180Note Added: 0027522
2014-07-25 12:16Lich180Note Edited: 0027522bug_revision_view_page.php?bugnote_id=0027522#r10365
2014-07-25 12:16Lich180Issue Monitored: Lich180
2014-07-25 12:22QuietustNote Added: 0027523
2014-07-25 12:22QuietustNote Edited: 0027523bug_revision_view_page.php?bugnote_id=0027523#r10367
2014-07-25 12:23QuietustNote Edited: 0027523bug_revision_view_page.php?bugnote_id=0027523#r10368
2014-07-25 14:28QuietustNote Edited: 0027523bug_revision_view_page.php?bugnote_id=0027523#r10383
2014-07-25 19:28DwarfuStatusassigned => acknowledged
2014-07-25 19:29DwarfuRelationship deletedrelated to 0006659
2014-07-25 19:51QuietustNote Edited: 0027523bug_revision_view_page.php?bugnote_id=0027523#r10413
2014-07-25 19:59QuietustNote Edited: 0027523bug_revision_view_page.php?bugnote_id=0027523#r10414
2014-07-28 14:42DwarfuStatusacknowledged => confirmed
2014-07-29 11:17Toady OneNote Added: 0027875
2014-07-29 11:17Toady OneStatusconfirmed => resolved
2014-07-29 11:17Toady OneFixed in Version => Next Version
2014-07-29 11:17Toady OneResolutionopen => fixed
2014-07-29 11:17Toady OneAssigned ToDwarfu => Toady One

Notes
(0024905)
Gentlefood   
2014-07-07 20:12   
http://i.imgur.com/yT9kpjR.png [^] Image of dwarf personality.
(0025614)
Dwarfu   
2014-07-10 16:09   
This was probably the quarry bush leaves, though there are many other plants now that have edible leaves...will leave this open for feedback.
(0025679)
Gentlefood   
2014-07-10 21:12   
Since the saves are no longer compatible it won't be easy to test for this. I'll keep an eye out, but I can't think of an easy way to go about this.
(0025681)
Rafal99   
2014-07-10 21:54   
(edited on: 2014-07-10 21:56)
Try updating the raws in your 40.01 save with the fixed Quarry Bush raws from 40.02, then load the save in 40.01 and see if the description changed.

The only line that changed in the raw is:
[ITEM_REACTION_PRODUCT:BAG_ITEM:PLANT_GROWTH:LEAVES:LOCAL_PLANT_MAT:STRUCTURAL]
Which changed to:
[ITEM_REACTION_PRODUCT:BAG_ITEM:PLANT_GROWTH:LEAVES:LOCAL_PLANT_MAT:LEAF]

(0026000)
Dwarfu   
2014-07-12 11:49   
There's still a problem somewhere - I keep getting preferences for "likes to consume unknown leaves," but quarry bush is the only entry that contained that line, so it may just be the wonky preferences screen.
(0026060)
Gentlefood   
2014-07-12 17:50   
Well trees do drop their leaves during the later seasons which appear on the ground as gather-able with the gather plants option iirc.
(0026647)
musicmastermsh   
2014-07-16 11:02   
Found this as a preference in 40.03
(0027522)
Lich180   
2014-07-25 12:15   
(edited on: 2014-07-25 12:16)
I have a current save with one of the dwarves with this preference. The dwarf in question is named Saksul "O7" Zattthudsibrek, Axedwarf.

Save: http://dffd.wimbli.com/file.php?id=9147 [^]

(0027523)
Quietust   
2014-07-25 12:22   
(edited on: 2014-07-25 19:59)
The preference in question in Lich180's savegame is for PLANT_GROWTH items with material/matgloss values of 423/139, which decodes to PLANT_MAT:PARADISE_NUT:FRUIT, or paradise nut tree fruit.

I can only assume that it's trying (and failing) to translate that to a GROWTH type (i.e. "paradise nut fruits").

As such, this bug has no relation to 0006659.

[edit]

Upon closer inspection of the item description logic, it looks like PLANT_GROWTH items are always expected to have the item's subtype set to the index of the plant growth in question (and also expects that the material will be in the 419-618 range, ensuring that the matgloss is a valid plant ID).

Given that information, there are actually two different bugs here that need to be fixed:

1. Unit preferences of type 2 (food) and item type 55 (PLANT_GROWTH) must specify a valid subtype to indicate the plant growth type - currently, they store the value -1.
2. The preferences display code needs to pass the item subtype stored inside the preference record into the "format item name" function - currently, it passes a literal value of -1.

(0027875)
Toady One   
2014-07-29 11:17   
Should be fixed for 0.40.06. Old saves will still be affected.