CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.65k stars 4.18k forks source link

Can't eat or drink enough to hibernate. #30370

Open Sooose opened 5 years ago

Sooose commented 5 years ago

Describe the bug
Can't eat or drink enough to do ursine hibernation. After eating 100 chunks of fat I verified via debug that my hunger never went lower than -15. I tried drinking as much water as I could in a similar manner and my thirst never went below -140. These numbers would quickly bounce back from their values after an hour or so making it impossible to reach the negative values of hunger and thirst required to hibernate.

To Reproduce
Steps to reproduce the behavior:

  1. Eat enough chunks of fat to directly substitute body fat.
  2. Drink enough water to get water intoxication.
  3. Wonder where it all goes.

Expected behavior
To be able to hibernate.

Versions and configuration(please complete the following information):

Additional context
Add any other context about the problem here.
Save game: https://puu.sh/Dql6K.zip

Edit: Edited grammar.

Saicchi commented 3 years ago

Can't replicate on 0.E-10474-g1ae66c97a0 [64-bit]. The save file download returns a That puush could not be found. page.

int-ua commented 3 years ago

So you can hibernate in a fresh version, right?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

hexagonrecursion commented 3 years ago

@Sooose I was unable to download the file. Could you please upload it somewhere more permanent like the Internet Archive?

hexagonrecursion commented 3 years ago

Things are at least partially broken. No matter how much clean water I drink thirst never goes below -99, but this code expects it to go below -600 https://github.com/CleverRaven/Cataclysm-DDA/blob/62a01dcbf417c79d37c8ba0983af374ddfc7f2ba/src/consumption.cpp#L1403-L1435

Saicchi commented 3 years ago

It seems things weren't broken in 0.E but got broken in 0.F. The hibernation process can start but is cut short when the player reaches 0 fatigue.

https://github.com/CleverRaven/Cataclysm-DDA/blob/9d7ed7d6d918942cf1eedffb40477a3b3b33bf76/src/player_hardcoded_effects.cpp#L943-L952

hexagonrecursion commented 3 years ago

Another issue: there should probably be some feedback in chat when hibernation starts otherwise it may look like regular sleep https://github.com/CleverRaven/Cataclysm-DDA/blob/7f33807e78b179f750496d9d0b1dd8f9aa7178e1/src/character.cpp#L10954-L10965

hexagonrecursion commented 3 years ago

I used debug to set fatigue to 10000 and was able to hibernate for 8 days. After 8 days I died of dehydration. Probably should have filled up on water first.