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.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
CallStack:
  1. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
  2. at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
  3. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  4. at TaleWorlds.Library.Common.InvokeWithLog(MethodInfo methodInfo, Object obj, Object[] args)
  5. at TaleWorlds.Library.ViewModel.ExecuteCommand_Patch1(ViewModel this, String commandName, Object[] parameters)
  6. at TaleWorlds.GauntletUI.Data.GauntletView.OnCommand(String command, Object[] args)
  7. at TaleWorlds.GauntletUI.Widget.EventFired(String eventName, Object[] args)
  8. at TaleWorlds.GauntletUI.ButtonWidget.HandleClick()
  9. at TaleWorlds.GauntletUI.ButtonWidget.OnMouseReleased()
  10. at TaleWorlds.GauntletUI.EventManager.MouseUp()
  11. at TaleWorlds.GauntletUI.UIContext.UpdateInput(InputType handleInputs)
  12. at TaleWorlds.Engine.Screens.ScreenManager.Update()
  13. at TaleWorlds.Engine.Screens.ScreenManager.Tick_Patch1(Single dt)


Inner Exception information
Type: System.OverflowException
Message: Arithmetic operation resulted in an overflow.
Source: System.Core
CallStack:
  1. at System.Linq.Enumerable.Sum(IEnumerable`1 source)
  2. at TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.RefreshWeights()
  3. at TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleFormationItemVM.set_Commander(OrderOfBattleHeroItemVM value)
  4. at SandBox.ViewModelCollection.SPOrderOfBattleVM.LoadConfiguration()
  5. at TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.Initialize(Mission mission, Camera missionCamera, Action`1 selectFormationAtIndex, Action`1 deselectFormationAtIndex, Action onAutoDeploy, Action onBeginMission, Dictionary`2 formationIndicesAndSergeants, Action`1 focusOnAgent)
  6. at TaleWorlds.MountAndBlade.GauntletUI.MissionOrderOfBattleGauntletUIHandler.OnPlayerTurnToChooseFormationToLead(Dictionary`2 lockedFormationIndicesAndSergeants, List`1 remainingFormationIndices)
  7. at TaleWorlds.MountAndBlade.GauntletUI.MissionOrderOfBattleGauntletUIHandler.OnAutoDeploy()
  8. at TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle.OrderOfBattleVM.ExecuteAutoDeploy()

+ Involved Modules

  • Bannerlord.Harmony
    • Method: static System.Int32 System.Linq.Enumerable::Sum(System.Collections.Generic.IEnumerable`1 source)
      Frame: Sum at offset 130 in file:line:column :0:0
    • Method: static System.Object System.RuntimeMethodHandle::InvokeMethod(System.Object target, System.Object[] arguments, System.Signature sig, System.Boolean constructor)
      Frame: InvokeMethod at offset 0 in file:line:column :0:0
    • Method: System.Object System.Reflection.RuntimeMethodInfo::UnsafeInvokeInternal(System.Object obj, System.Object[] parameters, System.Object[] arguments)
      Frame: UnsafeInvokeInternal at offset 269 in file:line:column :0:0
    • Method: virtual System.Object System.Reflection.RuntimeMethodInfo::Invoke(System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
      Frame: Invoke at offset 146 in file:line:column :0:0
  • Sandbox
    • Method: virtual System.Void SandBox.ViewModelCollection.SPOrderOfBattleVM::LoadConfiguration()
      Frame: LoadConfiguration at offset 2702 in file:line:column :0:0
  • Native
    • Method: System.Void TaleWorlds.MountAndBlade.GauntletUI.MissionOrderOfBattleGauntletUIHandler::OnPlayerTurnToChooseFormationToLead(System.Collections.Generic.Dictionary`2 lockedFormationIndicesAndSergeants, System.Collections.Generic.List`1 remainingFormationIndices)
      Frame: OnPlayerTurnToChooseFormationToLead at offset 373 in file:line:column :0:0
    • Method: System.Void TaleWorlds.MountAndBlade.GauntletUI.MissionOrderOfBattleGauntletUIHandler::OnAutoDeploy()
      Frame: OnAutoDeploy at offset 26 in file:line:column :0:0

+ Installed Modules

  • + Harmony (Bannerlord.Harmony, v2.1.1.65)
  • + ButterLib (Bannerlord.ButterLib, v1.0.31.0)
  • + UIExtenderEx (Bannerlord.UIExtenderEx, v2.1.8.0)
  • + Mod Configuration Menu v4 (Bannerlord.MBOptionScreen, v4.3.15.0)
  • + Native (Native, e1.7.0.0)
  • + SandBox Core (SandBoxCore, e1.7.0.0)
  • + CustomBattle (CustomBattle, e1.7.0.0)
  • + Sandbox (Sandbox, e1.7.0.0)
  • + StoryMode (StoryMode, e1.7.0.0)
  • + Sorted Income (SortedIncome, v1.0.9.0)
  • + Better HUD (BetterHUD, v1.3.6.0)

+ Assemblies

+ Harmony Patches

  • TaleWorlds.MountAndBlade.MBSubModuleBase.OnMissionBehaviorInitialize
    • Postfixes
      • Owner: Bannerlord.ButterLib.SubModuleWrappers; Namespace: Bannerlord.ButterLib.SubModuleWrappers.Patches.MBSubModuleBasePatchCallPostfix;

  • 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;

  • SandBox.SandBoxSubModule.OnBeforeInitialModuleScreenSetAsRoot
    • Prefixes
      • Owner: butterlib.delayedsubmoduleloader.sandboxsubmodule; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerOnBeforeInitialModuleScreenSetAsRootPrefix;
    • Postfixes
      • Owner: butterlib.delayedsubmoduleloader.sandboxsubmodule; Namespace: Bannerlord.ButterLib.DelayedSubModule.DelayedSubModuleManagerOnBeforeInitialModuleScreenSetAsRootPostfix;

  • 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;

  • 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;

  • TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultClanFinanceModel.CalculateClanGoldChange
    • Postfixes
      • Owner: pointfeev.sortedincome; Namespace: SortedIncome.SortingSorterPatch;

  • TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultClanFinanceModel.CalculateClanIncome
    • Postfixes
      • Owner: pointfeev.sortedincome; Namespace: SortedIncome.SortingSorterPatch;

  • TaleWorlds.CampaignSystem.SandBox.GameComponents.DefaultClanFinanceModel.CalculateClanExpenses
    • Postfixes
      • Owner: pointfeev.sortedincome; Namespace: SortedIncome.SortingSorterPatch;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.get_VideoOptions
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinOptionsPostfix; Priority: 300;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.get_AudioOptions
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinOptionsPostfix; Priority: 300;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.get_GameKeyOptionGroups
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinOptionsPostfix; Priority: 300;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.get_GamepadOptions
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinOptionsPostfix; Priority: 300;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.get_GameplayOptions
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinOptionsPostfix; Priority: 300;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.get_PerformanceOptions
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinOptionsPostfix; Priority: 300;

  • TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.OptionsVM.ExecuteCloseOptions
    • Postfixes
      • Owner: bannerlord.mcm.ui.optionsvm; Namespace: MCM.UI.UIExtenderEx.OptionsVMMixinExecuteCloseOptionsPostfix; Priority: 300;