Bannerlord has encountered a problem and will close itself.
This is a community Crash Report. Please save it and use it for reporting the error. Do not provide screenshots, provide the report!
Most likely this error was caused by a custom installed module.

If you were in the middle of something, the progress might be lost.


+ Exception

Exception information
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: TaleWorlds.CampaignSystem
CallStack:
  1. at TaleWorlds.CampaignSystem.Roster.TroopRoster.ClampXp(Int32 index)
  2. at TaleWorlds.CampaignSystem.Roster.TroopRoster.AddToCountsAtIndex(Int32 index, Int32 countChange, Int32 woundedCountChange, Int32 xpChange, Boolean removeDepleted)
  3. at TaleWorlds.CampaignSystem.Roster.TroopRoster.AddToCounts(CharacterObject character, Int32 count, Boolean insertAtFront, Int32 woundedCount, Int32 xpChange, Boolean removeDepleted, Int32 index)
  4. at TaleWorlds.CampaignSystem.ViewModelCollection.TooltipVMExtensions.<>c__DisplayClass15_0.b__0()
  5. at TaleWorlds.CampaignSystem.ViewModelCollection.TooltipVMExtensions.UpdateTooltip(TooltipVM tooltipVM, Settlement settlement, Boolean openedFromMenuLayout)
  6. at TaleWorlds.Core.ViewModelCollection.TooltipVM.OpenTooltip(Type type, Object[] args)
  7. at SandBox.View.Map.MapScreen.OnHoverMapEntity(IMapEntity mapEntity)
  8. at SandBox.View.Map.MapScreen.HandleMouse(Single dt)
  9. at SandBox.View.Map.MapScreen.TaleWorlds.CampaignSystem.GameState.IMapStateHandler.BeforeTick(Single dt)
  10. at TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(Single dt)
  11. at TaleWorlds.CampaignSystem.GameState.MapState.OnTick(Single dt)
  12. at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
  13. at TaleWorlds.Core.Game.OnTick(Single dt)
  14. at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
  15. at TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, Single dt)
  16. at TaleWorlds.DotNet.Managed.ApplicationTick_Patch1(Single dt)

+ Involved Modules

  • Sandbox
    • Method: System.Void SandBox.View.Map.MapScreen::OnHoverMapEntity(TaleWorlds.CampaignSystem.Map.IMapEntity mapEntity)
      Frame: OnHoverMapEntity at offset 65 in file:line:column :0:0
    • Method: System.Void SandBox.View.Map.MapScreen::HandleMouse(System.Single dt)
      Frame: HandleMouse at offset 3424 in file:line:column :0:0
    • Method: virtual System.Void SandBox.View.Map.MapScreen::TaleWorlds.CampaignSystem.GameState.IMapStateHandler.BeforeTick(System.Single dt)
      Frame: TaleWorlds.CampaignSystem.GameState.IMapStateHandler.BeforeTick at offset 1936 in file:line:column :0:0

+ Installed Modules

  • + Harmony (Bannerlord.Harmony, v2.2.2.85)
  • + AutoTrader (AutoTrader, v1.35.0.0)
  • + ButterLib (Bannerlord.ButterLib, v2.1.13.0)
  • + EquipBestItem (EquipBestItem, v1.5.5.0)
  • + Extra Looters (ExtraLooters, e1.7.0.0)
  • + Ludicrous Looters (LudicrousLooters, e1.7.0.0)
  • + Native (Native, e1.7.2.0)
  • + CustomBattle (CustomBattle, e1.7.2.0)
  • + Sandbox (Sandbox, e1.7.2.0)
  • + SandBox Core (SandBoxCore, e1.7.2.0)
  • + StoryMode (StoryMode, e1.7.2.0)

+ Assemblies

+ Harmony Patches

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnSubModuleLoad
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnSubModuleLoadPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnSubModuleUnloaded
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnSubModuleUnloadedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnApplicationTick
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnApplicationTickPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnBeforeInitialModuleScreenSetAsRoot
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnBeforeInitialModuleScreenSetAsRootPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnGameStart
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnGameStartPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.InitializeGameStarter
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchInitializeGameStarterPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.DoLoading
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchDoLoadingPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnGameLoaded
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnGameLoadedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnCampaignStart
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnCampaignStartPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.BeginGameStart
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchBeginGameStartPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnGameEnd
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnGameEndPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnGameInitializationFinished
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnGameInitializationFinishedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnBeforeMissionBehaviorInitialize
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnBeforeMissionBehaviourInitializePostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnMissionBehaviorInitialize
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnMissionBehaviourInitializePostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnMultiplayerGameStart
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnMultiplayerGameStartPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnNewGameCreated
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnNewGameCreatedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.RegisterSubModuleObjects
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchRegisterSubModuleObjectsPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.AfterRegisterSubModuleObjects
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchAfterRegisterSubModuleObjectsPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnAfterGameInitializationFinished
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnAfterGameInitializationFinishedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnConfigChanged
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnConfigChangedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnInitialState
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers2; Namespace: Bannerlord.ButterLib.SubModuleWrappers2.Patches.MBSubModuleBasePatchOnInitialStatePostfix;

  • TaleWorlds.MountAndBlade.Module.FinalizeSubModules
    • Postfixes
      • Owner: Bannerlord.ButterLib.MBSubModuleBaseEx; Namespace: Bannerlord.ButterLib.Implementation.MBSubModuleBaseExtended.Patches.ModulePatchFinalizeSubModulesPostfix;

  • TaleWorlds.MountAndBlade.Module.SetInitialModuleScreenAsRootScreen
    • Transpilers
      • Owner: Bannerlord.ButterLib.MBSubModuleBaseEx; Namespace: Bannerlord.ButterLib.Implementation.MBSubModuleBaseExtended.Patches.ModulePatchTranspiler;

  • TaleWorlds.MountAndBlade.MBGameManager.OnGameStart
    • Transpilers
      • Owner: Bannerlord.ButterLib.MBSubModuleBaseEx; Namespace: Bannerlord.ButterLib.Implementation.MBSubModuleBaseExtended.Patches.MBGameManagerPatchTranspiler;

  • TaleWorlds.MountAndBlade.MBGameManager.OnGameEnd
    • Transpilers
      • Owner: Bannerlord.ButterLib.MBSubModuleBaseEx; Namespace: Bannerlord.ButterLib.Implementation.MBSubModuleBaseExtended.Patches.MBGameManagerPatchTranspiler;

  • TaleWorlds.CampaignSystem.CampaignBehaviorBase..ctor
    • Postfixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.BehaviourNamePatchCampaignBehaviorBaseCtorPostfix;

  • TaleWorlds.SaveSystem.TypeExtensions.IsContainer
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.TypeExtensionsPatchIsContainerPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddBasicTypeDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddBasicTypeDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddClassDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddClassDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddContainerDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddContainerDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddEnumDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddEnumDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddGenericClassDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddGenericClassDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddGenericStructDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddGenericStructDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddInterfaceDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddInterfaceDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddRootClassDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddRootClassDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.AddStructDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchAddStructDefinitionPrefix;

  • TaleWorlds.SaveSystem.Definition.DefinitionContext.ConstructContainerDefinition
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.DefinitionContextPatchConstructContainerDefinitionPrefix;

  • TaleWorlds.CampaignSystem.CampaignBehaviors.CampaignBehaviorManager.OnGameLoaded
    • Prefixes
      • Owner: Bannerlord.ButterLib.ObjectSystem; Namespace: Bannerlord.ButterLib.Implementation.ObjectSystem.Patches.CampaignBehaviorManagerPatchOnGameLoadedPrefix;

  • TaleWorlds.CampaignSystem.CampaignBehaviors.CampaignBehaviorManager.OnBeforeSave
    • Postfixes
      • Owner: Bannerlord.ButterLib.ObjectSystem; Namespace: Bannerlord.ButterLib.Implementation.ObjectSystem.Patches.CampaignBehaviorManagerPatchOnBeforeSavePostfix;