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.DivideByZeroException
Message: Attempted to divide by zero.
Source: TaleWorlds.CampaignSystem
CallStack:
  1. at TaleWorlds.CampaignSystem.PartyUpgrader.UpgradeReadyTroops(PartyBase party)
  2. at TaleWorlds.CampaignSystem.MapEventSide.UpgradeTroops()
  3. at TaleWorlds.CampaignSystem.MapEvent.FinishBattle()
  4. at TaleWorlds.CampaignSystem.MapEvent.Update()
  5. at TaleWorlds.CampaignSystem.MapEventManager.Tick()
  6. at TaleWorlds.CampaignSystem.Campaign.Tick(Single dt)
  7. at TaleWorlds.CampaignSystem.Campaign.RealTick(Single realDt)
  8. at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
  9. at TaleWorlds.CampaignSystem.MapState.OnTick(Single dt)
  10. at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
  11. at TaleWorlds.Core.Game.OnTick(Single dt)
  12. at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
  13. at TaleWorlds.MountAndBlade.Module.OnApplicationTick(Single dt)
  14. at TaleWorlds.DotNet.Managed.ApplicationTick_Patch1(Single dt)

+ Installed Modules

  • + Harmony (Bannerlord.Harmony, v2.1.1.65)
  • + ButterLib (Bannerlord.ButterLib, v1.0.28.0)
  • + UIExtenderEx (Bannerlord.UIExtenderEx, v2.1.8.0)
  • + Mod Configuration Menu v4 (Bannerlord.MBOptionScreen, v4.3.14.0)
  • + Native (Native, e1.6.1.0)
  • + SandBox Core (SandBoxCore, e1.6.1.0)
  • + Sandbox (Sandbox, e1.6.1.0)
  • + StoryMode (StoryMode, e1.6.1.0)
  • + CustomBattle (CustomBattle, e1.6.1.0)
  • + BoogiesUpgrades (BoogiesUpgrades, e0.1.1.0)
  • + Calradia Expanded (CalradiaExpanded, a1.1.6.0)
  • + SueMoreSpouses (SueMoreSpouses, v3.0.5.0)
  • + Royal Armoury Fix (RoyalArmouryFix, v3.3.0.0)
  • + Party Screen Enhancements (PartyScreenEnhancements, v1.6.1.0)
  • + Telepathy (Telepathy, v0.7.0.0)
  • + One Hundred Companions And Ten Parties (OneHundredCompanionsAndTenParties, v1.0.0.0)
  • + Weapon Part Workshop (WeaponPartWorkshop, v1.5.7.0)

+ Assemblies

+ Harmony Patches

  • 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.SaveSystem.TypeExtensions.IsContainer
    • Prefixes
      • Owner: Bannerlord.ButterLib.SaveSystem; Namespace: Bannerlord.ButterLib.Implementation.SaveSystem.Patches.TypeExtensionsPatchIsContainerPrefix;

  • TaleWorlds.GauntletUI.Data.GauntletMovie.Load
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.Patches.GauntletMoviePatchLoadPrefix;

  • TaleWorlds.Library.ViewModel.ExecuteCommand
    • Prefixes
      • Owner: bannerlord.mcm.ui.viewmodelpatch; Namespace: MCM.UI.Patches.ViewModelPatchExecuteCommandPatch;
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.Patches.ViewModelPatchViewModel_ExecuteCommand_Transpiler;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetPrefab.LoadFrom
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.Patches.WidgetPrefabPatchWidgetPrefab_LoadFrom_Transpiler;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetFactory.Initialize
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.Patches.WidgetFactoryPatchInitializeTranspiler;

  • TaleWorlds.GauntletUI.BrushFactory.get_Brushes
    • Postfixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.BrushFactoryManagerGetBrushesPostfix;

  • TaleWorlds.GauntletUI.BrushFactory.GetBrush
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.BrushFactoryManagerGetBrushPrefix;

  • TaleWorlds.GauntletUI.PrefabSystem.ConstantDefinition.GetValue
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.BrushFactoryManagerBlankTranspiler;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetExtensions.SetWidgetAttributeFromString
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.BrushFactoryManagerBlankTranspiler;

  • TaleWorlds.GauntletUI.UIContext.GetBrush
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.BrushFactoryManagerBlankTranspiler;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetExtensions.ConvertObject
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.BrushFactoryManagerBlankTranspiler;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetFactory.GetCustomType
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerGetCustomTypePrefix;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetFactory.CreateBuiltinWidget
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerCreateBuiltinWidgetPrefix;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetFactory.GetWidgetTypes
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerGetWidgetTypesPostfix;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetFactory.IsCustomType
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerIsCustomTypePrefix;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetFactory.OnUnload
    • Prefixes
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerOnUnloadPrefix;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetTemplate.CreateWidgets
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerBlankTranspiler;

  • TaleWorlds.GauntletUI.PrefabSystem.WidgetTemplate.OnRelease
    • Transpilers
      • Owner: bannerlord.uiextender.ex; Namespace: Bannerlord.UIExtenderEx.ResourceManager.WidgetFactoryManagerBlankTranspiler;

  • TaleWorlds.TwoDimension.EditableText.GetCursorPosition
    • Finalizers
      • Owner: bannerlord.mcm.ui.editabletextpatch; Namespace: MCM.UI.Patches.EditableTextPatchGetCursorPosition;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnSubModuleLoad
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.static; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerBaseSubModuleLoadPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnSubModuleUnloaded
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.static; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerBaseOnSubModuleUnloadedPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnBeforeInitialModuleScreenSetAsRoot
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.static; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerBaseOnBeforeInitialModuleScreenSetAsRootPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnGameStart
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.static; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerBaseOnGameStartPostfix;

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnGameEnd
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.static; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerBaseOnGameEndPostfix;

  • SandBox.SandBoxSubModule.OnSubModuleLoad
    • Prefixes
      • Owner: butterlib.delayedsubmoduleloader.sandboxsubmodule; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerSubModuleLoadPrefix;
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.sandboxsubmodule; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerSubModuleLoadPostfix;

  • MCM.IntegratedLoaderSubModule..ctor
    • Prefixes
      • Owner: bannerlord.mcm.implementation.mcmv3.loaderpreventer; Namespace: MCM.Adapter.MCMv3.Patches.MCMv3IntegratedLoaderSubModulePatchStopIntegratedLoaderSubModuleCtor;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM..ctor
    • Transpilers
      • Owner: bannerlord.uiextender.ex.viewmodels.MCM.UI; Namespace: Bannerlord.UIExtenderEx.Patches.ViewModelWithMixinPatchViewModel_Constructor_Transpiler;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM..ctor
    • Transpilers
      • Owner: bannerlord.uiextender.ex.viewmodels.MCM.UI; Namespace: Bannerlord.UIExtenderEx.Patches.ViewModelWithMixinPatchViewModel_Constructor_Transpiler;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.OnFinalize
    • Transpilers
      • Owner: bannerlord.uiextender.ex.viewmodels.MCM.UI; Namespace: Bannerlord.UIExtenderEx.Patches.ViewModelWithMixinPatchViewModel_Finalize_Transpiler;

  • SandBox.MapScene.GetNavigationMeshIndexOfTerrainType
    • Postfixes
      • Owner: CE; Namespace: CalradiaExpanded.NavalPatch+GetNavigationMeshIndexOfTerrainTypePatchPostfix;

  • SandBox.MapScene.GetFaceTerrainType
    • Postfixes
      • Owner: CE; Namespace: CalradiaExpanded.NavalPatch+GetFaceTerrainTypePatchPostfix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.TooltipVMExtensions.UpdateTooltip
    • Postfixes
      • Owner: CE; Namespace: CalradiaExpanded.NavalPatch+UpdateTooltipPatch1Postfix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.TooltipVMExtensions.UpdateTooltip
    • Postfixes
      • Owner: CE; Namespace: CalradiaExpanded.NavalPatch+UpdateTooltipPatch2Postfix;

  • TaleWorlds.CampaignSystem.MobileParty.OnAiTickInternal
    • Postfixes
      • Owner: CE; Namespace: CalradiaExpanded.NavalPatch+OnAiTickInternalPatchPostfix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.PregnancyCampaignBehavior.CheckAreNearby
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.CheckAreNearbyPathPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.PregnancyCampaignBehavior.ChildConceived
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.ChildConceivedPathPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.PregnancyCampaignBehavior.DailyTickHero
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.DailyTickHeroPathPostfix;

  • TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultPregnancyModel.GetDailyChanceOfPregnancyForHero
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.GetDailyChanceOfPregnancyForHeroPostfix;

  • SandBox.ViewModelCollection.SPScoreboardVM.Initialize
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.BattleSimulationInitializePathPrefix;

  • SandBox.ViewModelCollection.SPScoreboardVM.OnExitBattle
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.BattleSimulationOnExitBattlePathPostfix;

  • SandBox.ViewModelCollection.SPScoreboardVM.TroopNumberChanged
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.BattleSimulationTroopNumberChangedPathPostfix;

  • SandBox.Source.CampaignComponents.ClanMemberRolesCampaignBehavior.AddClanMembersAsAccompanyingCharacter
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.ClanMemberRolesCampaignBehavior_AddClanMembersAsAccompanyingCharacter_PathPrefix;

  • TaleWorlds.Engine.Screens.ScreenBase.AddLayer
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.ClanScreenLayerPatchPostfix;
      • Owner: sue.mod.mb2.SueLordFromFamily; Namespace: SueLordFromFamily.Paths.KindomScreenLayerPatchPostfix; Index: 1;
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.PartyEnhancementLayerPatchPostfix; Index: 2;

  • TaleWorlds.Engine.Screens.ScreenBase.RemoveLayer
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.ClanScreenLayerPatchPrefix;
      • Owner: sue.mod.mb2.SueLordFromFamily; Namespace: SueLordFromFamily.Paths.KindomScreenLayerPatchPrefix; Index: 1;
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.PartyEnhancementLayerPatchPrefix; Index: 2;

  • TaleWorlds.CampaignSystem.Location.CanAIEnter
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocatonCanAIEnterPathPrefix;

  • TaleWorlds.CampaignSystem.Location.CanAIExit
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocatonCanAIExitPathPrefix;

  • TaleWorlds.CampaignSystem.Hero.ResetEquipments
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.HeroResetEquipmentsPathPrefix;

  • TaleWorlds.CampaignSystem.HeroCreator.DeliverOffSpring
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.HeroCreatorDeliverOffSpringPathPostfix;

  • TaleWorlds.CampaignSystem.Location.ContainsCharacter
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocationContainsCharacterrPathPrefix;

  • TaleWorlds.CampaignSystem.Location.GetLocationCharacter
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocationGetLocationCharacterPathPrefix;

  • TaleWorlds.CampaignSystem.Location.CanPlayerEnter
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocatonCanPlayerEnterPathPrefix;

  • TaleWorlds.CampaignSystem.Location.CanPlayerSee
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocatonCanPlayerSeePathPrefix;

  • TaleWorlds.CampaignSystem.Location.DeserializeDelegate
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.LocatonDeserializeDelegatePathPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.AgingCampaignBehavior.DailyTickHero
    • Prefixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.AgingCampaignBehaviorPatch+AgingCampaignBehaviorDailyTickPatchPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.HeroCreationCampaignBehavior.DeriveSkillsFromTraits
    • Postfixes
      • Owner: sue.mod.mb2.SueMoreSpouses; Namespace: SueMoreSpouses.Patch.AgingCampaignBehaviorPatch+OnHeroComesOfAgePatchPostfix;

  • TaleWorlds.CampaignSystem.CampaignEvents.OnGameLoaded
    • Postfixes
      • Owner: sue.mod.mb2.SueMBService; Namespace: SueMBService.Paths.CampaignEventsPathPostfix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.PartyCharacterVM.ExecuteRecruitTroop
    • Prefixes
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.ChooseIgnorePrisonerPatchPrefix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.PartyCharacterVM.Upgrade
    • Prefixes
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.ChooseUpgradePathPatchPrefix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.PartyTroopManagerVM.OpenPopUp
    • Postfixes
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.PopupPatchPostfixOpen;

  • TaleWorlds.CampaignSystem.ViewModelCollection.PartyTroopManagerVM.ExecuteDone
    • Postfixes
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.PopupPatchPostfixClose;

  • TaleWorlds.CampaignSystem.ViewModelCollection.PartyTroopManagerVM.ConfirmCancel
    • Postfixes
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.PopupPatchPostfixCancel;

  • TaleWorlds.CampaignSystem.ViewModelCollection.UpgradeTargetVM.Refresh
    • Prefixes
      • Owner: top.hirtol.patch.partyenhancements; Namespace: PartyScreenEnhancements.Patches.UpgradeButtonTooltipPatchPrefix;

  • Telepathy.TelepathySubModule.PrintPatchingError
    • Prefixes
      • Owner: Telepathy; Namespace: Telepathy.TelepathySubModulePatchPrefix;

  • TaleWorlds.CampaignSystem.FlattenedTroopRoster.GenerateUniqueNoFromParty
    • Prefixes
      • Owner: Telepathy; Namespace: Telepathy.Patches.FlattenedTroopRosterPatchPrefix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.EncyclopediaHeroPageVM.Refresh
    • Prefixes
      • Owner: Telepathy; Namespace: Telepathy.Patches.EncyclopediaHeroPageVMPatchPrefix;

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

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

  • TaleWorlds.MountAndBlade.ViewModelCollection.InitialMenuVM.RefreshMenuOptions
    • Postfixes
      • Owner: bannerlord.mcm.mainmenuscreeninjection_v4; Namespace: MCM.UI.Functionality.Post158GameMenuScreenHandlerRefreshMenuOptionsPostfix; Priority: 300;