DayZ
dzr_sleep_till_morning
116 Comments
DZR|Mikhail  [author] 17 Jun @ 11:48pm 
Hush, ok, added to the roadmap
Hush 17 Jun @ 6:04pm 
I definitely like the idea of the message. That would be super helpful.
DZR|Mikhail  [author] 16 Jun @ 10:36pm 
Hush, you mean a way to ignore a defined percent of non-lying players and skip night? Currently no.
But I forsee problems with this. When players go to sleep voluntarily, they are probably safe and are definitely out of vahicles and ladders. Players currently driving vehicles, climbing ladders, or ighting zombies, will get a high chance to get injured or even die. Anyway they may suffer illness from cold etc. when awake.

But I guess I could check if players are safe, with no AI around + positioned on the ground. It is a bit complicated, will probably drain resourses on highly populated servers.

I sugest we make a configurable message if someone tries to sleep. So if one player lies down at night, others may get a message "Players asleep: 1 of 35. If all 35 player lie down, The night will be skipped."
Hush 16 Jun @ 7:05pm 
is there a way to configure it so as long as a percentage of hte players who are on are asleep it will do it?
DZR|Mikhail  [author] 1 Mar @ 2:05am 
George7707
Glad to hear!
George7707 28 Feb @ 8:25am 
@DZR|Mikhail
Yes, it works, thanks ;)
DZR|Mikhail  [author] 28 Feb @ 4:27am 
KakTyc
Сколько лет делаю моды, но когда работает, радуюсь как первый раз.
KakTyc 28 Feb @ 1:55am 
работает, спасибо
DZR|Mikhail  [author] 28 Feb @ 12:41am 
George7707
Should be fixed now. Set RestoreSleepTiredPerMinute to 0.08 to get started. Current 0.3 will be too quick.
DZR|Mikhail  [author] 28 Feb @ 12:40am 
KakTyc, проверяйте. Вроде пофиксил. Только RestoreSleepTiredPerMinute надо поставить 0.08 примерно.
DZR|Mikhail  [author] 27 Feb @ 9:12pm 
Проверю. Это у меня скорее всего ошибка. Где-то через час все пофиксим и я проверю с каждым модом сна.
KakTyc 27 Feb @ 11:17am 
посмотрел, видимо связано с модом inediastamina которым я пользуюсь
KakTyc 27 Feb @ 11:00am 
Can't compile "Mission" script module!

dzr_sleep_till_morning/5_Mission/mission\missionserver.c(428): Can't find variable 'current_state'
DZR|Mikhail  [author] 27 Feb @ 5:06am 
George7707
Found bug. Will be fixing tomorrow.
DZR|Mikhail  [author] 27 Feb @ 5:03am 
George7707
I will investigate tomorrow. Thank you for feedback.
George7707 27 Feb @ 5:00am 
It seems that RestoreSleepTiredPerMinute does not work in combination with ZenSleep.
Regardless of the setting and the length of sleep, it always fully recovers from tiredness.
DZR|Mikhail  [author] 21 Feb @ 4:51am 
collineven,
You're welcome :steamthumbsup:
collineven 21 Feb @ 3:58am 
Downloaded the PBO il run some tests and let you know how it goes :) Thanks for doing what you do for the community sir.
DZR|Mikhail  [author] 21 Feb @ 12:04am 
collineven
It is already implemented internally and is coming up in the next update as well as other cool stuff.
I will drop the new version on discord or telegram - https://t.me/dayrussia_dzr , so you can test it and give feedback before I publish it.
collineven 19 Feb @ 12:14am 
Hey Mikhail could you look to adding terje medicines sleep mechanic like you have with zens and inedia please :)
DZR|Mikhail  [author] 15 Feb @ 9:05pm 
cynep
Да, я тестировал с максимальными значениями... Сон не убьёт игрока, то есть там да, есть минимальный порог, когда не будет отнимать. Я забыл об этом упомянуть. Надо это вынести в конфиг тоже. Как-то не подумал. Исправим.
cynep 15 Feb @ 9:46am 
@DZR|Mikhail блин честно говоря чет не понимаю как работает) Ставлю 800 нап в файле WaterLoss, а после ночи снимает по 400 в лучшем случае. Поставил 1500 - перестал снимать вообще. Может тогда подскажешь какие значения надо в файле поставить, чтобы снимать по 1600 энергии и 1500 воды. Также вопрос будет ли он снимать под 0, если у игрока допустим вечером менее 1500, нап 900 воды. 900-1500 значит под 0 должен снять

Или вот эти цифры в файле снимают лишь относительно максимальных значений 5000?
DZR|Mikhail  [author] 10 Feb @ 9:37pm 
[dzr_sleep_till_morning] Processing Stats
SCRIPT : int EnergyLoss = 1500
SCRIPT : float m_Energy = 4987.32
SCRIPT : float m_NewEnergy = 3487.32
SCRIPT : int WaterLoss = 1500
SCRIPT : float m_Water = 4999.48
SCRIPT : float m_NewWater = 3499.48
DZR|Mikhail  [author] 10 Feb @ 9:28pm 
cynep
Отнимается в единицах энергии. Я только что проверил, исправно снимает и еду и воду. ПО умолчанию 1500 было. Всего у игрока на спавне 5000 и отнимается. Попробуй побольше поставить, чтобы заметнее было. И можно в админке смотреть, как отнимается.

А я баг нешел :) Игроки спят не до утра, а сутки и потом до утра :) Забыл где-то убрать добавление суток.
cynep 10 Feb @ 7:15am 
@DZR|Mikhail подскажи. В конфигах при перемотке, где еда вычитается, там в процентах % или в единицах, мол за ночь -25 ед. потратится по умолч? Просто либо мод не работает, либо надо больше ед ставить, например -800?
ŦHË ǤÄMËⱤ ǤŮƔ 23 Nov, 2024 @ 4:08pm 
Works great. Thanks a ton!
DZR|Mikhail  [author] 20 Nov, 2024 @ 3:34am 
Ok, major update and bugfixes. If servers don't start or crash - report here or to Telegram (no Discord unfortunately). I will revert.

Пофиксил и обновил. Но надо тестить. Если что пишите в телегу.

https://t.me/dayrussia_dzr
DZR|Mikhail  [author] 18 Nov, 2024 @ 9:51pm 
ŦHË ǤÄMËⱤ ǤŮƔ, sorry, forgot to report back. I confirm the bug. It is my fault. I started fixing, but really got overwhelmed by work and other tasks. I will fix it 100%, but need more time.
ŦHË ǤÄMËⱤ ǤŮƔ 17 Nov, 2024 @ 6:21pm 
@DZR|Mikhail Were you able to find anything? Or is it a problem on my side? I did some more testing and it doesn't seem to matter if I put 0.0001 or 10000 or anything in between into the configuration files, I always wake up with 15% energy and water according to the DayZ Expansion book.
DZR|Mikhail  [author] 9 Nov, 2024 @ 5:41am 
Thanks for the info ŦHË ǤÄMËⱤ ǤŮƔ . I will investigate.
ŦHË ǤÄMËⱤ ǤŮƔ 7 Nov, 2024 @ 6:01pm 
For some reason I always end up with 15% water and energy no mater what I put in the configuration files?
Sweet Willow 29 Sep, 2024 @ 3:50pm 
I cant wait to try this!!!!
DZR|Mikhail  [author] 20 Aug, 2024 @ 12:28am 
JustinDaniels, found a bug! I've been calculating your new water and energy from a player constant NORMAL threshold. Not the actual player energy! So If you had full energy 5000 and needed to lose 25, you should be getting 4975, but you got SL_ENERGY_NORMAL - 25, that is 2000 - 25.

Same for water.

Fixing.
JustinDaniels 19 Aug, 2024 @ 11:54am 
Thank you, Mikhail! I'm looking forward to it! This is a much-needed feature, and helps me get rid of all this extra food in my storage, though I'd prefer not having to clear 4 cans of beans every morning to be stable again. :steamhappy:
DZR|Mikhail  [author] 19 Aug, 2024 @ 5:10am 
Malarkei, thanks for confirmin it working. I think it may work with Siberia, but it may have a slight conflict in those black screens :) If you test it with Siberia, let me know of the issues.
DZR|Mikhail  [author] 19 Aug, 2024 @ 5:09am 
JustinDaniels, I will instell Inedia sleep and investigate. The idea for those files was exactly for making you able to tune any amount of draining energy or water in the morning. I will double check my configs, may be it is a bug on my side. If not, I will see hw Inedia could interfere.
JustinDaniels 19 Aug, 2024 @ 1:09am 
Hey, Mikhail! Slight issue I've been having here.

I use Inedia Sleeping System, if it helps narrow the issue down, but...

I've edited the EnergyLoss.txt and WaterLoss.txt files in the "...\profiles\DZR\dzr_sleep_till_morning" folder. I set the numbers at the top all the way down to 1, but I'm still dropping down to yellow.

I was hoping to set it so I just drain a little bit of hunger, rather than nearly starve to death every morning.

How do we fix this?
Malarkei 21 May, 2024 @ 5:03am 
I tested it and it worked fine. I'm still not sure if it can use the Syberia resting system, but that's not as important. Thank you!
DZR|Mikhail  [author] 16 May, 2024 @ 11:02am 
Malarkei, it must work with any AI mod. Will probably work with Syberia sleep. But you will probably have the black screen untill you ASD-move your character in the morning.
DZR|Mikhail  [author] 16 May, 2024 @ 10:59am 
Jacky, the config file should be in your server's Profile/DZR/dzr_sleep... folder
Jacky 13 May, 2024 @ 9:00am 
Hey there, coold mod, you said in the description the sleep time is configurable.
Where can I configure it ?=)
Malarkei 13 May, 2024 @ 3:37am 
Awesome mod! Can I use it with the syberia project sleeping system? I also would like to know if this mod works in a server using AI survivors (Expansion AI). Thank you!
SkullEmoji 25 Feb, 2024 @ 9:08am 
Thank you. Cool to have when you're playing on LAN server.
DZR|Mikhail  [author] 14 Feb, 2024 @ 2:35am 
InediaStamina support added :)
DZR|Mikhail  [author] 13 Feb, 2024 @ 9:46pm 
StingyTang®, it's ok. Thank you for confirmation! Glad you find it useful.
StingyTang® 13 Feb, 2024 @ 5:32pm 
thank you! sorry i did not get back with you. it works great :)
DZR|Mikhail  [author] 7 Feb, 2024 @ 9:24pm 
StingyTang®, added ZenSleep compatibility.
Alhamdulillah 7 Feb, 2024 @ 2:00am 
I believe ZenSleep itself is a fork of the MedicalAttention sleep system so it may work already. Don't quote me on that though because I haven't tested it and may not be recalling things correctly.
DZR|Mikhail  [author] 29 Jan, 2024 @ 11:34pm 
StingyTang®, can you please contact me on Discord and describe the compatibility problem before I install the mod and start testing it? Discord: dzr_mikhail
StingyTang® 29 Jan, 2024 @ 8:16pm 
any chance for compatibility with the mod ZenSleep?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2799531123