Project Zomboid

Project Zomboid

Comfy Sleeping [B41 & B42]
Showing 11-20 of 31 entries
< 1  2  3  4 >
Update: 24 May, 2024 @ 7:21pm

Update 2.6.1
  • Fixed a bug that caused endurance to decrease when BELOW the endurance threshold for 'Tolerable' comfort, resulting in endurance dropping to 0 instead of stopping at the threshold.

Update: 1 Apr, 2024 @ 1:42am

Hotfix
Sorry for the ninja update, especially since I just uploaded a bugfix update a few hours ago, but here's something I've caught:

The fatigue & exertion regeneration benefit players received while sleeping was supposed to be applied when ALL players were asleep. Part of this is so players using mods that allow a shorter sleep period when others aren't sleeping in MP didn't wake up super fast. However, with the way I implemented this, Comfy Sleeping only cared if the all LOCAL players (as in splitscreen) we're sleeping, then you'd get the regen benefits. But if you're the only player locally, then you always got them, even if other people on the server were still awake which is unintentional.

This hotfix removes the regen benefits while 'Snug as a bug' for fatigue and exertion, but leaves the functionality for 'Force awake if comfy' sandbox option.

I'll look into fixing this once the summer break kicks in.

Update: 31 Mar, 2024 @ 11:01pm

Bugfixes for patch 2.6
  • Fixed a bug that when 'Snug as a bug', players would rapidly gain fatigue when not all players are sleeping.
  • Fixed the 'Snug as a bug' fatigue and endurance regen boost to actually increase regeneration. Fatigue would lower, but then the endurance check would increase the fatigue moodle basically cancelling out the benefits.

Update: 19 Feb, 2024 @ 2:36pm

Update 2.6
- Translations for Comfy Sleeping are now live! The mod will display translated text for the following languages:
  • English - Translated by Fluffy89
  • German - Translated by LordWolfi
  • French (French Canadian) - Translated by LordWolfi
  • Italian - Translated by Galaga_G
  • Simplified Chinese - Translated by Pillow Victim
  • Traditional Chinese - Translated by Pillow Victim

- Comfy Sleeping now linearly increases the players current fatigue & endurance until it hits the maximum penalty. This means that sleeping will no longer instantly put your character at the maximum penalty.

- Sleeping UI for vehicles now displays player comfort levels. Comfort bonus from pillows is provided by having the pillow in your IMMEDIATE inventory (meaning not in bags) or equipped in your hands.
NOTE: Comfy Sleeping hooks into ISVehicleMenu.onSleep for this UI change to appear. Load Comfy Sleeping after any mod that changes this function to avoid Comfy Sleepings UI changes being overruled.

- Weapons on the characters back and hips now apply a comfort penalty. Sandbox options 'Equipped Weapons Affect Comfort', 'Back Weapon Comfort Modifier' and 'Belt Weapon Comfort Modifier' have been added under 'Comfy Sleeping - General'.

- Clothing bloodiness & dirtiness affects character comfort. If either the average bloodiness or dirtiness of your clothing OR player are above the threshold, the comfort modifier will be applied. Sandbox options added to 'Comfy Sleeping - General' tab.

Update: 7 Feb, 2024 @ 3:17pm

Update 2.5
  • Fixed a bug with pillow detection where pillows would not be found unless the game was in English. It now checks for the items fullType instead.

Update: 26 Nov, 2023 @ 11:14am

Update 2.4
  • Only items that are actually defined as pillows are caught by Comfy Sleeping now. Previously, renaming literally any item (like bags, soups, stews, etc) to 'pillow' would allow the user to get the comfort bonus of having a pillow nearby, without having a real pillow.

Update: 13 Nov, 2023 @ 11:24am

I really need to just wrap any debug print/player:say() things in a check for debug mode or something, sorry!

Update: 13 Nov, 2023 @ 11:20am

Update 2.3
- Compatibility with BitBraven's mod 'Hide' should now be ok. The mod was crashing when checking for a nearby pillow, as the player seems to 'disappear' and now have a nearby tile to check, hence crashing/errors.
- mainFunc() has had it's pillow check removed and moved to when ComfySleeping checks for the 'Sleep' context option when the context menu is filled with options. This should fix any errors caused by characters being dead since they also seem to have issues with getting the tile they were on previously.

Bugfixes
- Minor bugfix to contextMenuFilled() where it was correctly identifying a nearby pillow, but failing to add the pillow comfort bonus to the modifier and update the tooltip with the new comfort + pillow bonus.

Update: 1 Nov, 2023 @ 9:47am

- Minor hotfix to remove an extra call to initMod() I had for debugging purposes so I wouldn't have to restart the game everytime it crashed.

Update: 31 Oct, 2023 @ 9:34pm

Removing debug statements I forgot to remove :)