Project Zomboid

Project Zomboid

aSleep Offline
84 Comments
Jambie Lionheart 2 Dec, 2024 @ 4:37am 
Hi, I'm very interested in this mod for a server I wanna run. Can min- max sleep hours be set?
Does using this mod mean you have to sleep in order to log out?
If answer to above is no, does change in stat values still occur if not sleeping while offline? For instance, will hunger and thirst and cravings for ciggies still increase if offline while not sleeping?
AuD  [author] 13 Nov, 2024 @ 12:32pm 
10 hours IG is the minimum (sandbox option = 1)
Jane Helldiver 12 Nov, 2024 @ 11:46pm 
Can I set it to 0.5 to change it to 5 hours of sleep, or is 10 hours the minimum?

Sorry I don't quite understand the sandbox options or how to fine tune them
AuD  [author] 13 Aug, 2024 @ 12:24am 
there are many Blankets mods,I'll see, but it seems to me that each bed has a blanket (systematic)?
AuD  [author] 11 Aug, 2024 @ 11:41pm 
put your mod plz
Gebirgsjäger 6 Aug, 2024 @ 5:55pm 
Could support for the bedding mod that adds blankets to beds be added? I dont think its recognizing the 'bedding' Im lying on unless 70% is typical for lying on a bed logging out. The blankets mod also seems to have broke my force sleep mod too so I suspect its classname related or something.

Apologies if I'm mistaken.
AuD  [author] 18 Mar, 2024 @ 2:42am 
I'm going to analyze it, and see what I can do shortly...
Sesshomaru 16 Mar, 2024 @ 5:35pm 
That would be great, I like the original idea of the mod but in my case I want it to play with my friends, its very annoying to enter the game full of fatigue and have to wait until bedtime
AuD  [author] 14 Mar, 2024 @ 1:48pm 
I need to add it, I will indicate it in road map, for next update
Sesshomaru 14 Mar, 2024 @ 11:47am 
Is there an option to only affect the level of sleep?
R4YN4R 26 Dec, 2023 @ 12:33pm 
If I add this to my coop server and my friend disconnects while sleeping, can he die?? I mean if a zombie comes at him or the house gets on fire:Aste_Roy:
AuD  [author] 16 Dec, 2023 @ 2:11am 
perfect, for next update!
AuD  [author] 28 Oct, 2023 @ 12:58am 
** UPDATE: remove the ruhm in hardcore mode, it's not well balanced, I'm going to improve this penalty when the character sleeps outside, and it's damp and cold. later..
AuD  [author] 2 Oct, 2023 @ 2:18am 
** UPDATE: repairs a potential error when you die
Mang 21 Sep, 2023 @ 3:06pm 
Ur welcome ;)
AuD  [author] 21 Sep, 2023 @ 5:30am 
Mang 21 Sep, 2023 @ 4:10am 
Aud I love your mods and ur awesome
AuD  [author] 20 Sep, 2023 @ 10:57pm 
** UPDATE : little error possible line # 492 is solved
AuD  [author] 19 Sep, 2023 @ 12:12am 
** UPDATE : balancing concerning avatars near our character, and avatars in the same car as our character.
AuD  [author] 18 Sep, 2023 @ 1:38am 
** INFO

in hardcore mode, if you go into nature with friends, with your little average tourist car, I strongly advise you to take the necessary : tent, pillows, sheet/sleeping bag, because if you have to disconnect in nature, it would be better to sleep in your tent with your pillow, because if you pile with your friends into your car, it will hurt your back!!
AuD  [author] 18 Sep, 2023 @ 1:32am 
** UPDATE :

- Now space in a vehicle is important for good sleep, based on the inventory of seats and trunk.

- If you have the avatar mod on your server, the avatars around you will be taken into account in the comfort of your sleep, if you are in a vehicle, the avatars of players in this vehicle will also be important for your sleep.
(it will be necessary to refresh the list of players present via the "take an character" menu of your vehicle in order to see the sleep information.)

- The more inventory the vehicle has, the more your sleep will be guaranteed.

- Sleeping bags from other mods will be taken into account like the sheet.

- The message when you reconnected to was seen again. (reduced to your sleep duration and quality.)
AuD  [author] 14 Sep, 2023 @ 5:26am 
In a future update, the more capacity the vehicle has and the more passenger seats there are, the better the comfort will be considered.
AuD  [author] 14 Sep, 2023 @ 5:24am 
** UPDATE :

- script start correcly now - is solved
- improved straw detect
AuD  [author] 12 Sep, 2023 @ 1:36pm 
**************
INFO:

maybe some beds or other sleep support will not be considered regarding modded tiles, it will be considered as a poor chair, I will try to make it as compatible as possible for the next update, without having to list all the tile names, we'll see.

**************
Jane Helldiver 12 Sep, 2023 @ 2:22am 
No errors pop up for this mod. It just does not seem to be functioning. I posted in discussion my first test in solo play to see if anything appears when logging in or out next to a bed
AuD  [author] 12 Sep, 2023 @ 2:17am 
You also told me that this created conflicts with others mods, what about all these problems?
Jane Helldiver 12 Sep, 2023 @ 1:25am 
I don't know what the issue may be.

before this update "I could sleep here" would appear above our heads when we would exit.

now nothing is showing up, and sleep is not being counted at all.
AuD  [author] 12 Sep, 2023 @ 1:00am 
in any case, if you don't get an informative message before disconnecting, by pressing the escape key, it's because the mod is not working, for some reason.
Jane Helldiver 12 Sep, 2023 @ 12:57am 
I also use Udderly safe login, which pops up saying how long you are safe from zombies when logging in and off a server.

But yes, no one on my server is getting credit for sleep or seeing any messages since this update.

My own character was asleep on her bed, and we skipped about 15 game hours and she woke up still fully tired as if no time passed.

Troubleshooting now and will update you if I find anything
AuD  [author] 12 Sep, 2023 @ 12:51am 
it's very strange
AuD  [author] 12 Sep, 2023 @ 12:51am 
everywhere you should have the information message
Jane Helldiver 12 Sep, 2023 @ 12:46am 
We aren't getting any messages popping up when logging off or logging in
AuD  [author] 12 Sep, 2023 @ 12:14am 
i have test with Comfy Sleeping mod: no problem work fine
AuD  [author] 12 Sep, 2023 @ 12:13am 
When you press the Escape key, like before, you have a speech that corresponds to your location, you have various information like in the arrival images.
Jane Helldiver 12 Sep, 2023 @ 12:09am 
I can't seem to get any of our characters to sleep. Even at setting 1 nothing pops up.

When we log off the server, do we need to select 'sleep' first?

Logging out next to a bed or on top of a bed, is not providing any sleep even after 10 game hours.
Jane Helldiver 11 Sep, 2023 @ 3:50am 
The main mod I use for sleeping is Comfy Sleeping:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2998737588

looks like this mod is overriding the functions of that one. No errors, but it does not appear you can use both together, as this one seems to take precidence.
Jane Helldiver 11 Sep, 2023 @ 3:45am 
Happy to help. I've been troubleshooting it on my server since the update.
AuD  [author] 11 Sep, 2023 @ 3:44am 
don't say everything and anything, just disable item sharing on the avatar mod, and tell me what's going on, I just updated, we'll get there ^^
AuD  [author] 11 Sep, 2023 @ 3:42am 
or console error, i work with this
AuD  [author] 11 Sep, 2023 @ 3:40am 
Regarding the asleep offline mod , I don't use sleep mechanics, I develop my own functions for this mod, and it shouldn't be incompatible, it doesn't interfere with any vanilla function, just concerning the stats stated, but can you give me a mod or vanilla function is failled with this mod?
Jane Helldiver 11 Sep, 2023 @ 3:40am 
I know. both mods are breaking.

the sleeping function with this mod is breaking any other mods that look at sleeping conditions.

Both Avatar Offline and Sleep Offline are now broken
AuD  [author] 11 Sep, 2023 @ 3:36am 
if you speak of the avatar mod, just desactivate the sharing item option, and if you want to talk about avatar mod, you can talk about it on the right mod, we are on asleep offline mod here ;).
Jane Helldiver 11 Sep, 2023 @ 3:30am 
Just completed some more testing. This is what I found with The Only Cure:

1- It looks like the inventory of a character is reset / re-scanned for changes. So any character with an amputated arm will see the amputated item moved into their inventory. This makes the character model "regrow" the arm or hand.

2- The auto-clean function may affect other "clothing" items from other mods as well, since some mods use clothing for make-up, tattoo's and other features.

3- Items from mods that allow re-naming also seem broken. Everything returns to the vanilla game name when logging back in. So naming a crowbar "My Crowbar" reverts back.

I assume it is the auto-clean function you added, as it appears that inventory is reset upon log in. which kicks out errors.

So yes, it's not compatible with many mods. I gotta delete it off my personal server to maintain stability and functions of many mods.

Sorry my friend. Love the mod, but it's interferring too much with others.
AuD  [author] 11 Sep, 2023 @ 3:10am 
need unsubscribe, re subsribe plz
AuD  [author] 11 Sep, 2023 @ 3:07am 
However, I'm surprised, it shouldn't create so much of a problem...
Jane Helldiver 11 Sep, 2023 @ 3:04am 
Major Update Caused Major Bugs:

1- The sleeping requirement clashes with all other mods related to sleeping. Any other mod related to sleeping is completely broken by this mod.

2- The ability to give/remove items from an Avatar is really, really incompatible with many mods. Every time I log in, items are registered as "given" to me.


3- It breaks the mod The Only Cure. Since character models and inventory are reset every log in, amputated limbs regrow, and the limb is permanently stuck in the characters inventory screen.

Multiple errors upon launch that were not there before.

Sorry, but the mod is no longer compatible with the vast majority of other PZ mods and is going to break a LOT of servers.

Please roll if back to the previous version.
AuD  [author] 11 Sep, 2023 @ 1:26am 
*****************************************
Major update:

Solo is compatible
Hardcore mode is available
The sandbox is available
The code is completely reworked : now, you will need a good location for a good sleep, a chair will not be such a good support for sleeping!

*****************************************