RimWorld

RimWorld

Niilo's QoL
AerosAtar 29 Mar, 2024 @ 7:22am
Error on accepting Refugee quest
Got a random error when accepting a refugee quest, and the pawns failed to spawn (making completion either impossible or stupidly easy - I will have to wait and see). Since this is in the stack trace, I figured I would let you know:

Error while processing a quest signal: System.NullReferenceException: Object reference not set to an instance of an object at NQualityOfLife.Utils.Get.Pawn_.Skills+AverageOf.AssignedTo (Verse.Map map, Verse.WorkTypeDef workType, RimWorld.SkillDef skill, Verse.Pawn ignorePawn) [0x00069] in <15eb2fef2e9942b6a4f435b0da9acced>:0 at NQualityOfLife.WorkSetter.PawnIsAboveAverageAtWorkRelatedSkill (Verse.Pawn pawn, Verse.WorkTypeDef work, RimWorld.SkillDef skill) [0x0005a] in <15eb2fef2e9942b6a4f435b0da9acced>:0 at NQualityOfLife.WorkSetter.EnableWorkIfAboveAverageSkill (Verse.Pawn pawn, Verse.WorkTypeDef work, RimWorld.SkillDef skill) [0x00000] in <15eb2fef2e9942b6a4f435b0da9acced>:0 at NQualityOfLife.WorkSetter.SmartWorkPrioritySetter (Verse.Pawn pawn) [0x000de] in <15eb2fef2e9942b6a4f435b0da9acced>:0 at NQualityOfLife.NQoL_Recruit_Patch_On_Faction_Change.Postfix (Verse.Pawn __instance, RimWorld.Faction newFaction, Verse.Pawn recruiter) [0x0001a] in <15eb2fef2e9942b6a4f435b0da9acced>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Verse.Pawn.SetFaction_Patch1(Verse.Pawn,RimWorld.Faction,Verse.Pawn) at RimWorld.QuestPart_PawnsArrive.Notify_QuestSignalReceived (RimWorld.Signal signal) [0x000a8] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.Quest.Notify_SignalReceived (RimWorld.Signal signal) [0x000b4] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.SignalManager.SendSignal (RimWorld.Signal signal) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.Quest.Initiate () [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.Quest.Accept (Verse.Pawn by) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.MainTabWindow_Quests.AcceptQuestByInterface (System.Action preAcceptAction, System.Boolean requiresAccepter) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.MainTabWindow_Quests.DoRewards (UnityEngine.Rect innerRect, System.Single& curY) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.MainTabWindow_Quests.DoSelectedQuestInfo (UnityEngine.Rect rect) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at RimWorld.MainTabWindow_Quests.DoWindowContents (UnityEngine.Rect rect) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00000] in <ade265c6622f40838b31c11cef15d9fe>:0 at UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) [0x00000] in <83a6362a90a344f1831389f7137844c4>:0
< >
Showing 1-4 of 4 comments
nikos  [developer] 30 Mar, 2024 @ 2:56am 
Thanks for letting me know!

For now, disable the smart work priorities setting to prevent further errors.
I will fix this issue for the next update
nikos  [developer] 30 Mar, 2024 @ 5:18am 
Im having trouble reproducing the error, can you provide more details?
such as:
- mod list,
- how many active maps you had when the error occured
- was this in 1.4 or 1.5
- did the error occur when you accepted the quest, or before
- does it happen every time on that type of quest or only sometimes

either way, im going to keep trying to reproduce the error, and try to implement safety measures to ensure that pawn generation never breaks
AerosAtar 30 Mar, 2024 @ 5:44am 
- Mod list: https://rentry.co/6or5uumv
- One one active map.
- 1.5Unstable. Sorry, thought I had mentioned that. :lunar2019shockedpig:
- The error occurred when it attempted to spawn the refugees immediately after accepting the quest, and I've only had one quest of that type generate so unsure if it is something that happens every time.
nikos  [developer] 30 Mar, 2024 @ 7:02am 
i think i managed to fix the error, not 100% sure, but i improved the safety checks on the code, and did multiple tests, so even if its not fully fixed, i for sure fixed some issues. the fixes will be applied in the next mod update, witch will be 1.6.0, sometime soon

again thanks for the report!
and if you get this or any other error again, let me know and i will look into it!
< >
Showing 1-4 of 4 comments
Per page: 1530 50