RimWorld

RimWorld

Vanilla Factions Expanded - Empire
SCV就绪 Jun 11, 2024 @ 7:07am
Error reporting
When the trading team of the original faction appeared, the following error occurred crazily
Exception while ticking lord with job RimWorld.LordJob_TradeWithColony:
System.NullReferenceException: Object reference not set to an instance of an object
[Ref E792295E]
at RimWorld.LordJob_TradeWithColony+<>c__DisplayClass7_0.<CreateGraph>b__0 (Verse.AI.Group.TriggerSignal s) [0x00009] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Trigger_Custom.ActivateOn (Verse.AI.Group.Lord lord, Verse.AI.Group.TriggerSignal signal) [0x00000] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Transition.CheckSignal (Verse.AI.Group.Lord lord, Verse.AI.Group.TriggerSignal signal) [0x00013] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Lord.CheckTransitionOnSignal (Verse.AI.Group.TriggerSignal signal) [0x0005f] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX VFEEmpire.Mod: Void VFEEmpire.HarmonyPatches.Patch_Lords:CheckTransitionOnSignal_Postfix(Lord __instance, TriggerSignal signal)
at Verse.AI.Group.Lord.LordTick () [0x000bb] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.LordManager.LordManagerTick () [0x00014] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Group.LordManager.LordManagerTick_Patch0 (Verse.AI.Group.LordManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Map.MapPostTick_Patch0 (Verse.Map)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)





Exception while ticking lord with job RimWorld.LordJob_TradeWithColony:
System.NullReferenceException: Object reference not set to an instance of an object
[Ref E792295E] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Group.LordManager.LordManagerTick_Patch0 (Verse.AI.Group.LordManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Map.MapPostTick_Patch0 (Verse.Map)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)
< >
Showing 1-10 of 10 comments
JoeOwnage Jun 20, 2024 @ 11:01pm 
I think same here:

Exception in Verse.AI.Group.LordManager.LordManagerTick: System.NullReferenceException: Object reference not set to an instance of an object
[Ref E792295E]
at RimWorld.LordJob_TradeWithColony+<>c__DisplayClass7_0.<CreateGraph>b__0 (Verse.AI.Group.TriggerSignal s) [0x00009] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Trigger_Custom.ActivateOn (Verse.AI.Group.Lord lord, Verse.AI.Group.TriggerSignal signal) [0x00000] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Transition.CheckSignal (Verse.AI.Group.Lord lord, Verse.AI.Group.TriggerSignal signal) [0x00013] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Lord.CheckTransitionOnSignal (Verse.AI.Group.TriggerSignal signal) [0x0005f] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX VFEEmpire.Mod: Void VFEEmpire.HarmonyPatches.Patch_Lords:CheckTransitionOnSignal_Postfix(Lord __instance, TriggerSignal signal)
at Verse.AI.Group.Lord.LordTick () [0x000bb] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.LordManager.LordManagerTick () [0x00014] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
Advocated Edict Jul 15, 2024 @ 2:57am 
A google search suggests that it's the mod "Real Faction Guests(Continued)" that's causing the error. If disabling that doesn't solve it, I don't know what can help you, I've had the same issue too.
Xplorer Aug 1, 2024 @ 3:22pm 
did you manage to figure out what was causing this problem it has started popping up for me when a caravan entered my territory.

Originally posted by SCV就绪:
When the trading team of the original faction appeared, the following error occurred crazily
Exception while ticking lord with job RimWorld.LordJob_TradeWithColony:
System.NullReferenceException: Object reference not set to an instance of an object
[Ref E792295E]
at RimWorld.LordJob_TradeWithColony+<>c__DisplayClass7_0.<CreateGraph>b__0 (Verse.AI.Group.TriggerSignal s) [0x00009] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Trigger_Custom.ActivateOn (Verse.AI.Group.Lord lord, Verse.AI.Group.TriggerSignal signal) [0x00000] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Transition.CheckSignal (Verse.AI.Group.Lord lord, Verse.AI.Group.TriggerSignal signal) [0x00013] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.Lord.CheckTransitionOnSignal (Verse.AI.Group.TriggerSignal signal) [0x0005f] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX VFEEmpire.Mod: Void VFEEmpire.HarmonyPatches.Patch_Lords:CheckTransitionOnSignal_Postfix(Lord __instance, TriggerSignal signal)
at Verse.AI.Group.Lord.LordTick () [0x000bb] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.AI.Group.LordManager.LordManagerTick () [0x00014] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Group.LordManager.LordManagerTick_Patch0 (Verse.AI.Group.LordManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Map.MapPostTick_Patch0 (Verse.Map)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)





Exception while ticking lord with job RimWorld.LordJob_TradeWithColony:
System.NullReferenceException: Object reference not set to an instance of an object
[Ref E792295E] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Group.LordManager.LordManagerTick_Patch0 (Verse.AI.Group.LordManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Map.MapPostTick_Patch0 (Verse.Map)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)
Jpeg Aug 5, 2024 @ 6:43pm 
Originally posted by Advocated Edict:
A google search suggests that it's the mod "Real Faction Guests(Continued)" that's causing the error. If disabling that doesn't solve it, I don't know what can help you, I've had the same issue too.
how did you determine that from google?
Elwee Aug 24, 2024 @ 8:34am 
I'm still having the issue despite removing "Real Faction Guests(Continued)" and starting a new game. Some caravans triggers the infinite "Exception while ticking lord".

Did you manage to fix the error ?
123nick Sep 17, 2024 @ 3:34pm 
im ALSO getting this error, with real faction guests.

Heres my hugs log: https://gist.github.com/HugsLibRecordKeeper/318cfa395b3ba3987e6883dc13b6dae7

And my mod list:

https://rentry.co/hr8z35dz
FaPaThY Jan 27 @ 10:57am 
I just had this problem and the fix was to edit the save file.

Search for "LordJob_TradeWithColony" and delete the entire <li> ... </li> section it's located in.

In my case, the cause was some pack animals of a trader caravan not exiting the map with the rest properly.
Elwee Feb 3 @ 11:58am 
Originally posted by FaPaThY:
I just had this problem and the fix was to edit the save file.

Search for "LordJob_TradeWithColony" and delete the entire <li> ... </li> section it's located in.

In my case, the cause was some pack animals of a trader caravan not exiting the map with the rest properly.

The error reappeared for me, i tried to do as you say but watching my savefile i could not figure the <li> ... </li> section your talking about. Tried to delete some but sadly didn't work and destroyed the save.

I really want to know which mods are the roots of this error.
FaPaThY Feb 3 @ 5:02pm 
Originally posted by Elwee:
The error reappeared for me, i tried to do as you say but watching my savefile i could not figure the <li> ... </li> section your talking about. Tried to delete some but sadly didn't work and destroyed the save.

I really want to know which mods are the roots of this error.

Use Notepad+ if you aren't already, makes it easier to see the formatting for where the first <li> and closing </li> are. And of course, backup the save first.

Here's an example of what to delete. If I get the error again, I'll replace it with the actual section, but it should look similar.

Under this part:
<lordManager>
<lords>

There'll be a bunch of sections that look like below. Basically, each section is some event like a raid, visitors, trade caravan, etc. Just delete the whole section with the bugged lordJob class in it(ie.'LordJob_TradeWithColony') and reload the save.
<li> <faction>Faction_93</faction> <extraForbiddenThings /> <ownedPawns> <li>Thing_AM_Daggersnout92352</li> </ownedPawns> <ownedBuildings /> <ownedCorpses /> <lordJob Class="LordJob_AssaultColony"> <assaulterFaction>Faction_93</assaulterFaction> <canKidnap>False</canKidnap> <canTimeoutOrFlee>False</canTimeoutOrFlee> <canSteal>False</canSteal> </lordJob> <ticksInToil>7811125</ticksInToil> <numPawnsEverGained>1</numPawnsEverGained> <initialColonyHealthTotal>400</initialColonyHealthTotal> <questTags IsNull="True" /> <lordToilData> <keys> <li>1</li> </keys> <values> <li Class="LordToilData_ExitMap"> <locomotion>Jog</locomotion> <interruptCurrentJob>True</interruptCurrentJob> </li> </values> </lordToilData> <triggerData> <keys /> <values /> </triggerData> <curLordToilIdx>0</curLordToilIdx> </li>
Last edited by FaPaThY; Feb 8 @ 4:39pm
Elwee Feb 9 @ 8:42am 
Originally posted by FaPaThY:
Originally posted by Elwee:
The error reappeared for me, i tried to do as you say but watching my savefile i could not figure the <li> ... </li> section your talking about. Tried to delete some but sadly didn't work and destroyed the save.

I really want to know which mods are the roots of this error.

Use Notepad+ if you aren't already, makes it easier to see the formatting for where the first <li> and closing </li> are. And of course, backup the save first.

Here's an example of what to delete. If I get the error again, I'll replace it with the actual section, but it should look similar.

Under this part:
<lordManager>
<lords>

There'll be a bunch of sections that look like below. Basically, each section is some event like a raid, visitors, trade caravan, etc. Just delete the whole section with the bugged lordJob class in it(ie.'LordJob_TradeWithColony') and reload the save.
<li> <faction>Faction_93</faction> <extraForbiddenThings /> <ownedPawns> <li>Thing_AM_Daggersnout92352</li> </ownedPawns> <ownedBuildings /> <ownedCorpses /> <lordJob Class="LordJob_AssaultColony"> <assaulterFaction>Faction_93</assaulterFaction> <canKidnap>False</canKidnap> <canTimeoutOrFlee>False</canTimeoutOrFlee> <canSteal>False</canSteal> </lordJob> <ticksInToil>7811125</ticksInToil> <numPawnsEverGained>1</numPawnsEverGained> <initialColonyHealthTotal>400</initialColonyHealthTotal> <questTags IsNull="True" /> <lordToilData> <keys> <li>1</li> </keys> <values> <li Class="LordToilData_ExitMap"> <locomotion>Jog</locomotion> <interruptCurrentJob>True</interruptCurrentJob> </li> </values> </lordToilData> <triggerData> <keys /> <values /> </triggerData> <curLordToilIdx>0</curLordToilIdx> </li>



This seem to work fine. Thank you very much.

May your next colony have some legendary human leather armchair.
< >
Showing 1-10 of 10 comments
Per page: 1530 50