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."
NOTE: This requires further testing.
Overall I believe the combination of mods listed below will make the experience more immersive. Now you will think twice about taking those caffeine tablets or energy drinks, in order to have enough stamina to drag all your loot out of the zone. And carrying a sleeping bag and bedspread could be crucial to ensure proper recovery for the next day of stalking. Risk vs reward :)
Standard for anomaly:
- Drinking caffeine reduces sleepiness which can cause you to stay up later than intended.
- Sleeping pills are available in the game already, which may be required to induce earlier sleep. Known as '027 R pills'.
Intended to be played with the following mods:
- Sleeping Ironman : by itself, was too easy to abuse sleep. Normal Ironman was a bit harsh, as I've lost many characters, not to mention the countless times dying from bugs.
- No drug limit : will be required to take multiple sleeping pills. I believe effects get overridden, but instant effects should add up from '027 R pills'.
- Dynamic Nocturnal Mutants : not being able to sleep will force you to be up at night while the terrors come crawling in towards your camp. I personally lowered the occurrence and the amounts in the waves.
Other recommended mods to add to the above:
Compatibility - the following files was modified:
- scripts > actor_status_sleep
- scripts > ui_sleep_dialog
- configs > text > eng > ui_st_screen
- configs > text > rus> ui_st_screen
Would recommend any other mods affecting ui_st_screen to be loaded after this mod.
Tested and implemented on Anomaly 1.5.1
Changelog
- 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]
- 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.
- 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.
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
Hey mate, I can´t get the addon to work. . . Once tried to go to bed and prompted with the ,, not tired enough to sleep ,, info it causes a bug for me, where I can no longer interact with any item. Adding on to that In combination with the "Food, drug and drinks animations - addon, the game comes to a complete halt, where after opened my backpack the whole inventory screen dissapears. . .
This comment is currently awaiting admin approval, join now to view.
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.
Good point, will play around with the values and see if I can get it more realistic.
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
Works perfectly, a must have.
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
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 :]
Good idea. Will look into it.
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.
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.
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 ;]
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!
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.
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.
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 :)
Gj :)
Is there a chance of a patch for Arzis Radiation overhaul?
RUS text encoding misstep in 1.2 ver.
I.imgur.com
Thanks for the heads up.
Updated using a different application.
thanks for the fix and thx for the realy nice addon.
Are there any plans to patch compatibility with the Arszis_Radiation_Overhaul mod?
After sleeping, seeing double, what is needed to prevent this from happening? Sleeping on a sleeping bag with a Bed spread?
and how to remove double vision after waking up?
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 ;[
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?
Posting over a year later to say I'm having the same problem :(
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.
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.
But does immersive Sleep still function then?
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?
try this out
Moddb.com
also use mod organizer 2, frostbite
This comment is currently awaiting admin approval, join now to view.
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:
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
Thank you! I'm new to Stalker modding so this is all unfamiliar grounds for me.
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.
Awesome dude, thanks!
This comment is currently awaiting admin approval, join now to view.
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.
Thanks! Very underrated addon. Good addition, to stop sleep abuse.
Does this make it so I can't sleep if I'm radiated?
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?
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.
hey, did you find any issues with this fix?
Hey, I didn't. The sleep works well and you regain a reasonable amount. There are no problems so far.
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
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.
Sleep simulator. Can't go 6 hours without sleeping, even after 10 hours of sleep with a sleeping bag and a bedroll. The game revolves around sleeping now and makes the game rushed to accomplish things before the dreaded yawn-yawn-yawn-yawn-loses vision.
Also caffeine and even hardcore stimulants do nothing to stave off this extreme narcolepsy. Zero effect.
Cool idea but apparently wasn't even tested.