RimWorld

RimWorld

Vanilla Outposts Expanded
Don Leo 19 Jan, 2022 @ 6:14am
Can't artillery
Root level exception in OnGUI(): System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Average (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at VOE.TravellingArtilleryStrike.Fire (Outposts.Outpost from, RimWorld.Planet.GlobalTargetInfo to) [0x0006c] in <d5c7fdf47bd040a59c11be6b4194e515>:0
at VOE.Outpost_Artillery.Fire (RimWorld.Planet.GlobalTargetInfo target) [0x00017] in <d5c7fdf47bd040a59c11be6b4194e515>:0
at VOE.Outpost_Artillery+<>c__DisplayClass7_0.<GetGizmos>b__3 (Verse.LocalTargetInfo localTarget) [0x00019] in <d5c7fdf47bd040a59c11be6b4194e515>:0
at (wrapper dynamic-method) RimWorld.Targeter.RimWorld.Targeter.ProcessInputEvents_Patch1(RimWorld.Targeter)
at (wrapper dynamic-method) RimWorld.MapInterface.RimWorld.MapInterface.HandleMapClicks_Patch1(RimWorld.MapInterface)
at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch1(RimWorld.UIRoot_Play)
at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

I have a lot of mods. Trying to shoot artillery at a spot where mechanoid ship landed. It just errors and doesn't shoot. I only have one guy in the outpost tho
< >
Showing 1-1 of 1 comments
Don Leo 25 Jan, 2022 @ 6:51pm 
I figured it out!

My pawn in the artillery place had 0 shooting. I suggest adding an error message for idiots like me who make the calculation divide by zero
< >
Showing 1-1 of 1 comments
Per page: 1530 50