Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Precise Data for Thirst, Hunger, and Sleep  (Read 898 times)

Leonidas

  • Bay Watcher
    • View Profile
Precise Data for Thirst, Hunger, and Sleep
« on: May 31, 2018, 07:41:38 pm »

I'm testing a theory that dwarves aren't currently accumulating needs while away on missions. I've had 100 dwarves away near-continuously for a solid month, and now that they can relax they aren't charging to their beds.

Is there a way to get the precise need numbers for a given dwarf?
Logged

tonnot98

  • Bay Watcher
  • Damp stone located.
    • View Profile
Re: Precise Data for Thirst, Hunger, and Sleep
« Reply #1 on: May 31, 2018, 08:43:16 pm »

I'm testing a theory that dwarves aren't currently accumulating needs while away on missions. I've had 100 dwarves away near-continuously for a solid month, and now that they can relax they aren't charging to their beds.

Is there a way to get the precise need numbers for a given dwarf?
I think I remember seeing a bunch of dwarves grab food and drinks before leaving to pillage sites. So maybe they're just taking care of their needs away from home?
Logged
Not sure if dying of old age is an honor or a shame for weaponmasters. On the one hand, it means they never got the opportunity to die in glorious battle. On the other hand, it means nothing could beat them in glorious battle.
Meow.

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: Precise Data for Thirst, Hunger, and Sleep
« Reply #2 on: June 01, 2018, 02:13:18 am »

I'm testing a theory that dwarves aren't currently accumulating needs while away on missions. I've had 100 dwarves away near-continuously for a solid month, and now that they can relax they aren't charging to their beds.

Is there a way to get the precise need numbers for a given dwarf?
Raiding doesn't meet needs right now. I have dorfs unfocussed from a lack of fighting and excitement who have been raiding all season. Absolutely no related thoughts either, or memories.

--edit
Oh, sorry, accumulating needs? Right. Probably same issue. The dorvern mind just switches off off-site. On the plus side, no bad thoughts from years of imprisonment and torture.

« Last Edit: June 01, 2018, 02:15:51 am by Shonai_Dweller »
Logged

Spriggans

  • Bay Watcher
  • Mushrooms eater
    • View Profile
Re: Precise Data for Thirst, Hunger, and Sleep
« Reply #3 on: June 01, 2018, 02:54:39 am »

You can make a .lua script in DFHACK.

name that .lua file "whatever.lua", and launch the game.
Select a unit, and type in "whatever" in the console.
Should display all you need

Here's the file content.
Code: (Script) [Select]
print(dfhack.gui.getSelectedUnit(true).counters2.thirst_timer)
print(dfhack.gui.getSelectedUnit(true).counters2.hunger_timer)
print(dfhack.gui.getSelectedUnit(true).counters2.sleepiness_timer)

This super easy script will display Thirst, Hunger and sleepiness of the selected unit.
I have not tested it because no access to game, but it should do fine.
Logged
[ETHIC:MURDERING_DWARVES:UNTHINKABLE]
[ETHIC:CUTTING_TREES:REQUIRED]
[ETHIC:USING_EXPLOITS:JUSTIFIED_IF_GOOD_REASON]

Leonidas

  • Bay Watcher
    • View Profile
Re: Precise Data for Thirst, Hunger, and Sleep
« Reply #4 on: June 01, 2018, 04:56:07 am »

accumulating needs? Right. Probably same issue. The dorvern mind just switches off off-site.
That's what I'm hoping for. It means that squads returning from a mission can go back out on a new mission with no rest. You could juggle them for months.
Logged

Leonidas

  • Bay Watcher
    • View Profile
Re: Precise Data for Thirst, Hunger, and Sleep
« Reply #5 on: June 04, 2018, 03:33:06 pm »


This super easy script will display Thirst, Hunger and sleepiness of the selected unit.
I have not tested it because no access to game, but it should do fine.
It worked fine. Thanks! And theory confirmed: Thirst, hunger, and sleep are all frozen while a dwarf is off the map on a mission.
Logged