RimWorld

RimWorld

Dynamic Population
Error in 1.2, trying to use Population Intents in Debug Logging Menu.
Hello guys,

so I just followed the advice from author of this mod:

Originally posted by author:
If you want to verify whether the mod is simple, it's very simple. Go into Developer Mode and find the Debug Logging menu. There'll be a field there for 'PopulationIntentFactor' that should reflect the values you set in the mod :)

When I tried, I got this error in debug:

Exception filling window for Verse.Dialog_DebugOutputMenu: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.StorytellerUtilityPopulation.get_StorytellerDef () [0x00005] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.StorytellerUtilityPopulation+<>c.<PopulationIntents>b__13_2 (System.Single ds, System.Single p) [0x00000] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.DebugTables.MakeTablesDialog[TColumn,TRow] (System.Collections.Generic.IEnumerable`1[T] colValues, System.Func`2[T,TResult] colLabelFormatter, System.Collections.Generic.IEnumerable`1[T] rowValues, System.Func`2[T,TResult] rowLabelFormatter, System.Func`3[T1,T2,TResult] func, System.String tlLabel) [0x000cb] in <d72310b4d8f64d25aee502792b58549f>:0
at RimWorld.StorytellerUtilityPopulation.PopulationIntents () [0x00036] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Dialog_DebugOptionLister.DebugAction_NewTmp (System.String label, System.Action action, System.Boolean highlight) [0x0003f] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Dialog_DebugOutputMenu.DoListingItems () [0x00047] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Dialog_OptionLister.DoWindowContents (UnityEngine.Rect inRect) [0x00143] in <d72310b4d8f64d25aee502792b58549f>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <d72310b4d8f64d25aee502792b58549f>:0
Verse.Log:Error(String, Boolean)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

And this second error (do not know why should it be related to mouse?):

Mouse position stack is not empty. There were more calls to BeginScrollView than EndScrollView. Fixing.
Verse.Log:Error(String, Boolean)
Verse.Widgets:EnsureMousePositionStackEmpty()
Verse.Root:Verse.Root.Update_Patch1(Root)
Verse.Root_Entry:Update()

I run the game without any other mods than Harmony, Hugslib and Dynamic Population.

Any help appreciated.
Last edited by TrickyIVIan; 2 Jan, 2021 @ 6:25pm