Modifies ironman mode to include (half of the) time spent sleeping when determining when to grant a new life. Tested on Anomaly 1.5.1.
Sleeping Ironman - Anomaly 1.5.1
Modifies ironman mode to include time spent sleeping when determining when to grant a new life. Files included in the mod allows you to choose whether you want to count all of the time spent sleeping or only half of it, although customizing the factor to suit your needs is almost trivial.
Installation
ZIP archive contains two folders:
- Sleeping Ironman - Half Sleep which counts only half of the time spent sleeping, e.g. if you get a new life every 24 hours, staying awake for 12 hours and sleeping for additional 12 will count as 18 hours in game.
- Sleeping Ironman - Full Sleep which counts all of the time spent sleeping, e.g. if you get a new life every 24 hours, staying awake for 12 hours and sleeping for additional 12 will grant you new life.
JSGME:
Copy one of the aforementioned folders to your "MODS" folder and enable it through JSGME.
Manual:
Copy the contents of one of the aforementioned folders to your gamedata folder.
Feedback
Would love to hear your feedback on the "feel" of the game. The Half Sleep variant still keeps the original feel and tension, but offers another chance after a rare slip up or just bad luck.
Related mods:
Screenshot
Haven´t tested it yet but I like the idea, I play IM with WG cause it adds tension, but let´s face it, when you´re down to one life and you´ve made it to a safe location you´re probably gonna visit some traders in Rostok instead of going to Radar if you catch my drift. Does sleep count as time soften up IM with WG even further? Certainly, but in a good way, at least to me.
Hey, thanks for the comment!
I feel the same way, and restarting IM runs every few IRL days kinda gets annoying. If you do end up trying the mod, I recommend the Half Sleep variant, I've played only that one and still had to restart few times, but it lets me progress a bit further every time.
Nice! Was investigating how to do this myself.
Will test it out and see how it goes.
Other idea I had to not take away too much of the challenge.
- Ensure sleeping can only happen when tired (or use sleeping pills).
- Energy drinks makes you "buzzed" disabling sleep until worn off, maybe use sleeping pills to counter.
Let me know how it went. :P
Those two are actually very interesting ideas, they would prvent just sleeping your way to a new life which is now kinda doable. Really like the added complexity. Not sure if Anomaly has sleeping pills though, if not making one is above my pay grade for the time being I think.
Mod working great as expected :)
Managed to get the sleep functionality working. Basically blocking sleep when the sleep status isn't at Gray.
Needs to be tested, however, as I can often go a full game day without getting to the grey sleep indicator.
The 'sleepiness' increment and decrement works well for existing medications or food. Caffeine for example reducing sleepiness. Sleeping pills are already in the game known as '027 R pills'.
Here you go:
Moddb.com
That's awesome, it really complements this mod beautifully! I've highlighted it in the description.
Any chance you could make a version which doesn't change the Ironman state text in the PDA?
Hi, you can remove the following files before the installation:
gamedata/scripts/ui_pda_encyclopedia_tab.script
gamedata/configs/text/eng/ui_st_encyclopedia.xml
It will work fine, but won't change the PDA entry.
This is incredibly nice to have. I wish Ironman granted a bit more flexibility to combat BS deaths in what is still... a mod. Pulse anomaly "just happen" to spawn over you; random chimera spawn kills you without warning upon entering the truck graveyard; step into an electro anomaly with misplaced visual queues after clearing the CNPP? Get yourself a life back with this mod. THANK YOU!
Indeed, a lot of things happen in the game, some of it not fair to the player. For me personally, life gets in the way of playing, and having to replay 60+ hours of the game just because of random ******** is total BS.
Any idea why having this installed would cause the game to delete my savefile on death even when I have lives left?
No idea, this script just includes sleeping time when calculating when to give out new life, it doesn't do anything else. It seems to me like this is either a conflict with another mod you've got installed or a bug in the Anomaly mod itself.
I eventually got a good gun and an exosuit and have too many lives now. The thrill of getting to 1 life left just isnt there anymore. Is there a way to turn off the effect, removing the files didn't do it. What would I have to edit in the script to change the behavior? would it be possible to add a toggle for MCM in the future?
Removing the files should do it, but here's the alternative way you can get the original behaviour:
1. open gamedata/scripts/gamemode_ironman.script,
2. find the line containing expression `local true_hrs = hours - MDATA.sleep_hrs/2`, it should be line 27,
3. alter it to `local true_hrs = hours - MDATA.sleep_hrs`.
This should revert it to the original behaviour where it does not include time spent asleep when it calculates whether to give out new life.
hey i hope this isnt bother you but
how can i increase the half speed hours from 12 to lets say 18 hours or more instead?
Hello, I didn't see the comment right away, but here it goes.
Edit gamemode_ironman.script in Half Sleep, find line 27 and then edit the calculation. The line contains:
local true_hrs = hours - MDATA.sleep_hrs/2
in short, it means that the time spent awake will be counted as hours spent awake minus half of those spent asleep. If you're awake for 12 hours, and asleep for 12, it will come out as 18 hours awake. In that case, hours = 12, MDATA.sleep_hrs = 12, so 12 (hours) - MDATA.sleep_hours (12) / 2 = 12 + 6 = 18.
If you want sleeping to count less, you can change the line to
local true_hrs = hours - MDATA.sleep_hrs/4
Each hour of sleep will count as 25 minutes awake, so 4 hours sleeping for 1 hours awake.
Hello dear Modcreator,
a really quick question: I can´t tell if it was always there but since Anomaly 1.5.2., it says something like ( sleeping does not count or won´t help ). Does this feature make this Addon of yours from now on useless, when it clearly says that sleeping won´t do the trick anymore??
Just asking. . .
Hi, that label was there at least since version 1.5.0. This mod modifies that behaviour so that sleep does matter. I didn't remove that label so it doesn't conflict with other mods which change the file that label is in.