Description

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.

Preview
Sleeping Ironman
Comments
PossuM
PossuM

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.

Reply Good karma Bad karma+3 votes
doom8890 Author
doom8890

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.

Reply Good karma+1 vote
tkcrits
tkcrits

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.

Reply Good karma Bad karma+2 votes
doom8890 Author
doom8890

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.

Reply Good karma+2 votes
tkcrits
tkcrits

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

Reply Good karma Bad karma+2 votes
doom8890 Author
doom8890

That's awesome, it really complements this mod beautifully! I've highlighted it in the description.

Reply Good karma+1 vote
Guest
Guest

Any chance you could make a version which doesn't change the Ironman state text in the PDA?

Reply Good karma Bad karma0 votes
doom8890 Author
doom8890

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.

Reply Good karma+1 vote
Guest
Guest

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!

Reply Good karma Bad karma0 votes
doom8890 Author
doom8890

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.

Reply Good karma+1 vote
Guest
Guest

Any idea why having this installed would cause the game to delete my savefile on death even when I have lives left?

Reply Good karma Bad karma0 votes
doom8890 Author
doom8890

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.

Reply Good karma+1 vote
Fingler
Fingler

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?

Reply Good karma Bad karma+1 vote
doom8890 Author
doom8890

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.

Reply Good karma+1 vote
sollessbadguyggacc
sollessbadguyggacc

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?

Reply Good karma Bad karma+1 vote
doom8890 Author
doom8890

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.

Reply Good 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.