RimWorld

RimWorld

Smart Meditation
52 Comments
pureMJ  [author] May 1 @ 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 May 1 @ 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] May 1 @ 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 May 1 @ 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 Oct 22, 2024 @ 1:55pm 
Thanks so much!
pureMJ  [author] Oct 21, 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 Oct 21, 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] Oct 20, 2024 @ 8:43am 
@HeatherAthebyne
Is Child psycaster a modded thing?
HeatherAthebyne Oct 20, 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 Oct 20, 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 ()
[...]
载入中... Aug 21, 2024 @ 3:34am 
在没有娱乐需求的小人身上会爆红字,建议加个判定
SoulDRoul Aug 10, 2024 @ 3:53am 
哦,可以在设置里改一下……如果有设定让单个小人不这么做就好了
SoulDRoul Aug 10, 2024 @ 3:52am 
而且似乎获得不了精神力就不会有娱乐值上升……?
SoulDRoul Aug 10, 2024 @ 3:50am 
有点问题,设置需求阈值为0还会不停地尝试冥想,问题是我那个不是通过普通冥想能获得精神的,这就很尴尬,对某些特殊情况不方便
下回合就睡 Aug 9, 2024 @ 11:31pm 
奴隶有灵能时会爆红,要关掉奴隶冥想
Muyu Jun 9, 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] Jun 9, 2024 @ 10:37am 
Updated to 1.5
去码头整点薯条 Apr 28, 2024 @ 9:54pm 
老铁,期待你的更新:steamhappy:
тетеря, блин Apr 22, 2024 @ 8:27am 
could someone confirm it does throw errors and really needs to be updated?
kuna Apr 15, 2024 @ 10:22pm 
Would love an update!
Kowhaifan Apr 14, 2024 @ 11:08pm 
1.5?
Delta7777777 Mar 3, 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 Nov 7, 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 Nov 7, 2023 @ 4:25pm 
is it possible to just split meditation from the solitary recreation?
Coolchilion Sep 28, 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] Sep 25, 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 Sep 15, 2023 @ 2:44pm 
I keep getting this error related to smart meditation
https://gist.github.com/HugsLibRecordKeeper/a7d3c5fadf85675932e07b187f0c83f7
pureMJ  [author] Aug 14, 2023 @ 2:33pm 
@Yoann

It should work fine with Common Sense.
Yoann Aug 14, 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 Feb 24, 2023 @ 6:22am 
Thanks for the mod! "Reset to default" button in the mod settings would be great)
pureMJ  [author] Feb 12, 2023 @ 9:35am 
@Pandruid
不是。这个Mod并不会改变无精神力的小人的行为。
Pandruid Feb 12, 2023 @ 8:39am 
没有精神力的小人不喜欢娱乐,不知道是不是这个MOD的缘故
Rlocks Dec 25, 2022 @ 6:28pm 
Thank you for this, I'm shocked it isn't in the vanilla game!
chch Dec 10, 2022 @ 10:26am 
请问能不能加一个在冥想时间表冥想至精神力满值后去工作或者娱乐的功能呢
renegade_sock Dec 3, 2022 @ 9:44pm 
Looks great, I'll try this now :)
shawyer Nov 24, 2022 @ 1:18pm 
Excellent mod, thanks!
VelxraTV Oct 30, 2022 @ 6:31pm 
Thank you!
Sir Rolin Oct 30, 2022 @ 5:41pm 
nice
pureMJ  [author] Oct 30, 2022 @ 1:15pm 
Updated to 1.4
VelxraTV Oct 21, 2022 @ 4:58pm 
Please update to 1.4
Sir Rolin Aug 4, 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 Jul 19, 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 May 8, 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] May 3, 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.
RedPine May 3, 2022 @ 10:41pm 
I suspect there's a bad interaction between this mod and "Gauranlen Meditation". With both mods enabled, my treelinked pawn refused to prune no matter how high I set the plant cutting priority, but with "Gauranlen Meditation" disabled he began pruning as normal.
exBeNN Apr 29, 2022 @ 7:44pm 
This mod is just what I needed. Thanks!
pureMJ  [author] Apr 28, 2022 @ 7:38pm 
@kamikadza
When setting it at 0, it becomes vanilla behavior (added explanation in tooltips).

And thanks a lot for the suggestion! I rearranged the mod settings page a little and changed English wording. Hopefully this time it becomes less confusing.
Prototyp_002 Apr 28, 2022 @ 10:34am 
Did not know boredom was a thing of receation needs, thanks.
I will look it up in my current playthrough to understand it better.
And propably use your mod if i understood the default behaviour more =)

Thanks for your time! =)
kamikadza13 Apr 28, 2022 @ 8:10am 
And maybe you need to change order at settings
EnoughFocusPercent and IgnoreToleranceWithMaxTargetFocus
to better understanding
kamikadza13 Apr 28, 2022 @ 8:07am 
Hey. If i change

Switch solitary joy activity to meditation with extra chance factor to 0
than chance to meditation will be like vanilla? Or just 0, and pawn will never do meditation for joy?