RimWorld

RimWorld

praedari Aug 22, 2021 @ 9:19am
Pawn Bio tab throwing error, resulting in blank Bio tab
Two of my pawns are throwing errors on their bio tab resulting in an error message in the small box where the info as to what the pawns are up to is, and a blank bio tab. I've looked through the logs and found this error for one of them:

System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.GetInspectString_Patch1(Verse.Pawn)
at RimWorld.InspectPaneFiller.DrawInspectStringFor (Verse.ISelectable sel, UnityEngine.Rect rect)



Verse.Pawn.Verse.Pawn.GetInspectString_Patch1 was patched by:
POST:
AchtungMod.Pawn_GetInspectString_Patch.Postfix


Seperately, this is another error that seems to be connected to the main error.



Exception filling tab RimWorld.ITab_Pawn_Social: System.NullReferenceException: Object reference not set to an instance of an object
at Verse.Grammar.GrammarUtility+<RulesForPawn>d__1.MoveNext ()
at System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext ()
at System.Collections.Generic.List`1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable`1[T] collection)
at System.Collections.Generic.List`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] collection)
at Verse.GenText.AdjustedFor (System.String text, Verse.Pawn p, System.String pawnSymbol, System.Boolean addRelationInfoSymbol)
at Verse.TaggedString.AdjustedFor (Verse.Pawn p, System.String pawnSymbol, System.Boolean addRelationInfoSymbol)
at RimWorld.PawnRelationUtility.TryAppendRelationsWithColonistsInfo (Verse.TaggedString& text, Verse.TaggedString& title, Verse.Pawn pawn)
at RimWorld.PawnRelationUtility.TryAppendRelationsWithColonistsInfo (Verse.TaggedString& text, Verse.Pawn pawn)
at (wrapper dynamic-method) Verse.Grammar.GrammarUtility.Verse.Grammar.GrammarUtility.RulesForPawn_Patch1(string,Verse.Pawn,System.Collections.Generic.Dictionary`2<string, string>,bool,bool)
at Verse.PlayLogEntry_Interaction.ToGameStringFromPOV_Worker (Verse.Thing pov, System.Boolean forceLog)
at Verse.LogEntry.ToGameStringFromPOV (Verse.Thing pov, System.Boolean forceLog)
at RimWorld.InteractionCardUtility.DrawInteractionsLog (UnityEngine.Rect rect, Verse.Pawn pawn, System.Collections.Generic.List`1[T] entries, System.Int32 maxEntries)
at RimWorld.SocialCardUtility.DrawSocialCard (UnityEngine.Rect rect, Verse.Pawn pawn)
at RimWorld.ITab_Pawn_Social.FillTab ()
at Verse.InspectTabBase+<>c__DisplayClass14_0. <DoTabGUI>b__0 ()



Verse.Grammar.GrammarUtility.Verse.Grammar.GrammarUtility.RulesForPawn_Patch1 was patched by:
POST:
AlienRace.HarmonyPatches.RulesForPawnPostfix

Here is a link to modlist and errors:

https://gist.github.com/16b6579258df7d0beaa3066742f744b3
Last edited by praedari; Aug 23, 2021 @ 7:43pm
< >
Showing 1-15 of 19 comments
ᖇIᑎ Aug 22, 2021 @ 9:44am 
If you have Hugslib, CTRL + F12 will generate a log that includes modlist and errors.
praedari Aug 23, 2021 @ 7:43pm 
Originally posted by Stariali:
If you have Hugslib, CTRL + F12 will generate a log that includes modlist and errors.

I added a link with that information to the bottom of the post. Thank you!
ᖇIᑎ Aug 23, 2021 @ 8:13pm 
What race are the pawns that are causing the error? Try unsubscribing from HAR, make sure the folder got deleted, then resubscribe. If the pawns are from another race mod, do the same; unsub, delete folder, resub.
praedari Aug 25, 2021 @ 5:06pm 
Originally posted by Stariali:
What race are the pawns that are causing the error? Try unsubscribing from HAR, make sure the folder got deleted, then resubscribe. If the pawns are from another race mod, do the same; unsub, delete folder, resub.

Thanks for the advice. How do I verify that the folder was deleted? I went to Local Files and checked out the Mods folder, but it's empty aside from a document labelled "place mods here".
ᖇIᑎ Aug 25, 2021 @ 5:29pm 
C:\Program Files (x86)\Steam\steamapps\workshop\content\294100
praedari Aug 25, 2021 @ 6:12pm 
Originally posted by Stariali:
C:\Program Files (x86)\Steam\steamapps\workshop\content\294100

I did as you recommended and it's still throwing the error. Both pawns are normal humans.
ᖇIᑎ Aug 25, 2021 @ 6:32pm 
If it's not HAR, it might be Psychology. If it's not Psychology; clear the debug log, then click on a pawn's bio so the error is on the log, and generate a new log.
praedari Aug 26, 2021 @ 1:12pm 
Originally posted by Stariali:
If it's not HAR, it might be Psychology. If it's not Psychology; clear the debug log, then click on a pawn's bio so the error is on the log, and generate a new log.

Did as you recommended, Psychology isn't it. How do I clear the debug log? Delete all the mod config files?
ᖇIᑎ Aug 26, 2021 @ 1:35pm 
No, if you have dev mode enabled, open up the debug log button (first one up top), click the clear button. Then click on the pawn's bio again and see what errors come up. Then CTRL + F12 to generate a log with that info.
praedari Aug 27, 2021 @ 8:55pm 
Originally posted by Stariali:
No, if you have dev mode enabled, open up the debug log button (first one up top), click the clear button. Then click on the pawn's bio again and see what errors come up. Then CTRL + F12 to generate a log with that info.

https://gist.github.com/c8f62f3ab515f593d7413195b04ac9bf
ᖇIᑎ Aug 27, 2021 @ 9:55pm 
I'm still not seeing the error you posted on the first post. The other errors seemed to be caused by CE and/or Rimsenal? <Apparel_TacArmor>, which I think is from Rimsenal but I'm not sure. Are your pawns wearing this armor by chance? There are also errors being thrown by Vanilla Expanded - Royalty Patches, which might be a mod conflict or bad download.

GetInspectString exception on Sonoda: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.GetInspectString_Patch1(Verse.Pawn) at RimWorld.InspectPaneFiller.DrawInspectStringFor (Verse.ISelectable sel, UnityEngine.Rect rect) [0x00000] in <d243303f714d4dc48680ccaecd2f594e>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
I'm guessing Sonoda is one of the pawns whose bio is broken. If it's not the 'Apparel_TacArmor', or whatever it's called, causing the problem, it could be a trait or another piece of apparel from a mod that's conflicting with something else.

If taking off the broken apparel, trait, hair, could be anything/etc. (which you can try to remove with Character Editor) doesn't fix the issue, then there's nothing that can be done unless you fix your mod load order and/or remove whatever mods are conflicting.
praedari Aug 28, 2021 @ 11:46am 
Sonoda is wearing the armor but Piotr, the other pawn with an error, isn't. I removed all their apparel and removed their traits, but nothing. However, every time I pulled them up in Character Editor in game, I would get a continuous log thrown that would end up causing the log list to cap out. I noticed that for some reason, Piotr and Sonoda's backstories are completely unavailable to edit in Character Editor, which makes me think that it might be a backstory that's causing the error to be thrown.

I suspect that because I am unable to edit the backstories and thus test my theory that that's the issue in character editor like I'm able to with the other pawns, that the save is effectively broken and I'll have to redo a new colony. I'm going to save the pawns in Character Editor, make note of what the backstories are by loading them onto a test colony before the errors occur, and avoid using them.

Outside of that, what can I do to try and find out what's causing the mod conflicts in the first place? Below is a link to the boot error log; would that be helpful?

Thank you so much for your time and assistance.

https://gist.github.com/802bc285f12e323b4584e0b4b1c3489b
praedari Aug 28, 2021 @ 11:49am 
Oddly, cloning the pawn resulted in a fully functional individual with no errors.
ᖇIᑎ Aug 28, 2021 @ 12:35pm 
Was the cloned pawn fully clothed, with all traits, nothing changed? Or was it a clean clone? Does the clone have relations/opinions of other colonists? And was this clone in the same colony or a new colony?

Unfortunately, if the conflicting mods don't throw errors on game boot, you won't know there's a conflict until something breaks and then you can try troubleshooting by enabling/disabling mods in batches until you narrow down one of the culprits.

One way of narrowing down what mods might be causing errors is to generate a Hugslib log since it will list all patches. Using the error on the first post as an example, the error mentions GrammarUtility. Doing a search on the Hugslib log will show that GrammarUtility is being used by one mod.
GrammarUtility.RulesForPawn: post: AlienRace.HarmonyPatches.RulesForPawnPostfix
WIth 'AlienRace' being HAR. Further down the same error mentions the SocialCardUtility. With another search, you can see that's being patched by Hospitality. The same error also mentions a few other utilities. You can generally use that to narrow down all mods that might be causing the error. Some errors mention the mods involved, too, which makes it easier to troubleshoot.
praedari Aug 28, 2021 @ 1:18pm 
Cloned pawns were an identical copies, complete with clothing, inventory, traits, relationships, everything. Clones are in the same colony. I have yet to see either of the clones throw an error.

Thanks so much for your time and advice. I'll keep that in mind when trying to resolve errors in the future. I'll post here when I reload the game to see if an error is thrown upon restart.
< >
Showing 1-15 of 19 comments
Per page: 1530 50

Date Posted: Aug 22, 2021 @ 9:19am
Posts: 19