Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Detiy Method broken by recent patch #24

Open
kjk001 opened this issue Mar 13, 2023 · 0 comments
Open

Add Detiy Method broken by recent patch #24

kjk001 opened this issue Mar 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kjk001
Copy link

kjk001 commented Mar 13, 2023

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.EnumerableSorter2[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.EnumerableSorter1[TElement].Sort (TElement[] elements, System.Int32 count) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.OrderedEnumerable1[TElement].SortedMap (System.Linq.Buffer1[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.IEnumerable1[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

@kjk001 kjk001 added the bug Something isn't working label Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant