RimWorld

RimWorld

Smart Meditation
58 Comments
Felnel 21 hours ago 
Coool, Thanks !!
pureMJ  [author] 22 hours ago 
Updated to 1.6
Scionin 23 hours ago 
1.6?
Felnel 14 Jul @ 7:17am 
1.6?
Turu 14 Jul @ 1:35am 
1.6 update?
Flesh Forge 31 May @ 2:56pm 
Was looking for something like this to fix that deadlock of colonists just meditating forever despite being 100% focus, thanks for this!
pureMJ  [author] 1 May @ 4:13pm 
@Warith_Magus
You can simply set the "chance factor" to 99 so it's 1% doing other types of solitary relaxation, effectively the same as banning them.

This mod does not just ban it because many people also prefer some variety of things their pawns can do.
Wraith_Magus 1 May @ 3:15pm 
I only set it up to 100% when I still saw my pawn preferring to do other solitary relaxation in spite of the mod even while psyfocus dropped to below 20% while set to a target of 50%, 62%, and higher. I didn't realize this mod had an options setting before now, though, and I'm surprised to see that it's even an option where you merely increase a probability to have non-meditation solitary relaxation. I thought banning all other solitary relaxation so that it isn't constantly at 90% boredom was the point? The only thing this mod did was make my pawn not meditate when she should have while wasting even more time on recreation she was going to gain from meditation anyway.
pureMJ  [author] 1 May @ 3:01pm 
@Wraith_Magus
When you set your character at target of 100% psyfocus it will ignore this mod. The problem you described is not related to the mod, but vanilla game.

If you want this mod to help you EVEN when you set the target focus at MAX, you can adjust the mod settings (uncheck "Do not treat tolerance as focus when Focus Target is set at Max")
Wraith_Magus 1 May @ 2:28pm 
I'm having a lot of trouble getting this mod to work as intended, and it's actively making the problem it's trying to solve worse. My psycaster character (artistic focus) now refuses to ever meditate unless she's at 100% recreation already. She will even go perform other solitary relaxation while bored of solitary relaxation before she will meditate, guaranteeing that solitary recreation is at 90% boredom at all times. This happens even when she's at 20% or so psyfocus and I set her to a target of 100% psyfocus. I can't force her to meditate unless I manually change her schedule to meditation. (Which I could do without this mod...)
HeatherAthebyne 22 Oct, 2024 @ 1:55pm 
Thanks so much!
pureMJ  [author] 21 Oct, 2024 @ 8:07pm 
@HeatherAthebyne
Thanks a LOT for the detailed minimalistic report :)
I have fixed it. Update to v0.3.1 of this MOD and it should be good now.
HeatherAthebyne 21 Oct, 2024 @ 6:19pm 
No, this can be reproduced with only Core, Royalty, Biotech, Harmony, and Smart Meditation. In dev mode spawn a child pawn, then give a psylink. Set target psyfocus higher than current psyfocus, and unpause.
pureMJ  [author] 20 Oct, 2024 @ 8:43am 
@HeatherAthebyne
Is Child psycaster a modded thing?
HeatherAthebyne 20 Oct, 2024 @ 8:08am 
Forgot to mention, the exception repeats as long as the child's psyfocus is under target, but stops when I set target to 0.
HeatherAthebyne 20 Oct, 2024 @ 8:05am 
I am getting an exception when I have a child psycaster whose psyfocus is lower than target. Schedule is set to anything. I think this is because children technically don't do recreation. Thank you for your time!

Exception in Verse.AI.ThinkNode_PrioritySorter GetPriority: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 22C87311]
at MjRimMods.SmartMeditation.MeditatePatch.Postfix (Verse.Pawn pawn, System.Single& __result) [0x0009a] in <dbd569bbf81243ea8e3237aa0eedf791>:0
at RimWorld.JobGiver_Meditate.GetPriority (Verse.Pawn pawn) [0x0010a] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
- POSTFIX PureMJ.MjRimMods.SmartMeditation: Void MjRimMods.SmartMeditation.MeditatePatch:Postfix(Pawn pawn, Single& __result)
at Verse.AI.ThinkNode_PrioritySorter.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x0006f] in <2259bac29f964e2a9e4a0c4805fcda8d>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
[...]
载入中... 21 Aug, 2024 @ 3:34am 
在没有娱乐需求的小人身上会爆红字,建议加个判定
SoulDRoul 10 Aug, 2024 @ 3:53am 
哦,可以在设置里改一下……如果有设定让单个小人不这么做就好了
SoulDRoul 10 Aug, 2024 @ 3:52am 
而且似乎获得不了精神力就不会有娱乐值上升……?
SoulDRoul 10 Aug, 2024 @ 3:50am 
有点问题,设置需求阈值为0还会不停地尝试冥想,问题是我那个不是通过普通冥想能获得精神的,这就很尴尬,对某些特殊情况不方便
下回合就睡 9 Aug, 2024 @ 11:31pm 
奴隶有灵能时会爆红,要关掉奴隶冥想
Muyu 9 Jun, 2024 @ 11:07am 
Woo! Have been waiting for this. Thank you.
Now my pawns will stop spending 99% of the day in front of a statue.
pureMJ  [author] 9 Jun, 2024 @ 10:37am 
Updated to 1.5
去码头整点薯条 28 Apr, 2024 @ 9:54pm 
老铁,期待你的更新:steamhappy:
тетеря, блин 22 Apr, 2024 @ 8:27am 
could someone confirm it does throw errors and really needs to be updated?
kuna 15 Apr, 2024 @ 10:22pm 
Would love an update!
Kowhaifan 14 Apr, 2024 @ 11:08pm 
1.5?
Delta7777777 3 Mar, 2024 @ 3:10pm 
I don't know if this issue is still relevant, but FileSeek helps me find things I am looking for no matter the game or mods.
-
Use 'FileSeek' to help you find the wording you are searching for.
>Patch1
You can tell it to search within the Mod folder structure specifically. Then it will scan all the files and list the results with system hyperlinks.
Good luck.
PanicOregon281 7 Nov, 2023 @ 9:43pm 
Got Unity level crash, Not sure if it'll be any help but i uploaded the crash captured by the UnityEngine crash handler. https://github.com/I2pRandom/Rimworld-Crash-Repo
PanicOregon281 7 Nov, 2023 @ 4:25pm 
is it possible to just split meditation from the solitary recreation?
Coolchilion 28 Sep, 2023 @ 7:58am 
I'm on the rimworld discord and we discussed the issue, I'll link the discussion here
https://discord.com/channels/214523379766525963/632790371256238120/1156966160416395325
pureMJ  [author] 25 Sep, 2023 @ 11:31am 
@Coolchilion
The stacktrace shows that it's called by:
GetPriority_Patch1
This is from some other Mod (with bad naming habit)

My mod has MeditatePatch but it should always be passed in a valid Pawn object (not null) by vanilla game. I think the error is probably from GetPriority_Patch1 .

Unfortunately because they didn't name their patch properly I can't tell what mod that is.
Coolchilion 15 Sep, 2023 @ 2:44pm 
I keep getting this error related to smart meditation
https://gist.github.com/HugsLibRecordKeeper/a7d3c5fadf85675932e07b187f0c83f7
pureMJ  [author] 14 Aug, 2023 @ 2:33pm 
@Yoann

It should work fine with Common Sense.
Yoann 14 Aug, 2023 @ 2:24pm 
Any conflict with Common Sense?
It has this setting:
"Pawns will meditate only as much as they need" ("Unless under meditation assignment, pawns will stop meditating if their psyfocus is full and they don't see meditation as a good source of joy (i. e. full or bored of it)")
hottt3 24 Feb, 2023 @ 6:22am 
Thanks for the mod! "Reset to default" button in the mod settings would be great)
pureMJ  [author] 12 Feb, 2023 @ 9:35am 
@Pandruid
不是。这个Mod并不会改变无精神力的小人的行为。
Pandruid 12 Feb, 2023 @ 8:39am 
没有精神力的小人不喜欢娱乐,不知道是不是这个MOD的缘故
Rlocks 25 Dec, 2022 @ 6:28pm 
Thank you for this, I'm shocked it isn't in the vanilla game!
chch 10 Dec, 2022 @ 10:26am 
请问能不能加一个在冥想时间表冥想至精神力满值后去工作或者娱乐的功能呢
renegade_sock 3 Dec, 2022 @ 9:44pm 
Looks great, I'll try this now :)
shawyer 24 Nov, 2022 @ 1:18pm 
Excellent mod, thanks!
VelxraTV 30 Oct, 2022 @ 6:31pm 
Thank you!
Sir Rolin 30 Oct, 2022 @ 5:41pm 
nice
pureMJ  [author] 30 Oct, 2022 @ 1:15pm 
Updated to 1.4
VelxraTV 21 Oct, 2022 @ 4:58pm 
Please update to 1.4
Sir Rolin 4 Aug, 2022 @ 5:01pm 
Hey MJ, Could a request an addition?

I have several meditation spots for different types of meditation, but when I assign a colonist to a spot, they'll just ignore it and use the closest one instead... I would love to see them actually prioritising their assigned spot instead.
Daemonjax 19 Jul, 2022 @ 1:01pm 
It's important to not force any meditation time on the psy colonist's schedule with this mod active, otherwise he'll over-meditate and be back to being bored with meditation.
VelxraTV 8 May, 2022 @ 4:47am 
The meditation feature has been needing a serious overhaul and your mod has helped a ton. I hope to see it continue to improve more in this area of the game.
pureMJ  [author] 3 May, 2022 @ 10:51pm 
@RedPine
This mod does not touch WorkGiver, so it's unrelated to the priority of plant cutting.

This mod modifies two cases:
* Get Joy (now conditionally favors meditate)
* Get focus by meditation (now will not do if too bored)

By its own the prunning is completely unrelated.