RimWorld

RimWorld

Misc. MAI
Bug report (music)
Here is the error log from mod "visual exception"

Exception in Verse.Root_Play.Update: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.MusicManagerPlay+<>c__DisplayClass36_0.<AppropriateNow>b__0 (Verse.Pawn p) [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
at RimWorld.MusicManagerPlay.AppropriateNow (Verse.SongDef song) [0x00094] in <99518a644a3e4a7ea3fde566568df84a>:0
at RimWorld.MusicManagerPlay.<ChooseNextSong>b__35_0 (Verse.SongDef song) [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Verse.GenCollection.RandomElementByWeight[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector) [0x00115] in <99518a644a3e4a7ea3fde566568df84a>:0
at RimWorld.MusicManagerPlay.ChooseNextSong () [0x00099] in <99518a644a3e4a7ea3fde566568df84a>:0
at RimWorld.MusicManagerPlay.StartNewSong () [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
at RimWorld.MusicManagerPlay.MusicUpdate () [0x0045c] in <99518a644a3e4a7ea3fde566568df84a>:0
- transpiler PerformanceOptimizer.Main: IEnumerable`1 PerformanceOptimizer.Optimization_FasterGetCompReplacement:Transpiler(IEnumerable`1 instructions, MethodBase method)
at Verse.Root_Play.Update () [0x00044] in <99518a644a3e4a7ea3fde566568df84a>:0
- transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
< >
Showing 1-2 of 2 comments
Exception while recalculating EnvironmentCold thought state for pawn AI 1: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.ThoughtWorker_Cold.CurrentStateInternal (Verse.Pawn p) [0x00057] in <99518a644a3e4a7ea3fde566568df84a>:0
at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
at (wrapper dynamic-method) RimWorld.SituationalThoughtHandler.RimWorld.SituationalThoughtHandler.TryCreateThought_Patch1(RimWorld.SituationalThoughtHandler,RimWorld.ThoughtDef)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) RimWorld.SituationalThoughtHandler:RimWorld.SituationalThoughtHandler.TryCreateThought_Patch1 (RimWorld.SituationalThoughtHandler,RimWorld.ThoughtDef)
RimWorld.SituationalThoughtHandler:CheckRecalculateMoodThoughts ()
RimWorld.SituationalThoughtHandler:AppendMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
No_Laggy_Bed.HarmonyPatch_ThoughtHandler_GetAllMoodThoughts:Prefix (RimWorld.ThoughtHandler,System.Collections.Generic.List`1<RimWorld.Thought>&)
(wrapper dynamic-method) RimWorld.ThoughtHandler:RimWorld.ThoughtHandler.GetAllMoodThoughts_Patch1 (RimWorld.ThoughtHandler,System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.Alert_Thought:get_AffectedPawns ()
RimWorld.Alert_Thought:GetReport ()
RimWorld.Alert:Recalculate ()
(wrapper dynamic-method) RimWorld.AlertsReadout:RimWorld.AlertsReadout.CheckAddOrRemoveAlert_Patch1 (RimWorld.AlertsReadout,RimWorld.Alert,bool)
(wrapper dynamic-method) RimWorld.AlertsReadout:RimWorld.AlertsReadout.AlertsReadoutUpdate_Patch0 (RimWorld.AlertsReadout)
(wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootUpdate_Patch1 (RimWorld.UIRoot_Play)
(wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)
work only with harmony,core,royalty,hugslib,misccore:

Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.MusicManagerPlay+<>c__DisplayClass36_0.<AppropriateNow>b__0 (Verse.Pawn p) [0x00000] in <edd783c914df484aa4e04093991f266d>:0
at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <edd783c914df484aa4e04093991f266d>:0
at RimWorld.MusicManagerPlay.AppropriateNow (Verse.SongDef song) [0x00094] in <edd783c914df484aa4e04093991f266d>:0
at RimWorld.MusicManagerPlay.<ChooseNextSong>b__35_0 (Verse.SongDef song) [0x00000] in <edd783c914df484aa4e04093991f266d>:0
at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Verse.GenCollection.RandomElementByWeight[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector) [0x00115] in <edd783c914df484aa4e04093991f266d>:0
at RimWorld.MusicManagerPlay.ChooseNextSong () [0x00099] in <edd783c914df484aa4e04093991f266d>:0
at RimWorld.MusicManagerPlay.StartNewSong () [0x00000] in <edd783c914df484aa4e04093991f266d>:0
at RimWorld.MusicManagerPlay.MusicUpdate () [0x003d8] in <edd783c914df484aa4e04093991f266d>:0
at Verse.Root_Play.Update () [0x00037] in <edd783c914df484aa4e04093991f266d>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Root_Play:Update ()
< >
Showing 1-2 of 2 comments
Per page: 1530 50