Project Zomboid

Project Zomboid

Comfy Sleeping [B41 & B42]
Showing 1-10 of 31 entries
< 1  2  3  4 >
Update: 23 May @ 4:40pm

Version 2.9.1

  • Added support for the 4 pillows added by Mandarin's Bedding. Note that since this mod is B42 only, only the B42 version of Comfy Sleeping has been changed.

Update: 5 Mar @ 12:35am

Update 2.9.0
  • Core functionality restored, ComfySleeping failed to recognize clothing comfort values for a while now.
  • Fixed bags not receiving comfort values because they don't have body locations to check.
  • Fixed ComfySleeping's initialization file, clothing not properly populates the appropriate variables.

Sorry for not noticing and pushing a fix out for this sooner! Happy Sleeping!

Update: 21 Dec, 2024 @ 10:20pm

Update 2.8.1
  • Added support for crafted, happy face, heart, and star pillows.

Update: 17 Dec, 2024 @ 3:45pm

Update: 17 Dec, 2024 @ 3:03pm

Update v2.8
  • Added experimental support for B42 Unstable

Update: 30 Jul, 2024 @ 6:38pm

Update 2.7.2
  • Added compatibility for Standing Items. SI adds two additional pillow items, which Comfy Sleeping now checks for and treats as the same when checking for nearby pillows.

Bugfixes
  • None.

Update: 2 Jul, 2024 @ 9:30pm

Update 2.7.1
  • New sandbox option 'Show Pillow Status', defaults to enabled, when unchecked ComfySleeping no longer includes the additional text for whether a pillow is nearby or not.

Bugfixes
  • Fixed an issue with all translation files, where some translations and tooltips would not display correctly, or be missing the tooltip completely.

Update: 29 Jun, 2024 @ 2:24pm

Update 2.7 Hotfix
  • Removed two debug print statements I missed before updating... Sorry!

Update: 29 Jun, 2024 @ 2:05pm

Update 2.7
Major code refactor & optimizations, hopefully this goes without a hitch, testing proves successful, so here it is and here's the nitty-gritty details:

  1. MainFunc now only triggers every in game minute, instead of every 225 ticks. This means that ComfySleeping shouldn't cause as much load on PZ while installed & enabled (hopefully). This also means there may be a slight delay to the Sleep context option's tooltip updating your comfort level.
  2. ComfySleeping now checks for the comfort modifier of body locations and fabrics via a table so lookup is constant, instead of the painfully long and unreadable if/else chain I had from the initial release. Should help when ComfySleeping initializes.
  3. Functions in CS_Client.lua now check a globally defined value to track comfort, instead of each calling getCurrentComfort() and recalculating it, potentially several times in a second.
  4. Code is now more mainatainable and readable to both me, and anyone interested with what's under the hood.
  5. Proper code comments have now been included if anyone looks in any of ConfySleeping's .lua files for any reason, also so I remember what my code does if I go on hiatus.

If another modder wants to, for whatever reason, access ComfySleepings current state of sandbox options or get the full list of detected clothing/bags and their respective comfort modifiers, this is now possible (I think). (See ComfySleeping_Client.lua for example, and ComfySleeping_InitComfyClothes.lua for what is contained in the tables)


Bugfixes
  • Fixed an issue with back and hand weapon comfort modifiers where they applied their comfort modifier if they were in the players inventory and unequipped. Comfort modifier now only applied when they are equipped on the back, belt, or other slot.

Update: 26 Jun, 2024 @ 6:31pm

Update 2.6.2
  • Polish translation provided by Typical.
  • Comfy Sleeping is now available in: English, French (Canadian), German, Italian, Simplified & Traditional Chinese, and Polish!