RimWorld

RimWorld

dande48 Aug 30, 2020 @ 10:27am
Bug: Psychic Harmonizer broke all colonist moods
I'm having trouble. After my last run, 20+ hours, I noticed that all mood effects were gone from one of my colonists. A moment later, all but one colonists had their moods removed. Reloading, even the most distant auto save doesn't fix it.

Looking at the debug menu, I see the culprit pop up as an error, with the blank being one of my colonists, and x,y,z being their coordinates: "Exception ticking _____ (at (x,y,z)): System.NullReferenceException: Object reference not set to an instance of an object at Rimworld.Thought PsychicHarmonizer.get ShouldDiscard() [0x00000] in <...>:0

I had one of my colonists set up with a Psychic Harmonizer, which was working fine. I tried removing it from the colonist, I used debugger to delete that Psychic harmonizer. No luck.

Any thoughts on how to fix this?
< >
Showing 1-7 of 7 comments
dande48 Aug 30, 2020 @ 10:56am 
Fixed. I believe it is an issue with removing the psychic harmonizer from a colonist (and possibly placing it in another). If you come across this, or a similar bug, here's what I did to solve it:
-Open up the save file in your favorite text editor (Notepad would do).
-Search for all "Class=Thought_PsychicHarmonizer", or the offending thought. Delete everything between the <li> and </li> brackets. Should be something like this:

<li Class="Thought_PsychicHarmonizer">
<def>PsychicHarmonization</def>
<otherPawn>null</otherPawn>
<age>310650</age>
<harmonizer>null</harmonizer>
</li>

I had about 12 instances of this. Removing them solved the bug.
Bear Dec 30, 2020 @ 3:16pm 
Yes, this bug caused my prisoners to unload RimHUD mod and I had to do exactly what you said to fix that. thanks. I would have never figured this out. I didn't even have any psychic harmonizers at all, never saw one all game yet these prisoners all had thoughts about them that were null.
:happy: May 14, 2021 @ 11:05am 
Man,you just saved my +150 hours save.

Thank you SO MUCH
Joule Thief Jun 23, 2021 @ 1:45pm 
Thanks for posting this. One of my colonist's needs were all blank and causing exceptions constantly in the debug log, but this workaround fixed it for me.
Svartsot Aug 28, 2021 @ 9:44am 
Still an active bug in 1.3, but that resolved it for me aswell
Johnny Cassino Dec 22, 2022 @ 6:29pm 
This is absolutely fantastic i lvoe you
CHUCK NORRIS Nov 19, 2023 @ 4:46pm 
Originally posted by dande48:
Fixed. I believe it is an issue with removing the psychic harmonizer from a colonist (and possibly placing it in another). If you come across this, or a similar bug, here's what I did to solve it:
-Open up the save file in your favorite text editor (Notepad would do).
-Search for all "Class=Thought_PsychicHarmonizer", or the offending thought. Delete everything between the <li> and </li> brackets. Should be something like this:

<li Class="Thought_PsychicHarmonizer">
<def>PsychicHarmonization</def>
<otherPawn>null</otherPawn>
<age>310650</age>
<harmonizer>null</harmonizer>
</li>

I had about 12 instances of this. Removing them solved the bug.


Just wanted to chime in in case others encounter this issue to say that I encountered this same thing in my 1.4 save (with all DLC installed and a bunch of mods, of course :p) and this worked for me. Just make sure you search:

Class="Thought_PsychicHarmonizer" and NOT "Class=Thought_PsychicHarmonizer"
(Notice where the quotes are).

I was about to give up on this 50 hour save, so thank you so much for posting this.
Last edited by CHUCK NORRIS; Nov 19, 2023 @ 4:48pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Aug 30, 2020 @ 10:27am
Posts: 7