Need More Info Crashing when leaving settlement with mods

Users who are viewing this thread

Version number
1.0
Branch
Main
Modded/unmodded
Yes, I used mods.
Dump identifier (optional)
2022-11-23_01.39.04_00000000000000000000000000000000
Exception information
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: TaleWorlds.CampaignSystem.ViewModelCollection
CallStack:

  1. at TaleWorlds.CampaignSystem.ViewModelCollection.CampaignUIHelper.GetCharacterCode(CharacterObject character, Boolean useCivilian)
  2. at TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyPartyItemVM..ctor(MobileParty party)
  3. at TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyItemVM..ctor(Army army, Action`1 onSelect)
  4. at TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyVM.RefreshArmyList()
  5. at TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyVM..ctor(Action onManageArmy, Action refreshDecision, Action`1 showArmyOnMap)
  6. at TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.KingdomManagementVM..ctor(Action onClose, Action onManageArmy, Action`1 onShowArmyOnMap)
  7. at SandBox.GauntletUI.GauntletKingdomScreen.TaleWorlds.Core.IGameStateListener.OnActivate()
  8. at TaleWorlds.Core.GameState.HandleActivate()
  9. at TaleWorlds.Core.GameStateManager.OnPushState(GameState gameState)
  10. at TaleWorlds.Core.GameStateManager.DoGameStateJobs()
  11. at TaleWorlds.Core.GameStateManager.PushState(GameState gameState, Int32 level)
  12. at SandBox.View.Map.MapScreen.OpenKingdom()
  13. at SandBox.View.Map.MapScreen.OnFrameTick(Single dt)
  14. at TaleWorlds.ScreenSystem.ScreenBase.FrameTick(Single dt)
  15. at TaleWorlds.ScreenSystem.ScreenManager.Tick_Patch1(Single dt, Boolean activeMouseVisible)
  • Frame: GetCharacterCode at offset 56 in file:line:column :0:0 (IL Offset: 0)
    • Module: UNKNOWN
      Method: static TaleWorlds.Core.CharacterCode TaleWorlds.CampaignSystem.ViewModelCollection.CampaignUIHelper::GetCharacterCode(TaleWorlds.CampaignSystem.CharacterObject character, System.Boolean useCivilian)
  • Frame: .ctor at offset 104 in file:line:column :0:0 (IL Offset: 0)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyPartyItemVM::.ctor(TaleWorlds.CampaignSystem.Party.MobileParty party)
  • Frame: .ctor at offset 533 in file:line:column :0:0 (IL Offset: 227)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyItemVM::.ctor(TaleWorlds.CampaignSystem.Army army, System.Action`1 onSelect)
  • Frame: RefreshArmyList at offset 334 in file:line:column :0:0 (IL Offset: 102)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyVM::RefreshArmyList()
  • Frame: .ctor at offset 475 in file:line:column :0:0 (IL Offset: 149)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Armies.KingdomArmyVM::.ctor(System.Action onManageArmy, System.Action refreshDecision, System.Action`1 showArmyOnMap)
  • Frame: .ctor at offset 131 in file:line:column :0:0 (IL Offset: 34)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.KingdomManagementVM::.ctor(System.Action onClose, System.Action onManageArmy, System.Action`1 onShowArmyOnMap)
  • Frame: TaleWorlds.Core.IGameStateListener.OnActivate at offset 440 in file:line:column :0:0 (IL Offset: 193)
    • Module: Sandbox
      Method: virtual System.Void SandBox.GauntletUI.GauntletKingdomScreen::TaleWorlds.Core.IGameStateListener.OnActivate()
  • Frame: HandleActivate at offset 180 in file:line:column :0:0 (IL Offset: 77)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.Core.GameState::HandleActivate()
  • Frame: OnPushState at offset 372 in file:line:column :0:0 (IL Offset: 194)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.Core.GameStateManager::OnPushState(TaleWorlds.Core.GameState gameState)
  • Frame: DoGameStateJobs at offset 85 in file:line:column :0:0 (IL Offset: 47)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.Core.GameStateManager::grin:oGameStateJobs()
  • Frame: PushState at offset 70 in file:line:column :0:0 (IL Offset: 22)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.Core.GameStateManager::razz:ushState(TaleWorlds.Core.GameState gameState, System.Int32 level)
  • Frame: OpenKingdom at offset 246 in file:line:column :0:0 (IL Offset: 29)
    • Module: Sandbox
      Method: System.Void SandBox.View.Map.MapScreen::OpenKingdom()
  • Frame: OnFrameTick at offset 455 in file:line:column :0:0 (IL Offset: 255)
    • Module: Sandbox
      Method: virtual System.Void SandBox.View.Map.MapScreen::OnFrameTick(System.Single dt)
  • Frame: FrameTick at offset 53 in file:line:column :0:0 (IL Offset: 15)
    • Module: UNKNOWN
      Method: System.Void TaleWorlds.ScreenSystem.ScreenBase::FrameTick(System.Single dt)
  • Frame: TaleWorlds.ScreenSystem.ScreenManager.Tick_Patch1 at offset 193 in file:line:column :0:0 (IL Offset: -1)
    • Module: Bannerlord.ButterLib
      Method: static System.Void Bannerlord.ButterLib.ExceptionHandler.BEWPatch::Finalizer(System.Exception __exception)
    • Module: UNKNOWN
      Method: static System.Void TaleWorlds.ScreenSystem.ScreenManager.Tick_Patch1(System.Single dt, System.Boolean activeMouseVisible)
    • Module: UNKNOWN
      Method: static System.Void TaleWorlds.ScreenSystem.ScreenManager::Tick(System.Single dt, System.Boolean activeMouseVisible)

  • Sandbox
    • Method: virtual System.Void SandBox.GauntletUI.GauntletKingdomScreen::TaleWorlds.Core.IGameStateListener.OnActivate()
      Frame: TaleWorlds.Core.IGameStateListener.OnActivate at offset 440 in file:line:column :0:0 (IL Offset: 193)
    • Method: System.Void SandBox.View.Map.MapScreen::OpenKingdom()
      Frame: OpenKingdom at offset 246 in file:line:column :0:0 (IL Offset: 29)
    • Method: virtual System.Void SandBox.View.Map.MapScreen::OnFrameTick(System.Single dt)
      Frame: OnFrameTick at offset 455 in file:line:column :0:0 (IL Offset: 255)
Reverfied files and the above still happened
 
This crash did not happen in any vanilla build. Only occurred when mod count (including Native) is greater than 5. Probably a mod crash. If you can reproduce the issue in a new, un-modded and verified campaign please let us know!
Please note that we can’t support any modding-related issues. You can find more information about how to remove modifications here and more information about what we think about issues related to modding here.
Thanks for reporting and sorry for any inconvenience!
 
Back
Top Bottom