Don't Starve Together

Don't Starve Together

61 ratings
Sleepy Time (broken)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
31.435 KB
May 3, 2015 @ 9:55am
Dec 4, 2019 @ 10:11pm
14 Change Notes ( view )

Subscribe to download
Sleepy Time (broken)

Description
Allows you to set the amount of gain/loss of each stat (including wetness and temperature) for each sleep-tick, all INDIVIDUALLY for each piece of equipment! You can set the number of uses for each, AND whether you can use them at day/night. Bonus: I have coded an elaborate temperature system, with which you can set at which temperatures the equipment will work, and at which temperatures it will bestow penalties, and whether it can cool you down or heat you up at all, or both.

NOTE! THIS MOD IS BROKEN! Klei revamped the sleeping code quite a lot, so I'll have to find a weekend to do a rewrite. It's about 40% that needs to be redone, so it'll take some time.

Settings Information
You can set gain/loss per sleep-tick for all stats, including health, hunger, sanity, wetness and temperature.

You can set uses for all 4 types of equipment. If you choose "Unlimited" or "1" uses for one of the bedrolls, it will become stackable.

For temperature, you will have a large amount of variables to tweak, including whether the equipment can cool and/or heat the player towards a target temperature. If neither are enabled, the player temperature follows the world temperature. There are heating/cooling barrier variables indicating above which temperature the equipment can no longer cool down the player, and below which temperature the equipment can no longer heat up the player, in which cases the player temperature will follow the world temperature. There are also heat/cold penalty limits, which work sort of like the barriers, except the fact that if the world is above/below the selected temperature, instead of ticking the player temperature towards the world temperature, you can decide whether the player should get colder or hotter.

Usage notes
a. Does NOT require you to make a new world before taking effect.
b. This mod only works if the host of the server has enabled it.
c. When using this mod as a host, this will apply to all the players on the server.

Known bugs
- The game is also trying to change your temperature, which will sometimes result in the player only almost reaching target temperature. Not much I can do about it. I'm able to keep him about a maximum of 0.3 degrees from target temperature, at worst.

Link to 'Tenting 101', the Don't Starve / Reign of Giants / Shipwrecked version of this mod.
It only allows you to set the amount of uses for tents (and canopies in RoG). I'm looking into making a full version of this mod for Don't Starve / Reign of Giants, but due to Klei's code having problems with mods that have many variables, it currently crashes the game during worldgen/load. I'm waiting for a fix for this issue, before I can release it.

Change log
0.1.0 - Fixed all mod setting tooltips, so they fit on two lines.
0.0.9 - Added smaller increments (0.01 to 0.10 and 0.15) to all tick-settings, to enable you to make smaller changes to stats per tick. Added explanatory hover-text to all settings, to make the mod more approachable.
0.0.8 - Code clean-up. Klei changed some things, so I changed some things.
0.0.7 - Fixed crash when a client with the mod installed, joined a server with the mod enabled.
0.0.6 - Completely rewrote the mod. You can now set an insane amount of settings for each piece of equipment! This version should be considered a BETA. Happy tuning :)
0.0.4 - Added settings for amount of uses for tents and canopies.
0.0.3 - Changed mod to not be required for all players, as it is a server mod.
0.0.2 - Added links to Steam Workshop to modinfo.
0.0.1 - Initial release.

Links to my other DST mods (Steam pages)
Auto Stack and Pick Up - Gives you MANY settings for automatically stacking or picking up newly spawned and manually dropped stackable items.
Blow Darts Any Feather - Allows you to add extra recipes for any blowdart, so you can use any feather to craft them.
Fishing Buddy - Allows you to edit all settings pertaining to fishing.
Long-range Containers - Allows you to change the distance you can move away from containers before they automatically close.
Long-range Research - Lets you set the range from which you can use the research machines, and access recipes from more than one machine at a time!
Metabolizer - Allows you to set the base rate of hunger, from 400% of normal loss, and all the way to 200% gain.
Monster Ash Drop Tuner - Allows you to set a chance for monsters, prey, animals and characters (not players), to NOT replace their loot with ash when they die burning and screaming.
No Wet Items - Removes the possibility of inventory items being wet.
Resurrection Tuner - Tune the resurrection penalties, and starting stats after resurrection, plus crafting-cost of revival-items.
RPG Items (global edition) - Any weapon, armor and helmet has a chance to be imbued with special modifiers when they are generated by the game (by world generation, crafting, drops etc).
Sanity Tuner - Allows you to tune the sanity gain and loss players receive from many things, including moisture and auras!
Stat Regen And Degen - A customizable stat regen AND degen system for health, sanity and hunger.
Temperature Tuner - Allows you to tune the rate at which the temperatures of the players rise and fall (separately) using percentages, and change the minimum and maximum temperature caps for the players as well.
Time Your Own Boss - Allows you to set the number of day-cycles before bosses start to arrive.
What am I crafting (fixed) - Shrinks the lock icon that appears on crafting recipes which haven't been prototyped yet, so you can see the silhouette of what you are crafting.

Tags: sleep tuner tweaker health sanity hunger time straw furry bedroll roll tent siestahut night dusk day penalty uses unlimited stackable
66 Comments
Eko Apr 28 @ 4:28am 
looking forward to this mod's fix <3 just expressing interest, hopefully not annoying
the evil vegetarian Jan 4, 2021 @ 2:56am 
just make sure siesta hut at night option is on otherwise it will say i rather be in a tent, just go with that for now until he comes back :P
the evil vegetarian Jan 3, 2021 @ 5:54pm 
rofl guys just put inst:AddTag("siestahut") in the tent.lua in data script prefab and it works, ez indeed.
the evil vegetarian Jan 1, 2021 @ 7:05pm 
pffff take your time buddy, i can wait until last breathe for this mod, and yeah i can't sleep at day with tent but fur roll works fine.
ATPHHe Sep 13, 2020 @ 6:16pm 
You're very welcome. ^^
Ultroman the Tacoman  [author] Sep 13, 2020 @ 5:59pm 
OK, bad news. Klei completely revamped their sleeping code. This is a 60% rewrite...another one. I'm just too busy for these right now. That said, the new system is MUCH easier to mod for! I can definitely rewrite it, but it's too big right now. I'll put it on the list for near future, though. Just disable Sleepy Time for now.

Thanks for reporting!!!

Sincerely, Ultroman the Tacoman
ATPHHe Sep 13, 2020 @ 4:38pm 
Here's video of the glitch if it helps.
https://www.dropbox.com/s/3l6vxzkfcj9xsh8/2020-09-13%2018-33-20.mp4?dl=1

Now if I walk into a cave, leave the game, or die, it crashes.
ATPHHe Sep 13, 2020 @ 4:25pm 
You're welcome. Also, thanks.

I have Legion disabled. Two crashes happened.

The crashes continued whenever my friend entered a cave.
https://www.dropbox.com/s/7xllqpoy3s9sr6w/server_log7%20%28436772038%29.txt?dl=1
I entered a cave with this hp regeneration and the game crashed.
https://www.dropbox.com/s/4aj0kizm8snsul5/server_log8%20%28436772038%29.txt?dl=1

I slept in a Sierra while I was hurt. The only sleep effect I saw was health regeneration.
I left the Sierra and my HP was still going up for some reason.
I tested the Tent, and it also happened.

Sanity gain and Hunger drain didn't occur.

I'll add you as a friend.
Ultroman the Tacoman  [author] Sep 13, 2020 @ 11:06am 
BTW, ATPHHe, you're welcome to add me as friend, if you want this to go a bit faster with live-chat :)
Ultroman the Tacoman  [author] Sep 13, 2020 @ 11:05am 
@ATPHHe: That's excellent detective work! It looks like Legion might be editing some of the actions concerning sleep, keeping the sleep-task running after the sleeping ends. I can see in the error-data that Winona's entity is actually no longer valid. Same with Wendy, actually. I can add checks in my code to immediately kill the sleeptask if the sleeper isn't valid or asleep, BUT the sleeptask shouldn't be running at all!!! WHY is it still running after sleeping has ended? Did you continue to get the sleeping effects when running around after sleeping, while you were using Legion or even now? I'd love to see a crash report from a time when you weren't using Legion, as well.
I think I can fix this! Just need a little bit more info. THANKS FOR HELPING!