DayZ
ZenSleep_ST
75 Comments
Alastrianna 26 Jun @ 3:01pm 
🌸Thank You, Beautiful mod💖I leave a Like and a Heart💖
GloryStar  [author] 9 Jun @ 8:24am 
because you can't sleep during the day 100%
Lex Talionis 9 Jun @ 7:40am 
Mod works great but the not being able to sleep because it's daytime is odd. I've got eyelids... and I even tried with a burlap sack over my head and it's still too bright.
Wehy_23 8 Jun @ 12:52pm 
hi i want to ask if you have any tutorials for GUI for dayz
MORENOBLAK 17 Apr @ 6:11am 
hola buenas se puede empacar
GloryStar  [author] 11 Apr @ 2:07am 
@Zenarchist Thank you for the wonderful mods
Zenarchist 11 Apr @ 1:26am 
Thanks man! Appreciate this. No problem with it at all, this is why I release my mods open-source so that when things break and I'm not around to fix them. I've been on a long break from DayZ modding but I'm working on a new sleep mod now.

It won't be ready for a while yet though so cheers for putting this out there in the meantime so players can continue listening to me and my sister breathe heavily into a microphone while they take a break to check discord

@CaptainAwesome you're probably missing @CF (community framework)
CaptainAwesome 10 Apr @ 9:23am 
Why do I get this error?

Can't compile "World" script module!

ZenSleep/scripts/4_world/entities/manbase/playerbase.c(133):
Undefined function 'PlayerBase.GetRPCManager'
GloryStar  [author] 12 Mar @ 1:09pm 
@Christo This is a complete mod
Christo 12 Mar @ 12:07pm 
Do I actually need to install the "main MOD" Zen Sleep on the server? Or is your fix sufficient?
Owner | RP Vanilla+ 8 Mar @ 3:27am 
Is the vanilla chat working now after the last update?
GloryStar  [author] 7 Mar @ 5:26pm 
the flag that you described above affects the mouse on the contrary, I implemented my version in recent updates in order to remove the factor of the sleep panel's influence on the mouse, because it is not needed! and as I said earlier, the assembly below has NO conflict
Jay 7 Mar @ 5:14pm 
removing the ignorepointer has fixed the issue of the chat scroll:

if (m_SleepModHudPanel)
{
m_SleepModHudPanel.SetFlags(m_SleepModHudPanel.GetFlags() | WidgetFlags.IGNOREPOINTER);
}

changed to:

if (m_SleepModHudPanel)
{
m_SleepModHudPanel.SetFlags(m_SleepModHudPanel.GetFlags() & ~WidgetFlags.IGNOREPOINTER);
}
GloryStar  [author] 7 Mar @ 5:11pm 
@Jay I just checked the server with this mod assembly:

"@CF",
"@VPPAdminTools",
"@GameLabs",
"@ZenSleep_1.27",
"@Dabs Framework",
"@DayZ-Expansion-Core",
"@DayZ-Expansion-Chat",

and everything works, the chat can be rotated both manually and with the mouse wheel with this mod, so you are looking for the problem in the wrong place!
Jay 7 Mar @ 4:07pm 
Hey dude, we identified a conflict with expansion chat and zen sleep which causes the inability to scroll the chat box. Do you think this is something you could potentially fix?
GloryStar  [author] 7 Mar @ 12:59pm 
now the config works as before if the config is set to -20 you will get exactly this provided that you drank a full can
Gamb1t 7 Mar @ 12:55pm 
I liked the 1st ver, as for soda...mine set to 0, its never woke me up!
VikingDad2121 7 Mar @ 6:27am 
Do not smoke the joints. They put you to sleep perma until you log out, then when you log back in, it stunts you and half your screen is blurry like youre close to going uncon and you cant run.
Samy FIGUEROA 7 Mar @ 5:28am 
Someone can answer to my question ? ^^
Chimere 5 Mar @ 2:19pm 
Solution for EnergyDrinks:
from OnConsume pass amount into ApplyZenSleepEffect(amount, consumer)
add amount into function parameter ApplyZenSleepEffect(float amount, PlayerBase player)

in ApplyZenSleepEffect add those lines below "float effect = ...." variable:
int qMax = this.GetQuantityMax();
float multiplier = qMax / amount;
float newEffect = effect / multiplier;

and change:
player.InsertAgent(ZenSleep_Agents.TIREDNESS, effect);
to:
player.InsertAgent(ZenSleep_Agents.TIREDNESS, newEffect);
Chimere 5 Mar @ 1:24pm 
Hello there,
problem with EnergyDrinks: Edible_Base OnConsume is called multiple times (6x), cause you are not consuming edible at once, but in parts, this results in 6 times more energy gain from EnergyDrinks. CAContinuousBase OnCompletePogress works properly cause its applying EnergyGain on action end - when is edible consumed, anyway this leads to behavior when almost empty sodacan / energy drink will give full Energy Gain. I would personaly remove code from CAContinuousBase and leave only the ApplyZenSleepEffect in OnConsume, anyway there needs to be added some calculation how much energy should be gained based on amount of drink consumed.
Dr. Kendo 3 Mar @ 3:56pm 
@ Chimere
No, not running Deer Isle or ADM Diving mod! =)
Chimere 3 Mar @ 2:51pm 
Hello,
just for info - Expansion Chat scroll function, any chance you guys running Deer Isle or ADM Diving mod? Cause they break Exp Chat scroll too.
Samy FIGUEROA 3 Mar @ 3:02am 
is the same config file like the original mod in ''profiles'' ?
Samy FIGUEROA 2 Mar @ 10:58pm 
@danbjr488 Ok nice I will download the mod then
Owner | RP Vanilla+ 2 Mar @ 3:02pm 
This mod remove ingame chat and server messages
Dr. Kendo 2 Mar @ 11:28am 
@GloryStar
No, the frozen DayZ-Expansion-Chat (when combined with ZenSleep) is well known since 2023, but have never been adressed by Zen (...as far as I know at least!).
However, it may well be another mod-conflict as well? Of course! =)
- but I never experience this problem with DayZ-Expansion-Chat other that when I use ZenSleep!
The chat always works fine again as soon as I uninstall ZenSleep ... ;)

However, the problem has been commented on the Workshop page for the original mod --> From ZenSleep Comment field:
1) splinter.fenix 13. feb. at 4.48
2) =FS=Kaliber 29. nov. 2024 at 14.59

Tnx for trying though ..., but I still hope you'll be able to find a solution for this eventually, GloryStar ... <3 :coolstar2022:
ҜĦΔØŦƗĆ 2 Mar @ 8:28am 
lovely thank you
GloryStar  [author] 2 Mar @ 5:13am 
watch the updates and it wasn't Russian, it was Ukrainian.
ҜĦΔØŦƗĆ 2 Mar @ 5:12am 
it was still Russian the other day dude?
GloryStar  [author] 2 Mar @ 5:09am 
Well, sort of, yeah, if it's not broken.
ҜĦΔØŦƗĆ 2 Mar @ 4:51am 
did this get english translation for the syringes ?
GloryStar  [author] 2 Mar @ 4:35am 
@Dr. Kendo I just checked on my test server with a bunch of mods and without this mod and the DayZ-Expansion-Chat remains bogged down, so I guess the conflict is not with this mod but with other mods, what do the authors say about it? maybe even the Expansion itself needs to be updated.
Dr. Kendo 1 Mar @ 6:13pm 
Hi, GloryStar :steamhappy:
It's awesome that you've started fixing this important mod now that Zen himself doesn't have time anymore!
Thank you so much, GloryStar <3 This will make many server owners and players happy!!

My question:
Have you also managed to fix (or do you plan to fix) the problem we experienced in the original mod, that froze the scroll function we have with DayZ-Expansion-Chat?
If not, I really hope this will be fixed as this is the only thing that made me remove the original version of the mod ... :sadstar2022:
I'll put this new version on my server immediately, as soon as the frozen chat-scrolling is fixed! :happystar2022:

<3 Slava Ukraine, we are with you all - now & forever! <3
Gamb1t 1 Mar @ 5:03am 
@GloryStar hey you could add these options pal ,left right and colour??!!
Gamb1t 1 Mar @ 4:59am 
@GypsyvGaming me to
GypsyvGaming 28 Feb @ 4:08pm 
well I for one loved the green look
GloryStar  [author] 28 Feb @ 3:58pm 
I returned it to please the fact that everyone has a different opinion and the original author had it, so I returned it, yes, the drinks may not work as well as before, but they work
GypsyvGaming 28 Feb @ 3:46pm 
did you change the color back to white because someone stated he wanted the original color back lol, green looked way better. Are the drinks working?
danbjr488 28 Feb @ 11:57am 
You have to setup drinks in the config to do what you want them to do... Just like in the original mod
Samy FIGUEROA 28 Feb @ 11:51am 
What about the drinks not working ?
Gamb1t 28 Feb @ 9:25am 
@GloryStar Couldn't find any reference to colour except 0 0 0 0.502 is that rgba?.. thanks anyway.
GloryStar  [author] 28 Feb @ 2:35am 
@Gameb1te need repack mod and change color in dayz workbench
Gamb1t 28 Feb @ 1:52am 
@GloryStar Hi, how do I change the colour back to green?
Admiral_Cringe 27 Feb @ 7:10pm 
Щиро дякую:steamthumbsup:
GypsyvGaming 27 Feb @ 5:41pm 
Are you aware that drinks don't work?
Vinnyz 27 Feb @ 1:42pm 
@GloryStar where to switch back the original colours of the hud?
и допустим кола с 10% сна пополняет за 2 гладка до 100% когда стоит в конфиге 20% с банки
GloryStar  [author] 27 Feb @ 11:52am 
@◄◄☆ PRO100EXPERT ☆►► в настройках конфига укажи пустой не существующий класс например вот так просто удалить эту механику нету смысла мб кто юзает
"UsedStimSyringeType": "ZenSleep_Empty_StimSyringe",
"UsedSleepSyringeType": "ZenSleep_Empty_Syringe",
THCF29292 27 Feb @ 11:49am 
nice