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_Patch2(Single dt)


Inner Exception information
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: MyLittleWarband
CallStack:
  1. at MyLittleWarband.CustomUnitsVM..ctor(String unitId) in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsVM.cs:line 167
  2. at MyLittleWarband.CustomUnitsBehavior.CreateVMLayer(String unitId) in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:line 50
  3. at MyLittleWarband.EnyclopediaEditUnitPatch.Prefix(EncyclopediaUnitVM __instance) in C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\patch\EnyclopediaEditUnitPatch.cs:line 30
  4. at TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.EncyclopediaItems.EncyclopediaUnitVM.ExecuteLink_Patch1(EncyclopediaUnitVM this)

+ Involved Modules

  • MyLittleWarband
    • Method: System.Void MyLittleWarband.CustomUnitsVM::.ctor(System.String unitId)
      Frame: .ctor at offset 11740 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsVM.cs:167:13
    • Method: static System.Void MyLittleWarband.CustomUnitsBehavior::CreateVMLayer(System.String unitId)
      Frame: CreateVMLayer at offset 221 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\customUnits\CustomUnitsBehavior.cs:50:17
    • Method: static System.Boolean MyLittleWarband.EnyclopediaEditUnitPatch::Prefix(TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.EncyclopediaItems.EncyclopediaUnitVM __instance)
      Frame: Prefix at offset 319 in file:line:column C:\Users\18585\source\repos\MyLittleWarband\MyLittleWarband\patch\EnyclopediaEditUnitPatch.cs:30:17

+ Installed Modules

  • + Harmony (Bannerlord.Harmony, v2.1.1.65)
  • + BetterExceptionWindow (BetterExceptionWindow, e2.3.0.0)
  • + 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.4.0)
  • + SandBox Core (SandBoxCore, e1.6.4.0)
  • + CustomBattle (CustomBattle, e1.6.4.0)
  • + Sandbox (Sandbox, e1.6.4.0)
  • + StoryMode (StoryMode, e1.6.4.0)
  • + BannerPaste (BannerPaste, v1.0.0.0)
  • + My Little Warband (MyLittleWarband, v1.6.3.0)
  • + Raise your Banner (Raiseyourbanner, v3.7.0.0)
  • + Dismemberment (Plus) (DismembermentPlus, v2.0.1.2)

+ Assemblies

+ Harmony Patches

  • TaleWorlds.DotNet.Managed.ApplicationTick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnApplicationTickCorePatchFinalizer;

  • TaleWorlds.Engine.ScriptComponentBehaviour.OnTick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnComponentBehaviourTickPatchFinalizer;

  • TaleWorlds.MountAndBlade.Module.OnApplicationTick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnApplicationTickPatchFinalizer;

  • TaleWorlds.MountAndBlade.View.Missions.MissionView.OnMissionScreenTick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnMissionScreenTickPatchFinalizer;

  • TaleWorlds.Engine.Screens.ScreenManager.Tick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnFrameTickPatchFinalizer;

  • TaleWorlds.MountAndBlade.Mission.Tick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnTickMissionPatchFinalizer;

  • TaleWorlds.MountAndBlade.MissionBehaviour.OnMissionTick
    • Finalizers
      • Owner: org.calradia.admiralnelson.betterexceptionwindow; Namespace: BetterExceptionWindow.Main+OnMissionTickPatchFinalizer;

  • 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.GauntletUI.BannerEditorView.OnTick
    • Postfixes
      • Owner: BannerPaste stuff; Namespace: BannerPaste.patches.BannerEditorView_OnTickPostfix;

  • TaleWorlds.CampaignSystem.ViewModelCollection.PartyCharacterVM.InitializeUpgrades
    • Prefixes
      • Owner: MyLittleWarband; Namespace: MyLittleWarband.PartyUnitUpgradeLengthPatchPrefix;

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