Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Is there a way to display the fort population's food preference?  (Read 1990 times)

em312s0n

  • Bay Watcher
    • View Profile

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?
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #1 on: October 29, 2018, 05:07:58 pm »

This DFHack Lua script lists them.

Spoiler (click to show/hide)
Logged

em312s0n

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #2 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
« Last Edit: October 29, 2018, 06:35:20 pm by em312s0n »
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #3 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)
Logged

em312s0n

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #4 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.
Logged

sketchesofpayne

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #5 on: October 31, 2018, 08:20:25 pm »

@PatrikLundell
Nice script.  I added it to my DFHack folder and it works great.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #6 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)
Logged

em312s0n

  • Bay Watcher
    • View Profile
Re: Is there a way to display the fort population's food preference?
« Reply #7 on: November 01, 2018, 02:19:35 pm »

Dear sir you are a hero.
Logged