Bay 12 Games Forum

Please login or register.

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

Author Topic: !!Food!! An Analysis of Dwarvern Digestion  (Read 3084 times)

10terrapin01

  • Bay Watcher
  • [ETHICS] [DF_HACK:APPALLING][USE_EXPLOIT:REQUIRED]
    • View Profile
!!Food!! An Analysis of Dwarvern Digestion
« on: June 24, 2014, 05:56:28 pm »

Looking throughout various forum posts, I saw the rumor that dwarves would not drink booze if they were too tired of it.  This has since been proven false, and in such discussions I have seen doubt expressed as to the accuracy of how frequently dwarves eat.  In this post I will follow one dwarf's eating.  In the thread let us discuss all manner of dwarvern food so that other matters of hungry !!Science!! may be brought to the community's attention.

The dwarf, Rith Sackconflict, has been put in a room excavated from soil with the standard starting food.  15 meat, 15 plant, 15 fish and 60 drink.  He has been barricaded in with a construction.  Now we wait.

Herein lies the pedantic logs.
TEST 1 (Burrow)
Spoiler (click to show/hide)
Due to a... Minor oversight, this is the consumption schedule for a burrowed dwarf.
Consumption Schedule
Granite: Nothing
Slate: Drink
Felsite: Food
Hematite: Drink, Food
Malachite: Drink
Galena: Food
Limestone: Drink, Food
Sandstone: Drink
Timber: Food
Moonstone: Drink, Food
Opal: Drink
Obsidian: Food

TEST 2 (No burrow)
Spoiler (click to show/hide)
Consumption Schedule
Granite: Drink
Slate: Food, Drink(unverified), Drink
Felsite: Food(unverified), Drink(unverified)
Hematite: Drink(unverified), Food, Drink(unverified)
Malachite: Drink, Food
Galena: Drink, Drink
Limestone: Food, Drink(unverified)
Sandstone: Drink, Food, Drink(unverified)
Timber: Food, Drink(unverified)
Moonstone: Drink, Food
Opal: Drink(unverified), Drink
Obsidian: Food, Drink(unverified), Drink
Total consumed: 8 food, 16 drink- this is in line with the wiki's prediction, however I am fairly sure vermin were at work during the test.



The wiki says dwarves need 2 units of food per season and 1 unit of drink approximately every 3 weeks.  However it would seem food and drink are needed in the same quantity, ~7 units per year.  I will continue in documenting Rith's dietary habits over some time, but I have just spent an hour staring at him, watching him eat while in a box.



Other Info
A dwarf can drink the same drink 4 times before becoming tired of the booze.


To Do
How often do vermin eat?
« Last Edit: June 25, 2014, 02:10:34 pm by 10terrapin01 »
Logged
I want to tell you they were bad men, cephalo.  I want to tell you that with a better overseer the Fortress never would've gotten so bad someone would get offed in a pointless fisticuffs.
But the sad truth charlie?
It was inevitable.

neblime

  • Bay Watcher
  • More GG more skill
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #1 on: June 24, 2014, 06:39:51 pm »

dwarves certainly won't stop drinking the same booze but it will give them a bad thought.  how many drinks of the same drink does it take I wonder?
Logged
http://i.imgur.com/Gv6I6JO.png
I am quite looking forward to the next 20 or 30 years or so of developmental madness

gtaguy

  • Bay Watcher
  • {Curly Brace}
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #2 on: June 24, 2014, 08:53:50 pm »

That's because the dwarven beard doesn't require very many nutrients to sustain itself, it normally absorbs the crumbs from the messy dwarven way of eating or the unaimed quaff hitting it.
Logged
Quote from: GoldenShadow
I don't understand why you need magma.
Quote from: Duuvian
Well done OP, you've inadvertently weaponized ghosts.

10terrapin01

  • Bay Watcher
  • [ETHICS] [DF_HACK:APPALLING][USE_EXPLOIT:REQUIRED]
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #3 on: June 24, 2014, 09:00:50 pm »

dwarves certainly won't stop drinking the same booze but it will give them a bad thought.  how many drinks of the same drink does it take I wonder?

Interesting, I didn't even think of that.  After some quick !!Science!! and I mean 1000FPS quick, after drinking the fifth barrel of dwarvern rum, my test subject grew tired of the booze, meaning four drinks of the same type is the limit without an unhappy thought.
Logged
I want to tell you they were bad men, cephalo.  I want to tell you that with a better overseer the Fortress never would've gotten so bad someone would get offed in a pointless fisticuffs.
But the sad truth charlie?
It was inevitable.

Larix

  • Bay Watcher
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #4 on: June 24, 2014, 10:18:46 pm »

Eh, it seems that your observations were faulty. I locked up my seven starting dwarfs in individual rooms with nothing to do but eat, drink, sleep and admire their shitty beds. I then kept track of their consumption, and it fit my previous cursory observations and the rates given on the wiki:

- late Granite (pre lockup) - dwarfs get thirsty and have a drink. -7 drinks on stocks
- ~6-12 slate (post lockup) - dwarfs eat for the first time, then have another drink and nap. -14 drinks, -7 food
~1 felsite - third drink.
~20 felsite - second meal, fourth drink, second nap
~5 hematite - fifth drink
20-26 hematite - third meal; sixth drinks directly afterwards, from 26 hematite until 3 malachite.
Tally: -21 food, -42 drinks around 10 malachite. drink consumption was double the food consumption.

How did you keep track of Rith's drinks? Just watching can easily miss it, dwarfs will usually drink before showing the "thirst" blue arrow if they're idle. The only surefire way is to track drinks through checking the stocks - either via stocks screen if you just recruit your entire population for the experiment or precise booze count of your testing dwarf's supply.
Logged

Sergarr

  • Bay Watcher
  • (9) airheaded baka (9)
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #5 on: June 25, 2014, 05:54:47 am »

You know, the physical/mental parameters of dwarves can influence their actions.

Maybe it has some effect on food/drink usage?
Logged
._.

neblime

  • Bay Watcher
  • More GG more skill
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #6 on: June 25, 2014, 06:24:04 am »

Correct me if im wrong but doesn't temprrature affect how quickly dwarves get thirsty, maybe that's the difference between these two tests
Logged
http://i.imgur.com/Gv6I6JO.png
I am quite looking forward to the next 20 or 30 years or so of developmental madness

Larix

  • Bay Watcher
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #7 on: June 25, 2014, 06:29:21 am »

Quote
You know, the physical/mental parameters of dwarves can influence their actions.

Maybe it has some effect on food/drink usage?

Possibly, but when seven dwarfs have the exact same food and drink consumption over 4 1/2 months, i think a single observed dwarf claimed as seven food/seven drink in a year smacks of faulty observation/reporting.

Going by my experience with forced matchmaking, food and drink are required on a very strict schedule. Dwarfs tend to get slightly out of sync over time, but less than +/- one drink against each other in a year. In my test, i watched the seven closely, and it wasn't just "altogether 42 drinks and 21 food consumed", each single one had consumed exactly six drink and three food, no variation among them; the total tally was just the confirmation check, i also kept track of their individual stashes (each was confined to a single cell shared with no other dwarf).

As far as temperature is concerned - all my seven were underground, which has a (near) constant temperature between embarks and worlds.
« Last Edit: June 25, 2014, 06:31:02 am by Larix »
Logged

10terrapin01

  • Bay Watcher
  • [ETHICS] [DF_HACK:APPALLING][USE_EXPLOIT:REQUIRED]
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #8 on: June 25, 2014, 07:40:34 am »

Larix, I checked the stocks after every time that he ate or drank.  I ended up with two less food than expected, however I believe this to be the result of vermin.  Booze was at its expected value.  Rith had a tendency to eat from the same pile of food, whereas the missing food was from different piles.  Also there was an abundance of rats and hamsters in his cave.

The difference between our tests was I had Rith in isolation and left the rest of the dwarves to starve.  This made it a lot easier to track him.
Logged
I want to tell you they were bad men, cephalo.  I want to tell you that with a better overseer the Fortress never would've gotten so bad someone would get offed in a pointless fisticuffs.
But the sad truth charlie?
It was inevitable.

Larix

  • Bay Watcher
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #9 on: June 25, 2014, 08:00:10 am »

Could you upload your save? I wonder if there are any area effects that could halve drink consumption. I have a rather substantial collection of data from various locations and have never encountered this. Your test, as far as i can tell, is an exceptional outlier and would be worth verifying/falsifying.

And as far as data reliability is concerned - i had seven dwarfs, each in isolation, and kept track of them individually and cumulatively. And they were all locked up before anybody had their first meal/second drink.
« Last Edit: June 25, 2014, 08:09:24 am by Larix »
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #10 on: June 25, 2014, 08:38:16 am »

I've just analyzed the relevant code in 0.34.11, and these are my findings:

Thirst, Hunger, and Drowsiness each increment by 1 during each game tick (e.g. 1200 per day, 33600 per month, 403200 per year), possibly more if the dwarf is a mother carrying her child. When they reach certain thresholds, the following things happen.

Thirst:
* 20000 - dwarf starts considering getting something to drink (1/120 chance per tick) if idle
* 22000 - dwarf decides to go get something to drink if idle
* 25000 - dwarf starts flashing "Thirsty"
* 35000 - dwarf gets an unhappy thought about being Thirsty and cancels its current job to get something to drink
* 50000 - dwarf starts flashing "Dehydrated"
* 60000 - dwarf gets an unhappy thought about being Dehydrated
* 75000 - dwarf dies of thirst

Hunger:
* 40000 - dwarf starts considering getting something to eat (1/120 chance per tick) if idle
* 45000 - dwarf decides to go get something to eat if idle
* 50000 - dwarf starts flashing "Hungry"
* 65000 - dwarf gets an unhappy thought about being Hungry and cancels its current job to get something to eat
* 75000 - dwarf starts flashing "Starving" and begins hunting for vermin
* 85000 - dwarf gets an unhappy thought about being Starving
* 100000 - dwarf starves to death (unless it still has stored fat, at which point it starts burning through it rapidly)

Drowsiness:
* 50000 - dwarf starts considering going to bed (1/120 chance per tick) if idle
* 54000 - dwarf decides to go to bed if idle
* 57600 - dwarf starts flashing "Drowsy"
* 65000 - dwarf get an unhappy thought about being Tired
* 150000 - dwarf starts flashing "Very Drowsy"
* 160000 - dwarf get an unhappy thought about being Exhausted
* 200000 - dwarf goes insane

Completing an Eat/Drink job decreases the relevant counter by 50000 (to a minimum of zero), though they may also decrement it additional times during the job's progress.

Prior to version 0.31.07 (and going all the way back to the 2D versions), the unhappy Thoughts resulting from hunger/thirst/drowsiness occurred at the exact same time that the dwarf started flashing, but all of the other numbers were otherwise the same. Additionally, in earlier versions (most notably 40d and earlier) dwarves cancelled jobs for food/drink/sleep much more readily.

Summary: dwarves should drink roughly twice as often as they eat, though active jobs may interfere with things.
« Last Edit: June 25, 2014, 08:51:25 am by Quietust »
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.

10terrapin01

  • Bay Watcher
  • [ETHICS] [DF_HACK:APPALLING][USE_EXPLOIT:REQUIRED]
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #11 on: June 25, 2014, 08:58:48 am »

That is some odd behavior on the part of dwarves then

Thirst:
* 20000 - dwarf starts considering getting something to drink (1/120 chance per tick) if idle
* 22000 - dwarf decides to go get something to drink if idle
* 25000 - dwarf starts flashing "Thirsty"
* 35000 - dwarf gets an unhappy thought about being Thirsty and cancels its current job to get something to drink

My dwarf was idling the entire time, yet he managed to reach the unhappy thought before deciding to go get a drink.  Are those definite numbers?  Every time Rith would become thirsty, even though those numbers suggest he would take a drink BEFORE he was thirsty.
Logged
I want to tell you they were bad men, cephalo.  I want to tell you that with a better overseer the Fortress never would've gotten so bad someone would get offed in a pointless fisticuffs.
But the sad truth charlie?
It was inevitable.

Larix

  • Bay Watcher
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #12 on: June 25, 2014, 09:39:00 am »

Hmm, it would just barely work if he went all the way to "dehydrated" before deciding to have a drink - since apparently both eating and drinking remove 50 000 off their respective counts, a dwarf _could_ survive on the same number of drinks as meals, although if given free access to provisions and enough time to look after themselves, they should default to the observed ~20 days between drinks, ~40 between meals.

Considering none of my testing seven ever waited until showing the blue/brown arrows before eating and drinking, it sounds more like there was something wrong with Rith. Any peculiar soul attributes? Or can needful dwarfs reserve inaccessible booze barrels for a drink? In that case, your efforts to starve out the rest of the embark crew could have prevented Rith from getting a drink.
« Last Edit: June 25, 2014, 10:01:42 am by Larix »
Logged

neblime

  • Bay Watcher
  • More GG more skill
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #13 on: June 25, 2014, 09:57:07 am »

if he was burrowed, and the booze not included in the burrow, (seems obvious I know but just a thought) he would ignore the burrow when he got thirsty enough.
Logged
http://i.imgur.com/Gv6I6JO.png
I am quite looking forward to the next 20 or 30 years or so of developmental madness

10terrapin01

  • Bay Watcher
  • [ETHICS] [DF_HACK:APPALLING][USE_EXPLOIT:REQUIRED]
    • View Profile
Re: !!Food!! An Analysis of Dwarvern Digestion
« Reply #14 on: June 25, 2014, 10:27:38 am »

Neblime, I'm not sure if you can see the picture, but Rith was walled in the location with the booze.  There was no burrow for him
Weeelllll shiiiitt.  :-[
I forgot to remove the burrow I used to get him in there.  Mystery solved, time to do a new test.
Logged
I want to tell you they were bad men, cephalo.  I want to tell you that with a better overseer the Fortress never would've gotten so bad someone would get offed in a pointless fisticuffs.
But the sad truth charlie?
It was inevitable.
Pages: [1] 2