RimWorld

RimWorld

The Division Gadgets
Soulbite 18 Apr, 2023 @ 4:30pm
Possible bug between VFE: Empire and this :(
Really liking the idea and implementation of this mod but...
Thinking there might be some sort of incompatibility between this and VFE: Empire unfortunately, as the Striker Drone Nodes seem to spawn hundreds of the drones each with a full 3/3 load and spam error log with exceptions.

Exception ticking Projectile_InstaStriker766284 (at (141, 0, 131)): System.NullReferenceException: Object reference not set to an instance of an object
at VFEEmpire.TerrorismWorker+<>c.<AppliesTo>b__0_0 (Verse.Pawn p) [0x0000b] in <191dbf52e1714cc0a4f95d4779513cbc>: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 <3cca3e6203e64b109fd8ce21f7120d03>:0
at VFEEmpire.TerrorismWorker.AppliesTo (Verse.AI.Group.Lord parent) [0x00031] in <191dbf52e1714cc0a4f95d4779513cbc>:0
at VFEEmpire.MapComponent_Terrorism+<>c__DisplayClass5_0.<Notify_LordCreated>b__0 (VFEEmpire.TerrorismTypeDef def) [0x00006] in <191dbf52e1714cc0a4f95d4779513cbc>:0
at System.Linq.Enumerable+WhereListIterator`1[TSource].ToList () [0x00017] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Verse.GenCollection.TryRandomElement[T] (System.Collections.Generic.IEnumerable`1[T] source, T& result) [0x00029] in <3cca3e6203e64b109fd8ce21f7120d03>:0
at VFEEmpire.MapComponent_Terrorism.Notify_LordCreated (Verse.AI.Group.Lord lord) [0x00024] in <191dbf52e1714cc0a4f95d4779513cbc>:0
at VFEEmpire.HarmonyPatches.Patch_Lords.MakeNewLord_Postfix (Verse.Map map, Verse.AI.Group.Lord __result) [0x00010] in <191dbf52e1714cc0a4f95d4779513cbc>:0
at (wrapper dynamic-method) Verse.AI.Group.LordMaker.Verse.AI.Group.LordMaker.MakeNewLord_Patch1(RimWorld.Faction,Verse.AI.Group.LordJob,Verse.Map,System.Collections.Generic.IEnumerable`1<Verse.Pawn>)
at TheDivisionGadgets.Projectile_Pawn.CreateNewLord (Verse.Thing byThing, System.Boolean aggressive, System.Single defendRadius, System.Type lordJobType) [0x00098] in <ccb5d469c84d41d882a611c22ed6ae5e>:0
at TheDivisionGadgets.Projectile_Pawn.Impact (Verse.Thing hitThing, System.Boolean blockedByShield) [0x000e2] in <ccb5d469c84d41d882a611c22ed6ae5e>:0
at TheDivisionGadgets.Projectile_InstaPawn.Tick () [0x00008] in <ccb5d469c84d41d882a611c22ed6ae5e>:0
at Verse.TickList.Tick () [0x0015c] in <3cca3e6203e64b109fd8ce21f7120d03>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch9 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)