Project Zomboid

Project Zomboid

Toggle Sleep in Singleplayer
19 Comments
mini p.e.k.k.a 15 Feb @ 4:37am 
does the mod work in B42
NeonScreams 8 Jan @ 1:27pm 
A replica of the Non Toggle 'NoSleep' mod exists at:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3386833361

Not sure if its a non-permission copy of Rust/Star's code, but its there.
NOT-SCHIZO 17 Aug, 2024 @ 1:12pm 
Is it alright to use both mods?
Rust  [author] 23 Feb, 2022 @ 5:26pm 
Rust  [author] 23 Feb, 2022 @ 5:11pm 
Unfortunately, that wouldn't help as that is how the mod already works. The only thing I can do to guarantee the mod will work is to remove the checkbox and make it so if the mod is enabled in your save sleep is off and vice versa. I cannot guarantee it wont break saves for people who already have the mod installed, so I'm going to create a new mod and link it here once it is done.
Gaming_Bigfoot 23 Feb, 2022 @ 4:04pm 
Just ran into an issue with this, but at least it seems known already. That said though, was wondering if you'd want to consider an alternative / backup option implementation -- for example, having some means of toggle / option to cause the player to experience a constant negative fatigue modifier in order to indirectly combat the natural fatigue gains, and thus essentially have fatigue "disabled" that way.

Cheers for the mod regardless; it's nice for MP-emulation in solo when it works.
Rust  [author] 16 Feb, 2022 @ 5:04pm 
After 4+ hours of testing with the help of Star, I found myself unable to toggle the option off no matter what I tried and after reinstalling the game I am no longer able to reproduce the bug. I will be updating the mod just to clean the code up slightly, but I can't guarantee it will work for any of you with issues. This seems to be a bug within Project Zomboid rather than a problem with my code or Star's code.

I'll keep trying to reproduce the issue though and if I find anything I'll let you guys know. I can confirm that when the mod is running properly it does properly handle restarting the game and different sleep options across multiple save files.

If any of you are still having issues after I push the update please trying resubscribing to both this mod and the Mod Options mod while the game is closed. If you're still having issues and you would like to help track this bug down add me on Steam and we can talk through Discord.
Rust  [author] 16 Feb, 2022 @ 2:36pm 
After some testing I was able to find a bug. Sleeping seems to re-enable itself in other saves where it was previously disabled if you create a new save with sleeping enabled. Actively working on a fix, I'll keep you guys posted.
Rust  [author] 16 Feb, 2022 @ 12:44am 
Just talked with Star, he said he would try doing some testing tomorrow. Worst case scenario I will have to relocate the option to the main menu where you can toggle it between on and off before launching a save.
Rust  [author] 15 Feb, 2022 @ 10:47pm 
I just asked Star, waiting for a response. If I don't hear back from him I could take another shot at it myself, but I don't know if I'll be able to make this save specific without his help (if it's even possible.)
Golkar 15 Feb, 2022 @ 12:31am 
Just curious if you've had any luck with the code for this mod regarding loading saves? Would love to play with this option, but if it's still not functioning for saved games then I might as well just get used to sleep. Regardless of the answer, thanks for your work.
Rust  [author] 2 Feb, 2022 @ 3:30am 
I'm going to have to ask the mod author of Mod Options how he would implement the code for toggling it. Once I adjust the code these issues should be fixed.
Shurupchik 30 Jan, 2022 @ 3:18pm 
The mod only works on the new game. If you accidentally turn it off without even going into the save game, then the character will again want to sleep
Megakruemel[GER] 26 Jan, 2022 @ 11:00am 
Yeah, it doesn't work for me either. I think it's related to loading a game but I am not sure.
Pigley 23 Jan, 2022 @ 1:39pm 
This isn't working for me. I've installed this mod and Mod Options, turned the tickbox for sleeping off, and my character still gets sleepy on the first night. Is this mod currently working for anyone else?
G-t01l3t. 20 Jan, 2022 @ 1:01am 
You totally changed the game w this one! :Thedead:
Pabbles 20 Jan, 2022 @ 12:36am 
Thank you for this.
Rust  [author] 17 Jan, 2022 @ 8:16am 
I would've liked to do that but I could not find a way to do so. My mod just prevents you from getting fatigued.
big fella 17 Jan, 2022 @ 4:53am 
does this allow you to choose to sleep like you can in MP even while fatigue is disabled? existing mods already disable fatigue, but this has the side effect of disabling sleep altogether.I'd like to not get tired but still be able to sleep to pass time.