Add Detiy Method broken by recent patch
kjk001 opened this issue · 0 comments
since the recent patch the Method DeitySelection.AddFeatures is broken.
Trying to call it to add a new deity gave the following exception stack:
NullReferenceException: Object reference not set to an instance of an object
at Kingmaker.TextTools.NameTemplate.Generate (System.Boolean capitalized, System.Collections.Generic.List1[T] parameters) [0x00027] in <7233d069edc947ad9245aca7f2d9f2b6>:0 at Kingmaker.TextTools.TextTemplateEngine.Process (System.String text) [0x00242] in <7233d069edc947ad9245aca7f2d9f2b6>:0 at Kingmaker.Localization.LocalizedString.op_Implicit (Kingmaker.Localization.LocalizedString localizedString) [0x00069] in <7233d069edc947ad9245aca7f2d9f2b6>:0 at Kingmaker.Blueprints.Facts.BlueprintUnitFact.get_Name () [0x00000] in <7233d069edc947ad9245aca7f2d9f2b6>:0 at TabletopTweaks.Core.Utilities.BlueprintExtentions+<>c.<AddFeatures>b__18_0 (Kingmaker.Blueprints.BlueprintFeatureReference feature) [0x00010] in <6dfaad66b67846728beb7f41626f0298>:0 at System.Linq.EnumerableSorter
2[TElement,TKey].ComputeKeys (TElement[] elements, System.Int32 count) [0x00010] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.EnumerableSorter1[TElement].ComputeMap (TElement[] elements, System.Int32 count) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.EnumerableSorter
1[TElement].Sort (TElement[] elements, System.Int32 count) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.OrderedEnumerable1[TElement].SortedMap (System.Linq.Buffer
1[TElement] buffer) [0x00006] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.OrderedEnumerable1[TElement].ToArray () [0x00025] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable
1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at TabletopTweaks.Core.Utilities.BlueprintExtentions.AddFeatures (Kingmaker.Blueprints.Classes.Selection.BlueprintFeatureSelection selection, Kingmaker.Blueprints.BlueprintFeatureReference[] features) [0x0007f] in <6dfaad66b67846728beb7f41626f0298>:0
at TabletopTweaks.Core.Utilities.BlueprintExtentions.AddFeatures (Kingmaker.Blueprints.Classes.Selection.BlueprintFeatureSelection selection, Kingmaker.Blueprints.Classes.BlueprintFeature[] features) [0x0002b] in <6dfaad66b67846728beb7f41626f0298>:0
using selection.m_AllFeatures = selection.m_AllFeatures.AppendToArray
directly still works