Project Zomboid

Project Zomboid

48 ratings
Toggle Sleep in Singleplayer
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
36.334 KB
14 Jan, 2022 @ 11:28am
16 Feb, 2022 @ 5:09pm
2 Change Notes ( view )

Subscribe to download
Toggle Sleep in Singleplayer

Description
Adds a "Sleep" option in Custom Sandbox. Prevents fatigue from increasing when disabled.

This mod is known to break for some people and I can't fix it. If you have issues I highly recommend you use this mod instead: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2762998983

Workshop ID: 2719210138
Mod ID: TGSleep
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.)