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.ArgumentOutOfRangeException
Message: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Source: mscorlib
CallStack:
  1. at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
  2. at System.Collections.Generic.List`1.get_Item(Int32 index)
  3. at MyLittleWarband.CustomUnitsBehavior.ChangeUnitEquipment(Int32 slot, CharacterObject character, ItemObject item, Int32 set, Boolean isCivilian) in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:line 558
  4. at MyLittleWarband.CustomUnitsBehavior.CopyCharacter(CharacterObject orginalCharacter, CharacterObject newCharacter) in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:line 814
  5. at MyLittleWarband.CustomUnitsBehavior.<>c__DisplayClass15_1.b__2() in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:line 132
  6. at MyLittleWarband.SubModule.OnApplicationTick(Single dt) in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\SubModule.cs:line 54
  7. at TaleWorlds.MountAndBlade.Module.OnApplicationTick(Single dt)
  8. at TaleWorlds.DotNet.Managed.ApplicationTick_Patch1(Single dt)

+ Involved Modules

  • MyLittleWarband
    • Method: static System.Void MyLittleWarband.CustomUnitsBehavior::ChangeUnitEquipment(System.Int32 slot, TaleWorlds.CampaignSystem.CharacterObject character, TaleWorlds.Core.ItemObject item, System.Int32 set, System.Boolean isCivilian)
      Frame: ChangeUnitEquipment at offset 771 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:558:17
    • Method: static System.Void MyLittleWarband.CustomUnitsBehavior::CopyCharacter(TaleWorlds.CampaignSystem.CharacterObject orginalCharacter, TaleWorlds.CampaignSystem.CharacterObject newCharacter)
      Frame: CopyCharacter at offset 800 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:814:33
    • Method: System.Void MyLittleWarband.<>c__DisplayClass15_1::b__2()
      Frame: b__2 at offset 54 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:132:21
    • Method: virtual System.Void MyLittleWarband.SubModule::OnApplicationTick(System.Single dt)
      Frame: OnApplicationTick at offset 190 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\SubModule.cs:54:17

+ Installed Modules

  • + Harmony (Bannerlord.Harmony, v2.1.1.65)
  • + ButterLib (Bannerlord.ButterLib, v1.0.29.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)
  • + CustomBattle (CustomBattle, e1.6.1.0)
  • + StoryMode (StoryMode, e1.6.1.0)
  • + Improved Garrisons (ImprovedGarrisons, v4.0.3.6)
  • + Calradia Rising Armory (CalradiaRisingArmory, e1.5.7.0)
  • + *CA* Important - Load At Top Above Native - Smoke (!CA_LoadAboveNative_Smoke, v1.2.2.0)
  • + swadian armoury (swadian armoury, v1.0.0.0)
  • + CA - Blood and Smoke (CA_BloodSmoke, v1.2.2.0)
  • + Open Source Armory (OpenSourceArmory, v1.0.0.0)
  • + *CA* Important - Load At Top Above Native - Rome (!CA_LoadAboveNative_Rome, v3.0.9.1)
  • + Adonnay's Exotic Weaponry (AEW - Adonnays Exotic Weaponry, v2.0.3.0)
  • + Mo Mercenary Association (MoMercenaryAssociation, e1.6.1.8)
  • + Adonnay's Troop Changer (AdonnaysTroopChanger, v1.6.1.0)
  • + SliceThrough (SliceThrough, v1.0.3.0)
  • + Chinese Weapon (ChineseWeapon, v1.0.1.0)
  • + Battle Regeneration (BattleRegeneration, v1.4.0.4)
  • + Perfect Fire Arrows (PerfectFireArrows, e1.6.1.0)
  • + Volley (Volley, v1.2.0.0)
  • + My Little Warband (MyLittleWarband, v1.6.1.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;

  • TaleWorlds.CampaignSystem.TournamentGame.GetTournamentPrize
    • Postfixes
      • Owner: mod.bannerlord.adonnay.aew; Namespace: AEW.TournamentPrize.AEWTournamentPrizePostfix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.GetRecruitVolunteerFromIndividual
    • Prefixes
      • Owner: mod.bannerlord.adonnay; Namespace: AdonnaysTroopChanger.PatchRecruitActionFromIndividualPrefix;

  • TaleWorlds.CampaignSystem.MobileParty.FillPartyStacks
    • Prefixes
      • Owner: mod.bannerlord.adonnay; Namespace: AdonnaysTroopChanger.PatchFillPartyStacksPrefix;

  • TaleWorlds.MountAndBlade.Agent.set_Health
    • Transpilers
      • Owner: d225.battleregen; Namespace: BattleRegen.Agent_SetHealth_PatchTranspiler;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.GetRecruitActionsForParty
    • Prefixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.ClanRecruitPatch2Prefix;
    • Postfixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.ClanRecruitPatch1Postfix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.UpdateVolunteersOfNotables
    • Postfixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.RecruitProductionPatchPostfix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.EncyclopediaItems.EncyclopediaUnitVM.ExecuteLink
    • Prefixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.EnyclopediaEditUnitPatchPrefix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.RecruitmentVM.Deactivate
    • Postfixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.RecruitPatch1Postfix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.Towns.PlayerTownVisitCampaignBehavior.game_menu_recruit_volunteers_on_consequence
    • Prefixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.RecruitPatch2Prefix;

  • 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.MountAndBlade.Mission.UpdateMomentumRemaining
    • Prefixes
      • Owner: com.SliceThrough.akdombrowski; Namespace: SliceThrough.SubModuleUpdateMomentumRemaining;

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