RimWorld

RimWorld

Archotech+
Bebop Cola 2 Jun, 2021 @ 10:46am
Archotech Cortex disables need for sleep
Not able to comment on the mod as I own the game via a different source, but I'm using the mod and I very much like it.

That said, it appears that even level one of the archotech cortex disables the rest need for Pawns entirely. While this is fine in terms of pawn productivity, this means they miss out on some buffs, and interferes greatly with other mods like Children, School, and Learning.

Specifically:
1. If the Pawns never go to sleep, they don't go to bed.
2. If they don't go to bed, they don't get any loving
3. If they don't get any loving, they don't get pregnant.

Is it possible that the Cortex can include a hard limit that requires they sleep at least a couple hours a day?

EDIT: Just looked at the code, and it appears that this is working as intended. I can easily enough comment that out in my personal copy of the mod, but maybe a decent alternative might be a big boost to the Rest Fall rate similar to the Circadian Assistant?
Last edited by Bebop Cola; 2 Jun, 2021 @ 10:58am
< >
Showing 1-8 of 8 comments
Mezz  [developer] 2 Jun, 2021 @ 11:52pm 
As you said, there are two ways of going about the rest rate.

1)Disabling the need for sleep entirely.

2)Changing the rest fall rate.

I've considered either options but thought the first option was easier to implement and makes the pawn not need a bed.

I don't, and have ever used the mod, [Children, School, and Learning.] but I hear you out on the disadvantages of disabling the rest need. It has come to my attention that it could potentially cause problems with other mods in the future so I'm considering changing it to option #2 or, making the rest need static.

Stay tuned for updates.
Bebop Cola 3 Jun, 2021 @ 11:27am 
If it helps at all, the rest fall rate is coded as:
<restFallFactorOffset>xxxxxx</restFallFactorOffset>

Also, it has to come just outside the statOffsets block of code. If it's inside that block, then it not only doesn't work, but generates an error in-game when you hover over the implants for a pawn.

For Example:
<statOffsets> <GlobalLearningFactor>0.25</GlobalLearningFactor> <ResearchSpeed>0.25</ResearchSpeed> <MedicalTendQuality>0.10</MedicalTendQuality> <MedicalSurgerySuccessChance>0.10</MedicalSurgerySuccessChance> <MentalBreakThreshold>-0.05</MentalBreakThreshold> <PainShockThreshold>0.05</PainShockThreshold> </statOffsets> <restFallFactorOffset>-0.5</restFallFactorOffset>


I commented out the disables rest line, and experimented with a rest fall offset of -.5 for level 1 cortex, and -.7 for level 2. With a circadian assistant, that should total a 90% reduction. They effectively still didn't sleep, since their rest need fell so slowly, but the Rest need was present at that point so they theoretically would at some point, and any other affect that might theoretically impact on the rest need for pawns could still affect them.

The rest fall rate seems pretty powerful with regards to pawn behavior, so a light hand might be warranted. I ultimately removed the rest fall rate I was experimenting with and just went with the circadian assistant because the pawns just didn't sleep very often otherwise. A 20% reduction seems to keep them pretty active.
Last edited by Bebop Cola; 3 Jun, 2021 @ 11:34am
^7p^0o^1i 7 Jun, 2021 @ 11:27pm 
A toggle in mod settings would be nice. Using EPOE, half cycler+ai chip caps consciousness at 100% so this is a nice upgrade.

Alternatively if you're up for it you could remove the half cycler functionality from the cortex and add an additional item that removes the need for sleep and maybe some other effects too like reduced hunger rate.
Dragon Ignis 21 Jun, 2021 @ 2:26am 
Any1 who wants to disable the no sleep part of the cortex u can go into " steamapps\workshop\content\294100\2496279558\1.2\Defs\HediffDefs " or where you have the game open the " ArchotechPlus_Hediffs_BodyParts_Archotech.xml " file in notepad and remove the " <disablesNeed>Rest</disablesNeed> " some where in the middle of the document.
oh is this intended? I thought I was going freaking crazy
cy-one 1 Jul, 2021 @ 5:38am 
Originally posted by RisingStorm:
Any1 who wants to disable the no sleep part of the cortex u can go into " steamapps\workshop\content\294100\2496279558\1.2\Defs\HediffDefs " or where you have the game open the " ArchotechPlus_Hediffs_BodyParts_Archotech.xml " file in notepad and remove the " <disablesNeed>Rest</disablesNeed> " some where in the middle of the document.

♥♥♥♥♥♥♥♥♥ thanks :D I love the OPness of this mod, but I dislike the rest-disabledness.

Edit: Works! \o/
Last edited by cy-one; 1 Jul, 2021 @ 6:23am
Slaymeister 12 Aug, 2021 @ 3:00pm 
I came here looking for this. I'm doing a clan playthrough using Children, School, and Learning and this basically shut down clan growth. Thanks for the detail, I'll make a patch to remove the disablesneed for my copy.
Vintage 30 Oct, 2021 @ 4:05pm 
Working on this patch myself now, would be cool if it could be a setting.
< >
Showing 1-8 of 8 comments
Per page: 1530 50