Don't Starve Together

Don't Starve Together

Sleepy Time (broken)
66 Comments
Eko 28 Apr, 2024 @ 4:28am 
looking forward to this mod's fix <3 just expressing interest, hopefully not annoying
the complexed vegetarian 4 Jan, 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 complexed vegetarian 3 Jan, 2021 @ 5:54pm 
rofl guys just put inst:AddTag("siestahut") in the tent.lua in data script prefab and it works, ez indeed.
the complexed vegetarian 1 Jan, 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 13 Sep, 2020 @ 6:16pm 
You're very welcome. ^^
Ultroman the Tacoman  [author] 13 Sep, 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 13 Sep, 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 13 Sep, 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] 13 Sep, 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] 13 Sep, 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!
ATPHHe 12 Sep, 2020 @ 9:54pm 
Cleaning up comments and reposting.

Crashed with Winona whenever she enters a cave after sleeping.
https://www.dropbox.com/s/sl2qahwd0oungjt/server_log6%20%28436772038%29.txt?dl=1

Crashed with Wendy when she died to a monster.
https://www.dropbox.com/s/9shf6mtr2juwcw1/server_log5%20%28436772038%29.txt?dl=1

Seems like [DST] Legion may have caused this issue. I disabled it and the crashes have been less frequent. But crashes still happen, probably because of the data that [DST] Legion edited.

Hope this helps. I am keeping [DST] Legion disabled for now.
Ultroman the Tacoman  [author] 12 Sep, 2020 @ 2:18am 
@ATPHHe: Thanks for the report! <3
That's very strange. First of all, that code only runs while someone is sleeping in a tent. Was anyone sleeping in a tent when he entered the cave? It would help me greatly to know this.

I check for the hunger-component, so it's there on the server, meaning it's not a server/client issue, but apparently its hunger-variable is being set to nil somewhere. That should never happen with normal game behavior, even with my mod. My mod uses the DoDelta-function to set hunger, which is why my mod is showing up as the culprit. DoDelta never sets the hunger-variable to nil, so either it's another mod (were you using mod-characters?) or there's a networking issue I'm not aware of when switching server shards.

I sadly don't have the means to set up a dedicated server, so I can't test this myself. I'd like to fix it, though. Your information has been stellar so far. Could I ask you to see if you can reproduce it? And maybe try it with original characters?
ATPHHe 11 Sep, 2020 @ 9:43pm 
[01:03:09]: [string "scripts/components/hunger.lua"]:9: attempt to index field 'hunger' (a nil value)
LUA ERROR stack traceback:
scripts/components/hunger.lua:9 in (field) ? (Lua) <8-10>
scripts/class.lua:30 in () ? (Lua) <23-32>
scripts/components/hunger.lua:94 in (method) DoDelta (Lua) <83-107>
../mods/workshop-436772038/modmain.lua:687 in (field) fn (Lua) <683-827>
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
scripts/update.lua:180 in () ? (Lua) <159-238>
ATPHHe 11 Sep, 2020 @ 9:35pm 
Hello, my dedicated server crashed when my friend entered a cave today.

Here's the full server log. The error happens at line 12923.
https://www.dropbox.com/s/yk7e4tze7l4f9vl/server_log%20%28436772038%29.txt?dl=1
Ultroman the Tacoman  [author] 4 Dec, 2019 @ 10:12pm 
UPDATE:
- Fixed crash: workshop-436772038/modmain.lua"]:869: 'then' expected near 'oldonwake'

Huge thanks to Blyepie for reporting!!!

Sincerely, Ultroman the Tacoman
Ultroman the Tacoman  [author] 4 Dec, 2019 @ 8:15am 
@Blyepie: It DOES help! A lot, in fact. It's a simple error. I'll fix it tonight.

I really can't thank you enough for reporting. I don't play DST anymore, but the mods are my babies, and I will care for them until I or DST dies, but I just don't have the time to test every eventuality myself, so I rely heavily on user bug reports and only casually do code-difference studies to see if Klei changed something my mods use.

Thanks again!

Sincerely, Ultroman the Tacoman
Deezvious 3 Dec, 2019 @ 2:26pm 
I keep getting a crash message.
[string "../mods/workshop-436772038/modmain.lua"]:869: 'then' expected near 'oldonwake'
I love customizing this and it hurts my soul that this crashes, I hope this helps you fix it.
Ultroman the Tacoman  [author] 20 Nov, 2019 @ 4:16pm 
UPDATE:
- Made the mod more automatically adaptable to changes to the game, whether through updates or mods.

Sincerely, Ultroman the Tacoman
Ultroman the Tacoman  [author] 18 Sep, 2019 @ 5:09pm 
UPDATE:
- Just maintenance, to make the mod behave according to the newest game code.

I haven't had time to look into offering sleep duration wear-and-tear instead of uses yet, and I don't think I will have time for a while. It's quite a big rewrite, so don't expect it any time soon.

Sincerely, Ultroman the Tacoman
Ultroman the Tacoman  [author] 12 Feb, 2019 @ 10:21pm 
@Alex: Thanks for the input, m8! I really appreciate it :D

I will take a look at upgrading the mod in a while. If you like difficult, I think you'll like my other mods. They're high in customizability, so you can make it easier and harder for yourself with ease. I'm also putting out a huge update to Stat Regen System, which will include DEgen, as well as the current (very customizable) regen, so you can make a certain stat degenerate over time, if the other stats are low. So, if your health and hunger are both (or either is) low, you can make players lose sanity, or if sanity and hunger are both (or either is) low you lose health. It'll make the game much more dynamic. Especially, if you also make it regenerate sanity if your health and hunger are both high.

Anyway, whatever you do, get Long-range Research. It's a must. Even if you don't tweak the ranges. You can see why in the description.

Sincerely, Ultroman the Tacoman
Alex 12 Feb, 2019 @ 9:30pm 
Edit: Didn't mean to hit post, had a 12h power outage and slept. Formatted to fit and not look like a blob hopefully.

-I prefer duration too uses, though since both mods are compatible (I think), I should probably ask them instead.

-Uses make some short rest less optimal and wasteful where duration doesn't.

-The duration for the tents in that mod I think is uses being turned into half days.

-I could see my self lowering the time the duration since its generally more optimal than what you'd get in vanilla.

-I like the idea of tents and siesta's decaying over time from exposure as some thing separate from use or duration, but would probably only use it if it were near seasonally.

-As a disclaimer, I favor experience>balance, convenience>grind, and difficult>easy, and adjust towards that. I'm bit of a modding addict. I'm use to other communities and I'v rubbed some people the wrong way in DS/DST; not trying to of course.

Thanks for the mod, the timely responses and take care mate.
Ultroman the Tacoman  [author] 11 Feb, 2019 @ 5:24pm 
@Alex: Shame on me, as well. I didn't catch the "Only sleep starts the countdown." This is one of those times when I just can't figure out which makes more sense...I don't know. Maybe I could add that a tent and siestahut can have a maximum lifetime of a custom number of days, after which they will be destroyed, if their uses haven't been used yet. Then you could set the uses to a number or infinite for them, and they would still break after a certain time.

I'm going to have to say it goes at the back of the queue. I'd still love to know, if the two mods work together.

Sincerely, Ultroman the Tacoman
Alex 11 Feb, 2019 @ 4:54pm 
Pretty sure only usage lowers duration. but I could be wrong...Ima go check on that.

Edit: shame on me for not just re/better-reading the mod page.

The countdown tent
Change the Tent and Siesta Lean-to to countdown.
Only sleep start the countdown.

@Ultroman the Tacoman
Ultroman the Tacoman  [author] 11 Feb, 2019 @ 4:34pm 
@Alex: Aah, so you'd like me to also make bedrolls a timed thing. I thought you only meant tents and siestahuts...hmmm...I get what you're saying. I don't know. For bedrolls, I don't think timed functionality makes much sense. They wouldn't get weathered like a tent or a siestahut, since they're usually in your inventory or in a chest. For those, uses makes more sense to me. I can look into how big a change it is to add the option, but I have to say, I have a lot of work planned for other mods already, and I also have my master thesis to work on right now. If it's too much work, it'll have to be delayed.

Please let me know if the two mods work together.

Sincerely, Ultroman the Tacoman
Alex 11 Feb, 2019 @ 4:04pm 
Considered it, but it doesn't include bedrolls which i'm quite found of since I prefer nomad play.
I'll give it a shot, since it sounds better than one or the other.
@Ultroman the Tacoman
Ultroman the Tacoman  [author] 11 Feb, 2019 @ 9:18am 
@Alex: Hmmm...I will consider it. Actually, if you leave the default uses in my mod at the default value, I don't touch the uses at all. You might be able to use the mods at the same time. Did you try that?
Alex 11 Feb, 2019 @ 8:39am 
Could you do some thing to the affect of? https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=643023105&searchtext=time+tent Yours is more comprehensive and includes bedrolls not just tents, but duration seems a better mechanic than uses.
@Ultroman the Tacoman
Ultroman the Tacoman  [author] 19 Nov, 2018 @ 2:14pm 
UPDATE:
- Fixed all mod setting tooltips, so they fit on two lines.

Sincerely, Ultroman the Tacoman
Ultroman the Tacoman  [author] 20 Aug, 2018 @ 5:16pm 
Just went through the game code, to ensure that this mod still works as intended.

Sincerely, Ultroman the Tacoman
Ultroman the Tacoman  [author] 6 Jan, 2018 @ 10:56am 
If you also want to change their temperature effect, my mod Temperature Tuner can do that. That particular setting also affects tree shade and caves, though.
Birds Aren't Real 6 Jan, 2018 @ 8:17am 
Siesta huts are fucking OP why won't Klei nerf them?
Ultroman the Tacoman  [author] 5 Jan, 2018 @ 9:54pm 
I just went through the code, and this mod is still in perfect working order :D

Sincerely, Ultroman the Tacoman

HAPPY NEW YEAR!
Ultroman the Tacoman  [author] 16 Dec, 2017 @ 2:48pm 
@Daxterr: The 3 star rating is because of Steam's confusing and completely useless rating system. It weighs in the number of users contra reviews, so even though this mod has 26 good reviews out of 28, then just because not many users actually rate it, the amount of stars is low.

I am glad you like it! :D
Birds Aren't Real 16 Dec, 2017 @ 2:35pm 
Hey I love this mod and it works great. No bugs or crashes 150 days in so far. In my opinion tents are WAY too strong. I hate how you can just heal all of your HP so fast, and I it should be nerfed in the base game. Until then I'll use this mod =)

Anyway I really don't know why this has 3 stars. Maybe the configuration options are too confusing for most people? The actual mod is fine though!
Ayria 21 Feb, 2017 @ 10:00am 
I understand, thanks man :)
Ultroman the Tacoman  [author] 21 Feb, 2017 @ 7:50am 
Hello Caffé Breve

If you install the mod, you are already given a file with all that data. The entire GUI is described in the file named "modinfo.lua", complete with all the available settings, their names, variable-names, values and GUI-values.

Under the "configuration_options" node, you will find something like this for each setting:

name = "CanSleepThroughStarvation",
label = "Sleep Starved",
hover = "Players can sleep, and keep sleeping, despite starving",
options =
--description = "Enabled", data = true,
--description = "Disabled", data = false,
default = false

What do these mean?!
name = variable name
label = GUI label
hover = text when hovered over in GUI
options = collection of option-items, which include:
--description = GUI-label for this option
--data = value to the the variable to, when selecting this option
default = default value for the setting

ATM I don't have time to work on these mods. Not much free time, I'm afraid. I'd like to, but alas, life is in the way.
Ayria 18 Feb, 2017 @ 3:43am 
Can you make it so this can be more easily used on a remote dedicated server? Remote servers don't really have the GUI to change settings on.. Or maybe a file with a list of options and variables so the modoveride can be used..
gurkoz 26 Apr, 2016 @ 8:50am 
Awesome mod! Recommended!
Ultroman the Tacoman  [author] 20 Feb, 2016 @ 1:45pm 
Klei has fixed the bug concerning mod settings! :D
Settings should now be applied correctly when starting a server, instead of reverting to default settings.

As always, please do report any bugs!

Sincerely, Ultroman
Ultroman the Tacoman  [author] 13 Feb, 2016 @ 12:41pm 
The last update to DST broke all mods with settings in them. No matter what you set your options to, they are always reset to defaults when starting a server. Dedicated servers have another set of problems. Klei is working on it. There's nothing I can do :(

@Css. Chapwisely: Thank you very much! That's the best review I've ever gotten :D
Sugardotfive 13 Feb, 2016 @ 9:11am 
Config menu gave me carpal tunnel.

10/10, Would click again.
Ultroman the Tacoman  [author] 27 Jan, 2016 @ 2:41pm 
Huge update! Time consuming, anyway :P

- 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.

Enjoy!
Ultroman the Tacoman  [author] 17 Jan, 2016 @ 8:29am 
Small update, because Klei changed some things.
Ultroman the Tacoman  [author] 17 Nov, 2015 @ 4:07pm 
@Ehrion
Thank YOU! And any time :D
Ehrion 17 Nov, 2015 @ 12:01pm 
Works like a charm! Thx dude!
Ultroman the Tacoman  [author] 15 Nov, 2015 @ 7:59am 
@Ehrion
The mod has been updated to fix the issue. Please do report back!
Thanks
Ultroman the Tacoman  [author] 13 Nov, 2015 @ 4:46pm 
Thank you, Ehrion! I'm on it!
Ehrion 13 Nov, 2015 @ 10:25am 
Hi Ultroman! Amazing mod! im having a problem with... It crashes randomly, saying

3244: variable 'GetClock' is not declared LUA ERROR traceback:
...

Can u fix this? I can no longer play with my friends without your mod. Thx!
Ultroman the Tacoman  [author] 11 Nov, 2015 @ 3:02am 
I would wish, that the people who give a bad rating, would tell me why, so I can improve the mod. I'm very open to suggestions, and very glad to receive error-reports. Your help is much appreciated!
Ultroman the Tacoman  [author] 9 Jul, 2015 @ 3:44pm 
I'm so glad to hear that, Xaekai! You don't know how much it means to hear someone say that about your work. Or maybe you do :) Thanks for sharing your dedicated server settings. I'm sure they will save a lot of people a lot of time :D