ArgumentOutOfRangeException in Village builder

Issue #8592 resolved
Rick Swan created an issue

Had a village zone fail to build and the log is full of this exception over and over

ERROR - exception running builder Village :System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d6232873609549b8a045fa15811a5bd3>:0
at Genkit.InfluenceMap.Recalculate (System.Boolean bDraw) [0x0024a] in <6e6d78e6308a48d59335475dce559e45>:0
at Genkit.InfluenceMap.AddSeed (System.Int32 x, System.Int32 y, System.Boolean bRecalculate) [0x0005e] in <6e6d78e6308a48d59335475dce559e45>:0
at Genkit.InfluenceMap.AddSeed (Genkit.Location2D P, System.Boolean bRecalculate) [0x0000d] in <6e6d78e6308a48d59335475dce559e45>:0
at Genkit.InfluenceMap.SeedAllUnseeded (System.Boolean bDraw, System.Boolean bRecalculate) [0x0003a] in <6e6d78e6308a48d59335475dce559e45>:0
at XRL.World.ZoneBuilders.Village.BuildZone (XRL.World.Zone Z) [0x00995] in <6e6d78e6308a48d59335475dce559e45>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d6232873609549b8a045fa15811a5bd3>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <d6232873609549b8a045fa15811a5bd3>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d6232873609549b8a045fa15811a5bd3>:0
at XRL.World.ZoneManager.ApplyBuilderToZone (XRL.World.ZoneBuilderBlueprint Builder, XRL.World.Zone NewZone) [0x000ca] in <6e6d78e6308a48d59335475dce559e45>:0

Comments (2)

  1. Armithaig

    New seeds for unreached areas (i.e. a completely walled in pocket) outside range of SeedGrowthProbability, just continue with normal behaviour for these to fill them in

  2. Log in to comment