RimWorld

RimWorld

Rumours And Deception
Madzombie10 26 Dec, 2016 @ 4:14am
Bug
https://gist.github.com/HugsLibRecordKeeper/e0fa3911dbbb42c60c74aba9210cd388 i was getting this error when i started a colony only started when someone told lies to another colonist.



Exception ticking Ida: System.NullReferenceException: Object reference not set to an instance of an object
at RomanceDiversified.SexualityUtilities.GetAdultSocialContext (Verse.Pawn p) [0x00000] in <filename unknown>:0
at RomanceDiversified.Detours._Pawn_RelationsTracker.SecondaryRomanceChanceFactor (RimWorld.Pawn_RelationsTracker _this, Verse.Pawn otherPawn) [0x00000] in <filename unknown>:0
at RomanceDiversified.Detours._InteractionWorker_RomanceAttempt.RandomSelectionWeight (RimWorld.InteractionWorker_RomanceAttempt _this, Verse.Pawn initiator, Verse.Pawn recipient) [0x00000] in <filename unknown>:0
at RimWorld.Pawn_InteractionsTracker+<TryInteractRandomly>c__AnonStorey2F4.<>m__2BC (RimWorld.InteractionDef x) [0x00000] in <filename unknown>:0
at Verse.GenCollection.TryRandomElementByWeight[InteractionDef] (IEnumerable`1 source, System.Func`2 weightSelector, RimWorld.InteractionDef& result) [0x00000] in <filename unknown>:0
at RimWorld.Pawn_InteractionsTracker.TryInteractRandomly () [0x00000] in <filename unknown>:0
at RimWorld.Pawn_InteractionsTracker.InteractionsTrackerTick () [0x00000] in <filename unknown>:0
at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
at Verse.TickList.Tick () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:Update()
Verse.Root_Play:Update()
Last edited by Madzombie10; 26 Dec, 2016 @ 4:15am
< >
Showing 1-13 of 13 comments
SeveralPuffins  [developer] 26 Dec, 2016 @ 7:21am 
Hi! Thanks for that. I think it's a Romance Diversified rather than a Rumours and Deception problem, but I just updated both with something that should fix it. Let me know if the problem persists!
Madzombie10 26 Dec, 2016 @ 7:38am 
Thanks will do when i can,can't at the moment got a bad sore stomach. But i will let you know either way :)
Last edited by Madzombie10; 26 Dec, 2016 @ 7:39am
SeveralPuffins  [developer] 26 Dec, 2016 @ 7:41am 
Oh no! Christmas food overload? Look after yourself!
Madzombie10 26 Dec, 2016 @ 9:52pm 
I still get that error.

I've checked my colonist social, Good relationships seems to be causing it.





Exception ticking Ida: System.NullReferenceException: Object reference not set to an instance of an object
at RomanceDiversified.SexualityUtilities.GetAdultSocialContext (Verse.Pawn p) [0x00000] in <filename unknown>:0
at RomanceDiversified.Detours._Pawn_RelationsTracker.SecondaryRomanceChanceFactor (RimWorld.Pawn_RelationsTracker _this, Verse.Pawn otherPawn) [0x00000] in <filename unknown>:0
at RomanceDiversified.Detours._InteractionWorker_RomanceAttempt.RandomSelectionWeight (RimWorld.InteractionWorker_RomanceAttempt _this, Verse.Pawn initiator, Verse.Pawn recipient) [0x00000] in <filename unknown>:0
at RimWorld.Pawn_InteractionsTracker+<TryInteractRandomly>c__AnonStorey2F4.<>m__2BC (RimWorld.InteractionDef x) [0x00000] in <filename unknown>:0
at Verse.GenCollection.TryRandomElementByWeight[InteractionDef] (IEnumerable`1 source, System.Func`2 weightSelector, RimWorld.InteractionDef& result) [0x00000] in <filename unknown>:0
at RimWorld.Pawn_InteractionsTracker.TryInteractRandomly () [0x00000] in <filename unknown>:0
at RimWorld.Pawn_InteractionsTracker.InteractionsTrackerTick () [0x00000] in <filename unknown>:0
at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
at Verse.TickList.Tick () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:Update()
Verse.Root_Play:Update()
Madzombie10 26 Dec, 2016 @ 9:57pm 
Im able to save though. This might be something too? I'm not sure.




Object with load ID Thing_Human213024 is referenced (xml node name: pawn) but is not deep-saved. This will cause errors during loading.
Verse.Log:Warning(String)
Verse.DebugLoadIDsSavingErrorsChecker:CheckForErrorsAndClear()
Verse.Scribe:FinalizeWriting()
Verse.SafeSaver:DoSave(String, String, Action)
Verse.SafeSaver:Save(String, String, Action)
Verse.GameDataSaveLoader:SaveGame(String)
RimWorld.<DoFileInteraction>c__AnonStorey380:<>m__4B2()
Verse.LongEventHandler:UpdateCurrentSynchronousEvent(Boolean&)
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Play:Update()
Last edited by Madzombie10; 26 Dec, 2016 @ 10:07pm
SeveralPuffins  [developer] 27 Dec, 2016 @ 3:19pm 
Hi! In both cases the error traces to the Romance Diversified routine "GetAdultSocialContext".

Do all of your colonists have adult backstories? The latest version of Romance DOES error check for this, but the problem that log reports tells me that SOMETHING is missing there, and it's the only thing I can think of.
Madzombie10 27 Dec, 2016 @ 10:50pm 
I made one of my colonist a adult with a backstory and i dont seem to be getting any errors now. I'll let you know if anymore happen :) Thanks for the help
SeveralPuffins  [developer] 28 Dec, 2016 @ 12:02am 
Ahh! Glad to help, and thank you for letting me know about this!
Madzombie10 28 Dec, 2016 @ 12:07am 
No problem i'll let you know of any more bugs related to these mods. There fricken awesome!
Madzombie10 28 Dec, 2016 @ 12:17am 
Also i was wondering do you know if the psychology mod conflicts with this mod and or the other one?
Madzombie10 28 Dec, 2016 @ 12:21am 
I just added psychology into my game i got these errors

EDIT: i just removed psychology from the mod list and no more errors are popping up.

[HugsLib] Exception during DoDetours: System.Exception: Failed to detour method InteractionWorker_RomanceAttempt.RandomSelectionWeight to _InteractionWorker_RomanceAttempt._RandomSelectionWeight (assembly: Psychology) ---> System.Exception: RimWorld.InteractionWorker_RomanceAttempt.RandomSelectionWeight was already detoured to Psychology.Detour._InteractionWorker_RomanceAttempt._RandomSelectionWeight.
at HugsLib.Source.Detour.DetourProvider.CompatibleDetourWithExceptions (System.Reflection.MethodInfo source, System.Reflection.MethodInfo destination) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.HandleDetour (HugsLib.Source.Detour.DetourMethodAttribute sourceAttribute, System.Reflection.MethodInfo targetInfo) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at HugsLib.Source.Detour.DetourProvider.ThrowClearerDetourException (System.Exception e, System.Reflection.MemberInfo sourceInfo, System.Reflection.MemberInfo targetInfo, System.String detourMode) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.HandleDetour (HugsLib.Source.Detour.DetourMethodAttribute sourceAttribute, System.Reflection.MethodInfo targetInfo) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.DoDetours () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
HugsLib.Source.Detour.Helpers:DoDetours()
HugsLib.HugsLibController:ApplyNewDetours()
HugsLib.HugsLibController:LoadReloadInitialize()
HugsLib.HugsLibController:OnDefReloadDetected()
HugsLib.Core.DefReloadWatcher:<Update>b__0()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()

[HugsLib] Exception during DoDetours: System.Exception: Failed to detour method PawnGenerator.GenerateTraits to _PawnGenerator._GenerateTraits (assembly: Psychology) ---> System.Exception: Verse.PawnGenerator.GenerateTraits was already detoured to Psychology.Detour._PawnGenerator._GenerateTraits.
at HugsLib.Source.Detour.DetourProvider.CompatibleDetourWithExceptions (System.Reflection.MethodInfo source, System.Reflection.MethodInfo destination) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.HandleDetour (HugsLib.Source.Detour.DetourMethodAttribute sourceAttribute, System.Reflection.MethodInfo targetInfo) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at HugsLib.Source.Detour.DetourProvider.ThrowClearerDetourException (System.Exception e, System.Reflection.MemberInfo sourceInfo, System.Reflection.MemberInfo targetInfo, System.String detourMode) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.HandleDetour (HugsLib.Source.Detour.DetourMethodAttribute sourceAttribute, System.Reflection.MethodInfo targetInfo) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.DoDetours () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
HugsLib.Source.Detour.Helpers:DoDetours()
HugsLib.HugsLibController:ApplyNewDetours()
HugsLib.HugsLibController:LoadReloadInitialize()
HugsLib.HugsLibController:OnDefReloadDetected()
HugsLib.Core.DefReloadWatcher:<Update>b__0()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()


[HugsLib] Exception during DoDetours: System.Exception: Failed to detour method Pawn_RelationsTracker.SecondaryRomanceChanceFactor to _Pawn_RelationsTracker._SecondaryRomanceChanceFactor (assembly: Psychology) ---> System.Exception: RimWorld.Pawn_RelationsTracker.SecondaryRomanceChanceFactor was already detoured to Psychology.Detour._Pawn_RelationsTracker._SecondaryRomanceChanceFactor.
at HugsLib.Source.Detour.DetourProvider.CompatibleDetourWithExceptions (System.Reflection.MethodInfo source, System.Reflection.MethodInfo destination) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.HandleDetour (HugsLib.Source.Detour.DetourMethodAttribute sourceAttribute, System.Reflection.MethodInfo targetInfo) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at HugsLib.Source.Detour.DetourProvider.ThrowClearerDetourException (System.Exception e, System.Reflection.MemberInfo sourceInfo, System.Reflection.MemberInfo targetInfo, System.String detourMode) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.HandleDetour (HugsLib.Source.Detour.DetourMethodAttribute sourceAttribute, System.Reflection.MethodInfo targetInfo) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.DoDetours () [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
HugsLib.Source.Detour.Helpers:DoDetours()
HugsLib.HugsLibController:ApplyNewDetours()
HugsLib.HugsLibController:LoadReloadInitialize()
HugsLib.HugsLibController:OnDefReloadDetected()
HugsLib.Core.DefReloadWatcher:<Update>b__0()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()


Last edited by Madzombie10; 28 Dec, 2016 @ 12:25am
SeveralPuffins  [developer] 28 Dec, 2016 @ 12:30am 
Yeah, Psychology and Romance are competing for a rewrite of the same functions (Making colonists, and how colonists work out attraction). How it worked before was that the one listed lowest down would win, but I'd have to ask the author of HugsLib what happens now.

Here it looks like Romance is winning, but I might be wrong. If it is, Psychology traits like Pluviophile or Anxiety should work fine, but things like Lecher won't have an effect.
Madzombie10 28 Dec, 2016 @ 12:31am 
Oh okay didn't know that hahaha.
< >
Showing 1-13 of 13 comments
Per page: 1530 50