Project Zomboid

Project Zomboid

700 个评价
Comfy Sleeping [B41 & B42]
6
3
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
846.294 KB
2023 年 7 月 3 日 下午 6:48
9 月 7 日 上午 8:08
33 项改动说明 ( 查看 )

订阅以下载
Comfy Sleeping [B41 & B42]

描述
Check out my other mod, Proper Vehicle Injuries!


Purpose & How It Works
This mod was created from an idea I saw on Reddit (thanks to user Garrett-Wilhelm) in the Zomboid subreddit. It seemed like an interesting and immersive way to add some depth to Zomboid, so here we are!

Comfy Sleeping adds a comfort mechanic to sleeping, where what your character wears, how they feel, and how dirty/bloody they are contribute to sleep quality. If your characters comfort is high (light/cloth clothing, clean, backpack unequipped), you will get a great nights rest and wake up faster than normal. However, the lower your characters comfort (big bulky clothing, dirty, wearing backpack, hungry, over encumbered, etc), the worse their sleep quality will be. This can range anywhere from slight endurance loss, to waking up several times throughout the night.

A characters comfort is displayed in the tooltip for the "Sleep" context option. Pillow status is also displayed here. Sleeping in a vehicle will display your comfort in the sleep confirmation text box.

Comfort has 6 different levels:
  • Snug as a bug: Fatigue and exertion will regenerate slightly faster while sleeping, meaning you will also wake up quicker than usual.

  • OK: Your character feels comfortable and has no negative effects.

  • Tolerable: Your character won't feel fully recharged when waking up, meaning their exertion/stamina doesn't go to 100% while sleeping

  • Bad: Your character feels more tired in the morning than usual, with a small amount of fatigue and exertion/stamina not fully regenerating.

  • Poor: Your character doesn't recharge a sizeable portion of their fatigue and exertion. They will also wake up after several hours, and may have neck pain.

  • Very Poor: Your character doesn't recharge a significant amount of their fatigue and exertion. They will wake up after only a few hours, and may have neck pain.


Latest Update

Update 2.9.2
  • Added Russian translation by M1ST0R.

For bugfixes, please see the patch notes.


Features
  • Standing Items support: Pillows standing up via Standing Items are recognised as pillows for the comfort bonus while sleeping.

  • Multiplayer Support: Now everyone can be restless and uncomfortable together!

  • Moodles & Clothing: Both can now affect your characters comfort, meaning you have to go the extra mile to make them feel right at home.

  • Poor comfort causes pain: Makes pain from sleeping a bit more frequent to be more in line with the mod.

  • Restlessness: Being too uncomfortable will eventually wake your character up.

  • Customizability: Not a fan of how much pain your character wakes up in sometimes? Or wish to disable very poor comfort waking your character up at night? Then disable it!

  • PILLOWS! (They now contribute to your comfort)


Planned Features
  • Body temp/warmth bonus while sleeping. Will help for perma-winter/extreme winter scenario's.
  • Look into compatibility for Beds Have Blankets.
  • Check native function for finding nearby pillow once B42 goes stable.
  • Adjust method for penalizing fatigue and endurance while sleeping. Comfort could instead limit the amount recovered per tick, fixing the issues caused by simply incrementing either stat until it hits a threshold.
  • Check potential compatibility issues with 'Sleep well' mod. CS and Sleep well fight for who writes text to a tooltip.

If you have any other ideas that you think would be in line with the mod, feel free to add them to the "Ideas & Suggestions" discussion. These may or may not be implemented, as modding is more meant as a small project to tinker with in my spare time.


SANDBOX OPTIONS
Click here to see the sandbox options and their description/examples!

If the above link isn't working, keep scrolling and look for the pinned "Sandbox Options" discussion board.


FAQ (READ BEFORE COMMENTING)
  • Is Comfy Sleeping compatible with B42 IWBUMS?
Probably, TIS said there has been significant lua/script changes, but as far as I can tell, Comfy Sleeping appears to work fine for B42.

  • Does this mod have any incompatibilities? 
Since this mod doesn't replace any Zomboid files, nor modify any of the vanilla game's code, there should not be any incompatibilities with other mods.

  • Does this mod work in SP/Coop/Dedicated MP? 
Yes it works in all 3! It was intended & tested to work with MP, and because the code is handled client side, it should have no issue with either SP or Coop saves.

  • Is this safe to add to a current save? 
Yes it is safe to add and remove at will! All of the code in the mod is custom, meaning it doesn't need to hook in to or modify any of the vanilla game code. If the mod is enabled, you'll have the comfort mechanics, if not, then you won't!

  • I'm adding this to an existing SP save, how do I change the sandbox options mid save? 
Use a mod such as Change Sandbox Options to modify them.

KNOWN ISSUES
  • Comfort not showing in Sleep context option: There seems to be an issue potentially related to Act 1 & 2 of True Actions, lying down on beds or other furniture causes the Sleep UI to no longer report the players comfort level. Hovering over the Sleep option of a bed/couch/chair and not sitting on it still works as normal.

  • Comfort calculation bug: Some users have reported their comfort being stuck at 'very poor' after sleeping with exercise fatigue. Need to find out reproduce-able steps, game version, and, if needed, investigate comfort calculations.


TRANSLATIONS
If there are any issues with the translations, please let me know!
  • English - Written 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
  • Polish - Translated by Typical
  • Brazilian Portuguese - Translated by Guicsr
  • Russian - Translated by M1ST0R

Thank you to all those who have helped in translating Comfy Sleeping!


MOD PERMISSIONS
[theindiestone.com]

Feel free to include the mod in modpacks/workshop collections here on Steam. You are however NOT AUTHORISED to do any of the following:
  • Redistribute OR re-upload to any platform
  • Modify Comfy Sleeping's code
  • Share or upload my code for use in AI training, or to be part of its dataset


MOD-ID & WORKSHOP-ID

Workshop ID: 2998737588
Mod ID: ComfySleeping
热门讨论 查看全部(7)
38
9 月 17 日 上午 9:56
置顶: Ideas & Suggestions
Fluffy89
19
9 月 7 日 上午 8:10
置顶: Translations
Fluffy89
4
6 月 20 日 下午 7:39
portugues brazilian version
Guicsr_
307 条留言
Fluffy89  [作者] 11 月 13 日 下午 2:16 
Shonuff, the only other mod I know of that allows sitting on chairs is Lifestyle, but that adds a LOT of other things ontop of it since it's not reeally the mods main focus.

I haven't actually played B42 or browsed the workshop for B42 mods outside of uploading updates for either of my mods, so I'm unsure whether there is a mod dedicated to sitting/laying. :(
Shonuff! 11 月 13 日 下午 1:39 
Sad face...fugi face...:( And there is not other simple mod for B42 that enable the survivors to lay on a bed? Seems so silly! lol. THANK YOU! I really appreciate your help. Seems like something that should already be in the base game to lay down. It is just an animation transition to a pose like sitting.
Fluffy89  [作者] 11 月 13 日 上午 11:46 
Shonuff, unfortunately, as far as I'm aware, it doesn't work for B42 unstable.

I'm unsure if they have any plans to update it while B42 is on the unstable branch, or in general. They do have a link on the mod page here that you could look for some answers though. Searching that server for B42 related info could prove helpful.

Hope that helps! :spiffo:
Shonuff! 11 月 13 日 上午 10:24 
OK! I love to role play in this game and always get annoyed when my survivor just stands by the bed and does not lay herself down! Does this work with the latest B42?
Fluffy89  [作者] 11 月 13 日 上午 12:51 
Shonuff, the mod 'True Actions Act 1 & 2' is what allows this, at least that was the mod used when the screenshot was taken.
Shonuff! 11 月 12 日 下午 10:42 
How to make them lay down in the bed like in the screen shot?
Nwegative 11 月 2 日 下午 2:15 
yipee!
Fluffy89  [作者] 11 月 2 日 上午 8:28 
Hwegative, I'll make a note and look into that once B42 goes stable or I have the free time available.
Nwegative 11 月 2 日 上午 12:40 
Hi Mod author, I had a suggestion :3... add a option for us to cuddle with any stuffed animals that're in our mainhand to sleep for another sleep bonus or helps reduce panic for those who are claustrophobic and scared of the dark! This would add a functionality to plushies ingame :D
Fluffy89  [作者] 10 月 31 日 上午 8:20 
confidence, glad you figured out the issue! :spiffo: