Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Inedible prepared meal  (Read 2199 times)

Daris

  • Bay Watcher
    • View Profile
Inedible prepared meal
« on: October 03, 2015, 01:12:19 pm »

Would anyone mind explaining for what reason a prepared meal is labeled as "Not edible," and how I can avoid creating inedible prepared meals?
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Inedible prepared meal
« Reply #1 on: October 03, 2015, 09:18:05 pm »

Where does it say "Not edible"? What ingredients does it contain?
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

TruePikachu

  • Bay Watcher
  • Accomplished System Administrator
    • View Profile
    • cDusto (my personal server)
Re: Inedible prepared meal
« Reply #2 on: October 03, 2015, 11:02:21 pm »

I'm tempted to believe this is from a modded game. The executable does not have that string, nor is it located in the data/ tree. It also is missing from my vanilla DFHack install.
« Last Edit: October 03, 2015, 11:04:10 pm by TruePikachu »
Logged
He likes Pokémon, composing ≡«☼characters☼»≡, Windows for its compatability, Linux for its security, and Pikachu for its electric capabilities. When possible, he prefers to consume pasta. He absolutely detests Apple.

Daris

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #3 on: October 04, 2015, 09:03:14 am »

The ingredients were 1 stack of buzzard eggs and 3 honey bee royal jelly.  I have a honey industry and was trying to get the royal jelly cooked.

Spoiler (click to show/hide)

Normally it says "edible only when cooked" or "edible raw or cooked" but this time it's "not edible" at all.

I do use DFHack but haven't modded the game myself.
Logged

NJW2000

  • Bay Watcher
  • You know me. What do I know?
    • View Profile
Re: Inedible prepared meal
« Reply #4 on: October 04, 2015, 09:20:22 am »

Possibly DFhackery gone wrong in that it mixes up "edible" and "cookable"?

Or just eggs being weird. Toady made the yolks and stuff, which sometimes melt in the trade depot and random stuff like that.
Logged
One wheel short of a wagon

Daris

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #5 on: October 04, 2015, 09:22:24 am »

I do get feather tree egg yolks in the trade depot every time the elven caravan arrives.
Logged

TruePikachu

  • Bay Watcher
  • Accomplished System Administrator
    • View Profile
    • cDusto (my personal server)
Re: Inedible prepared meal
« Reply #6 on: October 04, 2015, 10:11:15 am »

What plugin is used to display edibleness then? I'm continuing to not be able to find it in my vanilla DFHack install.
Logged
He likes Pokémon, composing ≡«☼characters☼»≡, Windows for its compatability, Linux for its security, and Pikachu for its electric capabilities. When possible, he prefers to consume pasta. He absolutely detests Apple.

Daris

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #7 on: October 04, 2015, 10:19:28 am »

What plugin is used to display edibleness then? I'm continuing to not be able to find it in my vanilla DFHack install.

I have no idea.  I'm pretty new to the game.  I am using the PyLNP starter pack from here: http://www.bay12forums.com/smf/index.php?topic=126076 except that I am still using r14 instead of the latest one.  I can't find anything in the LNP gui that indicates what might be providing that assessment.

I've put this question into the wrong forum, haven't I?
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #8 on: October 04, 2015, 11:28:28 am »

I think I have the answer, and that is that it's nothing to be concerned with.

I've started an old r14 save and have looked at a number of roasts, and the egg ones indeed say they're not edible, while another one says "Edible raw and cooked", but it also states "Color: green" so the status probably refers to the main roast ingredient rather than the roast itself (Egg roasts are white).
It looks the same in r16, by the way.
Logged

Daris

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #9 on: October 04, 2015, 11:39:42 am »

So you're saying they are edible, and the message is an error?

I apologize.  I've wasted y'all's time and that was definitely not my intention.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #10 on: October 04, 2015, 12:11:21 pm »

I believe they are edible. I have some vague recollection of having heard eggs not being considered edible, even though they can be cooked.
No need to apologize, however, the question was quite valid.
Logged

TruePikachu

  • Bay Watcher
  • Accomplished System Administrator
    • View Profile
    • cDusto (my personal server)
Re: Inedible prepared meal
« Reply #11 on: October 04, 2015, 05:14:38 pm »

Working on trying to isolate the cause over here, so bug reports can be dispatched as appropriate. LNP sure takes a while to extract...
EDIT: Script is at /hack/scripts/view-item-info.lua (with another copy in the /LNP/Extras tree)
Code: [Select]
function edible_string (mat)
    local edible_string = "Edible"
    if mat.flags.EDIBLE_RAW or mat.flags.EDIBLE_COOKED then
        if mat.flags.EDIBLE_RAW then
            edible_string = edible_string.." raw"
            if mat.flags.EDIBLE_COOKED then
                edible_string = edible_string.." and cooked"
            end
        elseif mat.flags.EDIBLE_COOKED then
            edible_string = edible_string.." only when cooked"
        end
    else
        edible_string = "Not edible"
    end
    return edible_string
end
"Not edible" when mat.flags.EDIBLE_RAW and mat.flags.EDIBLE_COOKED are both false.
mat would be honey bee royal jelly:
Code: [Select]
[USE_MATERIAL_TEMPLATE:ROYAL_JELLY:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:frozen honey bee royal jelly]
[STATE_NAME_ADJ:LIQUID:honey bee royal jelly]
[STATE_NAME_ADJ:GAS:boiling honey bee royal jelly]
[STATE_COLOR:ALL:WHITE]
[DISPLAY_COLOR:7:0:1]
[PREFIX:NONE]
[EDIBLE_VERMIN]
[EDIBLE_COOKED]
[EDIBLE_RAW]
Need to find the source of mat's data, since it's incorrectly set.
*expect edits to this post*
« Last Edit: October 04, 2015, 05:28:28 pm by TruePikachu »
Logged
He likes Pokémon, composing ≡«☼characters☼»≡, Windows for its compatability, Linux for its security, and Pikachu for its electric capabilities. When possible, he prefers to consume pasta. He absolutely detests Apple.

Daris

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #12 on: October 04, 2015, 06:01:54 pm »

It has to be the eggs, because another roast made with 1 giant olm kidney and 3 honey bee royal jelly gives this message:

Spoiler (click to show/hide)

Getting the kitchen to cook the royal jelly requires some micromanagement so I have a number of these with different primary ingredients.  I preferred using eggs before I noticed this, because cooking with the eggs turns 4 ingredients the dwarves won't eat uncooked into something I thought would be edible.
Logged

TruePikachu

  • Bay Watcher
  • Accomplished System Administrator
    • View Profile
    • cDusto (my personal server)
Re: Inedible prepared meal
« Reply #13 on: October 04, 2015, 06:22:50 pm »

What happens if, in DFHack:
Code: [Select]
[DFHack]# lua
Type quit to exit interactive lua interpreter.
[lua]# ! dfhack.matinfo.decode(dfhack.gui.getCurViewscreen().item)
((there will be a single line of text))
[lua]# exit
When you have that screen that says "not edible" open? That will tell for certain what it's thinking the roast is made from, down to the part of the egg (if that's the case).
EDIT: It should be the inedible roast, as a clarification.
EDIT: Poking around my cooked meals, I'm betting it will be something like (material ?:? CREATURE:HONEY_BEE:ROYAL_JELLY)
« Last Edit: October 04, 2015, 06:33:31 pm by TruePikachu »
Logged
He likes Pokémon, composing ≡«☼characters☼»≡, Windows for its compatability, Linux for its security, and Pikachu for its electric capabilities. When possible, he prefers to consume pasta. He absolutely detests Apple.

Daris

  • Bay Watcher
    • View Profile
Re: Inedible prepared meal
« Reply #14 on: October 04, 2015, 06:36:10 pm »

This is from a different roast, but similarly inedible:

(material 42:497 CREATURE:BIRD_ROC:EGGSHELL)

eta: prepared from 1 stack roc egg and 3 honey bee royal jelly.

eta2: The edible giant olm kidney + royal jelly roast gives: (material 36:500 CREATURE:OLM_GIANT:KIDNEY)
« Last Edit: October 04, 2015, 06:42:58 pm by Daris »
Logged
Pages: [1] 2