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.IndexOutOfRangeException
Message: Index was outside the bounds of the array.
Source: AdonnaysTroopChanger
CallStack:
  1. at AdonnaysTroopChanger.PatchFillPartyStacks.ModifyPartyTemplate(MobileParty party)
  2. at AdonnaysTroopChanger.PatchFillPartyStacks.Prefix(MobileParty __instance, PartyTemplateObject& pt)
  3. at TaleWorlds.CampaignSystem.MobileParty.FillPartyStacks_Patch1(MobileParty this, PartyTemplateObject pt, Int32 troopNumberLimit)
  4. at TaleWorlds.CampaignSystem.LordPartyComponent.InitializeLordPartyProperties(MobileParty mobileParty, Vec2 position, Single spawnRadius, Settlement spawnSettlement)
  5. at TaleWorlds.CampaignSystem.LordPartyComponent.<>c__DisplayClass14_0.b__0(MobileParty mobileParty)
  6. at TaleWorlds.CampaignSystem.MobileParty.CreateParty(String stringId, PartyComponent component, OnPartyComponentCreatedDelegate delegateFunction)
  7. at TaleWorlds.CampaignSystem.LordPartyComponent.CreateLordParty(String stringId, Hero hero, Vec2 position, Single spawnRadius, Settlement spawnSettlement)
  8. at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.HeroSpawnCampaignBehavior.SpawnLordParty(Hero hero)
  9. at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.HeroSpawnCampaignBehavior.ConsiderSpawningLordParties(Clan clan)
  10. at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.HeroSpawnCampaignBehavior.OnNonBanditClanDailyTick(Clan clan)
  11. at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.HeroSpawnCampaignBehavior.OnNewGameCreatedPartialFollowUp(CampaignGameStarter starter, Int32 i)
  12. at TaleWorlds.CampaignSystem.MbEvent`2.InvokeList(EventHandlerRec`2 list, T1 t1, T2 t2)
  13. at TaleWorlds.CampaignSystem.CampaignEvents.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
  14. at TaleWorlds.CampaignSystem.CampaignEventDispatcher.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
  15. at TaleWorlds.CampaignSystem.Campaign.OnNewGameCreated(CampaignGameStarter gameStarter)
  16. at TaleWorlds.CampaignSystem.Campaign.DoLoadingForGameType(GameTypeLoadingStates gameTypeLoadingState, GameTypeLoadingStates& nextState)
  17. at StoryMode.CampaignStoryMode.DoLoadingForGameType(GameTypeLoadingStates gameTypeLoadingState, GameTypeLoadingStates& nextState)
  18. at TaleWorlds.Core.GameType.DoLoadingForGameType()
  19. at SandBox.SandBoxGameManager.DoLoadingForGameManager(GameManagerLoadingSteps gameManagerLoadingStep, GameManagerLoadingSteps& nextStep)
  20. at TaleWorlds.Core.GameManagerBase.DoLoadingForGameManager()
  21. at TaleWorlds.MountAndBlade.GameLoadingState.OnTick(Single dt)
  22. at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
  23. at TaleWorlds.MountAndBlade.Module.OnApplicationTick(Single dt)
  24. at TaleWorlds.DotNet.Managed.ApplicationTick_Patch1(Single dt)

+ Involved Modules

  • AdonnaysTroopChanger
    • Method: static TaleWorlds.CampaignSystem.PartyTemplateObject AdonnaysTroopChanger.PatchFillPartyStacks::ModifyPartyTemplate(TaleWorlds.CampaignSystem.MobileParty party)
      Frame: ModifyPartyTemplate at offset 1018 in file:line:column :0:0
    • Method: static System.Boolean AdonnaysTroopChanger.PatchFillPartyStacks::Prefix(TaleWorlds.CampaignSystem.MobileParty __instance, TaleWorlds.CampaignSystem.PartyTemplateObject& pt)
      Frame: Prefix at offset 148 in file:line:column :0:0
  • StoryMode
    • Method: virtual System.Void StoryMode.CampaignStoryMode::DoLoadingForGameType(TaleWorlds.Core.GameTypeLoadingStates gameTypeLoadingState, TaleWorlds.Core.GameTypeLoadingStates& nextState)
      Frame: DoLoadingForGameType at offset 31 in file:line:column :0:0
  • Sandbox
    • Method: virtual System.Void SandBox.SandBoxGameManager::DoLoadingForGameManager(TaleWorlds.Core.GameManagerLoadingSteps gameManagerLoadingStep, TaleWorlds.Core.GameManagerLoadingSteps& nextStep)
      Frame: DoLoadingForGameManager at offset 1145 in file:line:column :0:0

+ 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.3.0)
  • + SandBox Core (SandBoxCore, e1.6.3.0)
  • + Sandbox (Sandbox, e1.6.3.0)
  • + CustomBattle (CustomBattle, e1.6.3.0)
  • + StoryMode (StoryMode, e1.6.3.0)
  • + Adonnay's Troop Changer (AdonnaysTroopChanger, v1.5.1.0)
  • + Chinese Weapon (ChineseWeapon, v1.0.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.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.UpdateVolunteersOfNotables
    • Prefixes
      • Owner: mod.bannerlord.adonnay; Namespace: AdonnaysTroopChanger.PatchNotableRecruitsPrefix;

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