BarleyFlour / RespecMod

A respec mod for Pathfinder: Wrath of the Righteous
Other
134 stars 26 forks source link

Respec Broken for MC #236

Closed WittleWolfie closed 4 months ago

WittleWolfie commented 4 months ago

Easiest way to repro:

  1. Create a new character, just keep all the defaults why not
  2. Get to the cave
  3. Try to respec Taolynn
[126.6786 - Default]: Nullable object must have a value.
  at System.Nullable`1[T].get_Value () [0x00008] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at RespecWrath.LevelUpState_ctor_Patch.Postfix (Kingmaker.UnitLogic.Class.LevelUp.LevelUpState __instance, Kingmaker.EntitySystem.Entities.UnitEntityData unit, Kingmaker.UnitLogic.Class.LevelUp.LevelUpState+CharBuildMode mode) [0x0012f] in <322605495bc54ac2bc7e6d3f3590422f>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Kingmaker.UnitLogic.Class.LevelUp.LevelUpState..ctor_Patch2(Kingmaker.UnitLogic.Class.LevelUp.LevelUpState,Kingmaker.EntitySystem.Entities.UnitEntityData,Kingmaker.UnitLogic.Class.LevelUp.LevelUpState/CharBuildMode,bool)
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Kingmaker.UnitLogic.Class.LevelUp.LevelUpController..ctor_Patch2(Kingmaker.UnitLogic.Class.LevelUp.LevelUpController,Kingmaker.EntitySystem.Entities.UnitEntityData,bool,Kingmaker.UnitLogic.Class.LevelUp.LevelUpState/CharBuildMode,bool)
  at Kingmaker.UnitLogic.Class.LevelUp.LevelUpController.Start (Kingmaker.EntitySystem.Entities.UnitEntityData unit, Kingmaker.UnitLogic.Class.LevelUp.LevelUpState+CharBuildMode mode, System.Boolean instantCommit, System.Boolean ignoreSettings) [0x0001b] in <59f7498b9c444261b976ab50f8ebd833>:0 
  at Kingmaker.UnitLogic.Class.LevelUp.LevelUpConfig.StartController () [0x00013] in <59f7498b9c444261b976ab50f8ebd833>:0 
  at Kingmaker.UI.MVVM._VM.CharGen.CharGenContextVM.HandleLevelUpStart (Kingmaker.UnitLogic.Class.LevelUp.LevelUpConfig config) [0x0008d] in <59f7498b9c444261b976ab50f8ebd833>:0 
  at RespecWrath.RespecClass+<>c__DisplayClass4_1.<Respecialize>b__7 (Kingmaker.PubSubSystem.ILevelUpInitiateUIHandler h) [0x00040] in <322605495bc54ac2bc7e6d3f3590422f>:0 
  at Kingmaker.PubSubSystem.SubscriptionManager`1[TSubscriber].ExecuteActionInternal[T] (System.Action`1[T] action, T typedSubscriber) [0x00029] in <59f7498b9c444261b976ab50f8ebd833>:0 
  at Kingmaker.PubSubSystem.SubscriptionManager`1[TSubscriber].ExecuteAction[T] (System.Action`1[T] action, System.Object subscriber) [0x0004a] in <59f7498b9c444261b976ab50f8ebd833>:0 
  at Kingmaker.PubSubSystem.SubscriptionManager`1[TSubscriber].RaiseEvent[T] (System.Action`1[T] action, System.Boolean isCheckRuntime) [0x00087] in <59f7498b9c444261b976ab50f8ebd833>:0 

and from player.log:

[RespecWrath] Money changed -0
[RespecWrath] FeatureAdd:ForbiddenDeityFeature
[RespecWrath] FeatureAdd:StartGamePregenCavalierFeatureList
[RespecWrath] FeatureAdd:AnimalCompanionArchetypeSelection
BarleyFlour commented 4 months ago

Fixed in v.1.10.18