I've stumbled upon this error while trying to use GlitterTech mod, but it seems that other modders have same problem, so I believe it deserves place in this forum, as it might be some bug in game itself.
Reproduction sequence with GlitterTech mod:
1) Only Core + Glitter Tech
2) Create world, crashlanding, pick location
3) Research Microelectronics (e.g. via dev menu).
4) Build solar panel, Comm Console
5) Try to use Comm Console.
Following exception appears in the log (and no menu appears on screen, making Console unusable):
I've played around with defs and this seems to be Faction-related, not Trader related: removing FactionDefs/PawnKindDefs results in no error.
However my attempts to find what exactly in defs lead to the error did not give any clue in a reasonable time.
Could someone with access to code/decompiler look up what exactly happens in Building_CommsConsole.cs:126 ?
Reproduction sequence with GlitterTech mod:
1) Only Core + Glitter Tech
2) Create world, crashlanding, pick location
3) Research Microelectronics (e.g. via dev menu).
4) Build solar panel, Comm Console
5) Try to use Comm Console.
Following exception appears in the log (and no menu appears on screen, making Console unusable):
Code Select
NullReferenceException: Object reference not set to an instance of an object
at RimWorld.Building_CommsConsole.GetFloatMenuOptions (Verse.Pawn myPawn) [0x002d8] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\Thing\Building\Various\Building_CommsConsole.cs:126
at RimWorld.FloatMenuMakerMap.AddHumanlikeOrders (Vector3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1 opts) [0x018f0] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\FloatMenuMakerMap.cs:751
at RimWorld.FloatMenuMakerMap.ChoicesAtFor (Vector3 clickPos, Verse.Pawn pawn) [0x0006c] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\FloatMenuMakerMap.cs:74
at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x0004e] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\FloatMenuMakerMap.cs:34
at RimWorld.Selector.HandleMapClicks () [0x000b2] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\Inspect\Selector.cs:155
at RimWorld.Selector.SelectorOnGUI () [0x00000] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\Inspect\Selector.cs:111
at RimWorld.MapInterface.HandleLowPriorityInput () [0x00021] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MapInterface.cs:154
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x001a9] in C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\UIRoot_Play.cs:119
at Verse.Root.OnGUI () [0x0003f] in C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root.cs:148
I've played around with defs and this seems to be Faction-related, not Trader related: removing FactionDefs/PawnKindDefs results in no error.
However my attempts to find what exactly in defs lead to the error did not give any clue in a reasonable time.
Could someone with access to code/decompiler look up what exactly happens in Building_CommsConsole.cs:126 ?