RimWorld

RimWorld

Rim of Madness - Vampires
Gerrymon Aug 1, 2022 @ 2:40am
Psycaster vampires won't meditate?
Is it normal, or mod incompatibility? It happened with or without Vanilla Psycasts Expanded, normal pawns can meditate like normal but my vamp won't even try interacting with the meditation spot (0 psyfocus, multiple correct spot type).
< >
Showing 1-10 of 10 comments
lorddragonus Aug 1, 2022 @ 8:04am 
I too am having this problem. I don't see anything in the log pertaining to it. Heavily modded, but this started happening before VPE.
chillshill Aug 1, 2022 @ 1:16pm 
same - just wanted to have vampire psycasts with the new vanilla expanded psycasts :)
Dean Aug 2, 2022 @ 4:40am 
Can confirm, I'm also having this issue. I'm not even using vanilla expanded psycasts, and the weirdest part is I had a level 2 vampire psycaster that was working fine on a save up until the June update.
Last edited by Dean; Aug 2, 2022 @ 4:41am
Gerrymon Aug 2, 2022 @ 4:53am 
So I took a peek on the discord server in hope of finding a solution, and turned out someone has reported this as a bug on 30th June, along their analysis:
Originally posted by Jon:
This is a bit amusing for me in particular, but, I've found that it seems like I can't get a Vampire to meditate for any reason once again. With just Vanilla loaded, the DLCs, and nothing else but Harmony, JecsTools and Vampires, you can use Dev Mode to test this by just setting any Pawn to meditate and they'll do it just fine, but as soon as you give them Vampirism they just stop doing so even after you set their schedule to nothing but meditation.

Actually, having looked at the code again for what it is now, I see the problem. In the HarmonyPatches_Fixes.cs file, and in the VampCanMeditateNow method, the main issue is that instead of returning after it is found a Vampire can meditate, it sets the boolean value _result to true (Line 72) but doesn't return at this point, which causes it to continue on to the next lines below that which then sets _result back to false immediately after. Thus resulting in Vampires being entirely unable to meditate. You also want to make sure that at least line 65 also returns, to prevent the same issue of the pawn shouldn't meditate, but it continues on to say they should.

Looking at the history to this file though makes it look like somewhere along the line this was copied over from compiled dll code, given all the original code when the file was first made and the flags and checks. It looks like the update 14 days ago tried to clean this up, but as a result, removed those proper returns that were required. I'd highly recommend that you have a look at the Vanilla CanMeditateNow() method, or I could even just send the code I wrote over a year ago to patch this issue (which was basically just copied and slightly edited CanMeditateNow), and either of these could help fix this easy as just pasting in my old fix code for VampCanMeditateNow fixed it all. I hope this all helps!

So that's that if anyone's wondering what's going on, and why there's no red error in the log.
Last edited by Gerrymon; Aug 2, 2022 @ 4:59am
dalekood Aug 11, 2022 @ 4:52am 
they're working on a fix. the beta i was given works but once i added my other mods it didn't so we'll have to wait and see
mattdanw Aug 18, 2022 @ 12:09pm 
Is anyone else still having this problem, even after the patch on the 11th Aug v1.27?
Gerrymon Aug 19, 2022 @ 9:49am 
Originally posted by mattdanw:
Is anyone else still having this problem, even after the patch on the 11th Aug v1.27?

Mine is fixed after the update. Though I noticed if you got RJW and hypersexuality trait, that pawn can't normally meditate and must re-gain psyfocus only by sex. It's the RJW problem though.
Last edited by Gerrymon; Aug 19, 2022 @ 9:50am
lorddragonus Aug 22, 2022 @ 11:50am 
@mattdanw

I had an issue after the patch. Turned out to be Tabula Rasa (formerly [O21] toolbox) Nothing I did fixed it except removing that. Turns out I wasn't using the library for any of my current mods, so I could just pull it out.

Once it was out, vamps would meditate as usual, including with the new VPE mod.
mattdanw Aug 23, 2022 @ 10:32am 
Ah, I've got a couple of mods that use Tabula Rasa as dependencies.
Balthazad Jul 5, 2023 @ 5:30am 
https://steamcommunity.com/sharedfiles/filedetails/?id=2232740898&searchtext=meditate


^find the updated version of this hotfix and your issue is gone^
< >
Showing 1-10 of 10 comments
Per page: 1530 50