Description

More immersive sleep, which only allows you to sleep when sleepy (last_sleep >= 3000). Can only sleep until well-rested. Chance of waking up early. Having a sleeping bag and or bedspread will give better sleep quality. Sleeping when not tired will display the message: "I'm not tired enough to sleep."

Preview
Immersive Sleep v1.2.1
Comments
tkcrits Author
tkcrits

Feedback welcome. Let me know if there is any issues or suggestions :)

Also ironic, I've had a Red Bull earlier in the evening and posted this at 4AM XD

Reply Good karma+3 votes
bvcx
bvcx

Hey, like the idea, but I don't think it will change much with default up_sleep and sleep_chk configs.
Actor can still run around with backpack full of crap for 15 hours, then sleep for 3 hours and be totally fine ;]
I know it's a game, but this particular thing is breaking immersion imo.

Reply Good karma Bad karma+3 votes
tkcrits Author
tkcrits

Good point, will play around with the values and see if I can get it more realistic.

Reply Good karma+2 votes
Zerk.
Zerk.

True, but that would make sense if you pumped your character full of cocaine and caffeine tablets. I did that a lot in MISERY.. oh poor Degtyarev, LOL

Reply Good karma Bad karma+4 votes
tcmx
tcmx

Works perfectly, a must have.

Reply Good karma Bad karma+2 votes
tkcrits Author
tkcrits

RELEASED
v1.0.1b
- When sleeping, reduced recovery to 560 per hour, down from 1400.
- The zone isn't the most comfortable, so you don't recover a perfect 8 hours worth of sleep.

PLANNED
v1.1.0
- Bed roll gives better sleep. Percent Chance + Base value
- Reduce base sleep recovery further to motivate better sleeping conditions (bed roll)
- Can only sleep until not tired
- Random chance possible to wake up earlier if hours slept > 6
- Can only sleep until sleepiness reaches 0

Reply Good karma+1 vote
LESHEN1
LESHEN1

Would you consider adding sleeping bonuses like 1% boost (small boosts) to stamina (or any other stat you deem worthy) after sleeping on a bed roll perhaps?
Still a good addon nonetheless - will try out for sure :]

Reply Good karma Bad karma+3 votes
tkcrits Author
tkcrits

Good idea. Will look into it.

Reply Good karma+1 vote
tkcrits Author
tkcrits

RELEASED

v1.1.0b
- Can only sleep until well-rested
- Reduced recovery to 510 per hour
- Chance of waking up early. Base chance 60%.
- Sleeping bag
reduces wake up chance by 20%, increases recovery by 20% to 612 per hour
- Sleeping bag + Bedspread (needs to be in inventory)
reduces wake up chance by 30%, increases recovery by 30% to 663 per hour
- Added status messages after sleep "Woke up early after X hours", "Slept for X hours", "Slept very well for X hours"
- Some restrictions on maximum hours to be slept, on level 1 sleepiness, without sleeping bag the maximum hours is 7 and 9 for with sleeping bag.

May have to play around with these values a bit more, feedback welcome. For a first draft seems to be working well with the additional features.

Reply Good karma+2 votes
MoreLove1
MoreLove1

Is it possible to leave all these cool features, but remove the possibility of sleeping only during fatigue? I think that in a stressful situation, it is reasonable to sleep at any possible time.

Reply Good karma Bad karma+2 votes
bvcx
bvcx

Saddens me that good addons like this don't get enough attention unlike all low-quality EFT related stuff that we get every day.
Just glad we still have people who care about gameplay and put efforts in their work.

Keep it up and thanks for updates ;]

Reply Good karma Bad karma+4 votes
Angery_Orang
Angery_Orang

Great mod! Now i actually have to plan my trips according to my sleep schedule.

I might have found an oversight. If you sleep just enough to get rid of the first level of tiredness and you wake up early, you cant go back to sleep, but you will be sleepy again in a few hours. It might be intended but just feels weird that you slept enough not to be able to sleep anymore and then get tired 3 hours later. I modified minimum sleep threshold from 5000 to 3000 "sleepiness points" and it feels a lot better now.

Thanks for the mod, it became a must have. Keep up the good work!

Reply Good karma Bad karma+3 votes
Angery_Orang
Angery_Orang

Also when you die or when gun is jammed, message on the screen says "nis". Not sure why, but it is easily fixable changing the "ui_st_screen" lines.

Reply Good karma Bad karma+2 votes
Uklejamini
Uklejamini

It would be great if there would be a new update to the addon, that:
Increases Sleep Recovery per hour from 510 to 520 (w/o sleeping in sleeping bag)
Reduces need for sleep from 5000 to 3000.

Reply Good karma Bad karma+2 votes
tkcrits Author
tkcrits

RELEASED

v1.2.0
- Refactored wake up chance, implemented scaling value based on hours to sleep
- Without comfy sleep, will always wake up 10% earlier of full rested time
- Can now sleep on sleepiness >= 3000, because waking up early should allow you to try again
- Updated base sleepiness recovery to 520, comfortable sleep scaled accordingly
- Added Russian language translations
- Fixed 'nis' text
- Added optional patched version for RESPAWN MOD/CURSE OF IMMORTALITY 1.0.7 [MCM]

-----------

Thanks for the feedback!

I've been playing with 1.2.0 for a while now which adjusted wakeup chance to a scaling percentage.

Also added some of the recent feedback here from Angery_Orang and Uklejamini.

Additionaly MegaTiEstO96, inspired me to add Russian translation. Haven't tested this yet, so let me know if it works :)

Reply Good karma+1 vote
zoust
zoust

Gj :)

Reply Good karma Bad karma+2 votes
Lightspace
Lightspace

Is there a chance of a patch for Arzis Radiation overhaul?

Reply Good karma Bad karma+2 votes
whereismy
whereismy

RUS text encoding misstep in 1.2 ver.
I.imgur.com

Reply Good karma Bad karma+3 votes
tkcrits Author
tkcrits

Thanks for the heads up.

Updated using a different application.

Reply Good karma+3 votes
whereismy
whereismy

thanks for the fix and thx for the realy nice addon.

Reply Good karma Bad karma+3 votes
Даниль
Даниль

Are there any plans to patch compatibility with the Arszis_Radiation_Overhaul mod?

Reply Good karma Bad karma+1 vote
hekawa
hekawa

After sleeping, seeing double, what is needed to prevent this from happening? Sleeping on a sleeping bag with a Bed spread?

Reply Good karma Bad karma+1 vote
hekawa
hekawa

and how to remove double vision after waking up?

Reply Good karma Bad karma+1 vote
bvcx
bvcx

I think with Immersive Campfire Saving the up_sleep increasing only once per blackout and doesn't count all the time that has been passed after save.
It's more of an Immersive Campfire Saving issue honestly, just thought you should know ;p
Edit: Seems like sleep/thirst scripts are based on time that actually passed and do not like time that has been changed ;[

Reply Good karma Bad karma+1 vote
BongWatter
BongWatter

Hey, for some reason every time I open my inventory I crash with this mod, Thought it might have been a sleeping bag in my inventory, but to no avail, still didn't work without sleeping bag. Any suggestions?

Reply Good karma Bad karma+1 vote
L1R1K
L1R1K

Hi there! At first, thank you for a great mod! Sleeping pills are finally useful.
But there's a problem related to them: After I take pills, it locks inventory and some other keys (e.g. cannot open the inventory). Do you have any ideas why this may happen? I am also using Grok's Body Heath System and Food & Drugs animations, may these be a part of the problem? I just don't get how your script may lock interface, but it started only after the installation.

Reply Good karma Bad karma+4 votes
L1R1K
L1R1K

Well, I think I've figured it out. It seems the problem was in Food & Drugs animations or there was some other compatibility issue. I changed the mod order to look like this:
...
all other mods
...
Immersive Sleep
F&D Animations

and it magically worked. I've also treated some problems with animations that I had.

Reply Good karma Bad karma-1 votes
Harald_ino
Harald_ino

But does immersive Sleep still function then?

Reply Good karma Bad karma+2 votes
Uranium-235
Uranium-235

I'm not sure what I'm experiencing, but with the Sleep/Food/Thirst UI mod, getting 9 hours of comfy sleep while in the 'gray' indicator status never seems to actually max out my sleep.

I waited until my sleepiness factor turned yellow, which means I'm at 6250 of sleepy units. I have a comfy setup (bag + roll).

I slept "very well" for 9 hours.

Based on the math, I should wake up with pretty much with 166 sleep units left, or rather, my UI bar should be totally full (comfy2 = 676/hour recovery, 6,084 total sleep recovery).

Instead, I wake up in 9 hours and the bar is at like 3.5 bars full. Meaning my sleep level is at around 4200.

So maybe the UI is wrong?

Maybe not. I took some Sleeping Pills. My Sleeping Pills give eat_sleepiness = 2.668, which has a 1,000 multiplier in the actor_status_sleep.script, so that increased my sleepiness by 2,668. If my sleep was actually maxed out AS IT SHOULD BE, I should not be in sleepy status.

But instead, my sleep scale drops to 2 bars, and I go into 'gray' sleepiness.

---

I've double-checked all my mod overwrites and my patches. Everything appears to be correct (mods I'm using that affect these files is limited to:

- Arszi's Radiation
- Food Drug Drink animations
- A patch for both of these + immersive sleep.
(This patch is nothing more the ui_sleep_dialog.script with the radiation limit removed, and it's at the end of my load order)

- Hunger/Thirst/Sleep UI (only touches actor_status_sleep)

So something appears to be very wrong. I cannot actually sleep and regain much sleep at all.

Also:

printdbg("/ Sleep deprivation | Reduced sleepiness by sleeping: %s - old sleepiness level: %s", hours*(in_hour/2), last_sleep)

Where does this show up? I'm not really an expert at STALKER, but it never shows up in my xray_xxxxxx.log.

At the end of the day, I'm not getting my full sleep recovery and I've isolated every reason on my end why that could be. Maybe this is by design, but it begs the question why the "maximum wakefulness" would be hard-limited to around the 2000 unit mark. Why isn't it designed with 0 being the maximum wakefulness, and then scale the sleepiness increment from there?

Reply Good karma Bad karma+2 votes
saturnit3
saturnit3

try this out
Moddb.com
also use mod organizer 2, frostbite

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

FrostbiteReaper
FrostbiteReaper

Love this mod but I'm getting a CTD when trying to talk to Sidorovich:

Expression : <no expression>
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: ....a.l.k.e.r. anomaly\gamedata\scripts\ui_inventory.script:1682: attempt to call field 'get_sleep_blur_4' (a nil value)

stack trace:

Reply Good karma Bad karma+1 vote
Uranium-235
Uranium-235

Probably because somewhere in your mod load order, something overwrote actor_status_sleep.script

It's missing the following lines:

function get_sleep_blur_4()
return start_blur_4 or 0
end

Reply Good karma Bad karma+1 vote
FrostbiteReaper
FrostbiteReaper

Thank you! I'm new to Stalker modding so this is all unfamiliar grounds for me.

Reply Good karma Bad karma+1 vote
Uranium-235
Uranium-235

Get Notepad++ and then install this plugin:

Sourceforge.net

You can easily make your own patches by comparing overwritten files and combining the changes together.

Reply Good karma Bad karma+1 vote
FrostbiteReaper
FrostbiteReaper

Awesome dude, thanks!

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Harald_ino
Harald_ino

I have a problem with the mod and Hunger, thirst, sleepiness bars.

The maximum the sleep bar can reach is 4/6 after that I am not able to sleep anymore so my sleep status never gets full. On top of that it seems pretty weird that I have to sleep for ~16hours with 1/6 bars to get to 4/6 and be into the grey indicator pretty quick again.

Reply Good karma Bad karma+2 votes
aorushome
aorushome

Thanks! Very underrated addon. Good addition, to stop sleep abuse.

Reply Good karma Bad karma+1 vote
StalkerAnomalyPlayer
StalkerAnomalyPlayer

Does this make it so I can't sleep if I'm radiated?

Reply Good karma Bad karma+1 vote
SniperHellscream
SniperHellscream

when reading the comments it seems that they all have the same problem, does anyone know if I could update it? or if there is any way to fix the problem?

Reply Good karma Bad karma+1 vote
aorushome
aorushome

Yes, to cut it short it is the script: actor_status_sleep.script

The sleep value you get from sleeping gets divided by 2 (I DONT KNOW WHY) when you sleep. Check the line 170 something, it says:

last_sleep = last_sleep and math.ceil(last_sleep - hours*((in_hour or 510)/2)) or 0 -- Default 1400

There is the "problem", the amount you should regain by sleeping gets divided by 2 (like I said, I dont know why..)

Just remove the /2 and edit the )). Like this for example:

last_sleep = last_sleep and math.ceil(last_sleep - hours*(in_hour or 510)) or 0 -- Default 1400

Im not 100% sure about this, but it seems to be working for me, just tested it.

Reply Good karma Bad karma+2 votes
Skoowy
Skoowy

hey, did you find any issues with this fix?

Reply Good karma Bad karma+1 vote
aorushome
aorushome

Hey, I didn't. The sleep works well and you regain a reasonable amount. There are no problems so far.

Reply Good karma Bad karma+1 vote
djogloc
djogloc

I do not know what I did wrong but it doesn't seem to be working just righ:

1: It seems my character get tired too quickly, like I can rest 9 hours but still have a little bit of sleepiness

2: Even when not tired, the message "I don't need sleep" doesn't appear on the screen and I can sleep fine just like in vanilla

3: My character can wake early or late (too many times this happen actually, all were using beds indoors) but sometimes can sleep none at all

Reply Good karma Bad karma+1 vote
Guest
Guest

There is a mod called Bodily needs and Sleep, grab that one, then get the patch between it and this one, and then go on MCM and edit the amount of sleep you want per day.

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.