Bay 12 Games Forum

Dwarf Fortress => DF Gameplay Questions => Topic started by: em312s0n on October 29, 2018, 03:01:25 pm

Title: Is there a way to display the fort population's food preference?
Post by: em312s0n on October 29, 2018, 03:01:25 pm
Cooking "decent meals" is hard enough but going through everyone's thoughts and preferences to know what they want to eat is a PAAAAIN. is there some other way to do this DFhack, DT or otherwise?
Title: Re: Is there a way to display the fort population's food preference?
Post by: PatrikLundell on October 29, 2018, 05:07:58 pm
This DFHack Lua script lists them.

Spoiler (click to show/hide)
Title: Re: Is there a way to display the fort population's food preference?
Post by: em312s0n on October 29, 2018, 06:13:55 pm
This DFHack Lua script lists them.

Spoiler (click to show/hide)

Thank you sir. Did you make this?

EDIT: just tried it. It even lists which part of the animal they like. nice!
 there are duplicates though. I wish I knew how to write lua scripts. this works well enough. thanks
Title: Re: Is there a way to display the fort population's food preference?
Post by: PatrikLundell on October 30, 2018, 04:25:07 am
Yes, I wrote it a couple of months ago for my own use, although I think I've shared it on the forum before.
Here's a somewhat improved version that sorts the entries and removes duplicates (which resulted because the original script just added preferences as they were encountered, without checking of another dorf had the same one).
Spoiler (click to show/hide)
Title: Re: Is there a way to display the fort population's food preference?
Post by: em312s0n on October 30, 2018, 05:25:19 pm
That is awesome. The first one may actually be more usefull since it could tell me how many of them like the same stuff. man I wish I had the time to learn to script it myself.

Now I'm wondering if its possible to make it in such a way that It would tell me what combination of roasts would satisfy all of the fort's needs. That would take it to ☼Script☼ quality.
Title: Re: Is there a way to display the fort population's food preference?
Post by: sketchesofpayne on October 31, 2018, 08:20:25 pm
@PatrikLundell
Nice script.  I added it to my DFHack folder and it works great.
Title: Re: Is there a way to display the fort population's food preference?
Post by: PatrikLundell on November 01, 2018, 04:00:33 am
Updated the food_needs script to list the number of residents with the given food/drink need.
Spoiler (click to show/hide)
Title: Re: Is there a way to display the fort population's food preference?
Post by: em312s0n on November 01, 2018, 02:19:35 pm
Dear sir you are a hero.