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.MissingMethodException
Message: Method not found: '!!0 TaleWorlds.Core.MBRandom.ChooseWeighted(System.Collections.Generic.IEnumerable`1, System.Func`2)'.
Source: Populations
CallStack:
  1. at Populations.PopulationManager.PopulationData.SelectAndUpdatePop(Settlement settlement, Int32 pops)
  2. at Populations.PopulationManager.PopulationData.UpdatePopulation(Settlement settlement, Int32 pops, PopType target) in C:\Users\Rodrigo\source\repos\Populations\Managers\PopulationManager.cs:line 248
  3. at Populations.Models.GrowthModel.CalculateHearthGrowth(Village village, ExplainedNumber& baseResult) in C:\Users\Rodrigo\source\repos\Populations\Models\GrowthModel.cs:line 34
  4. at Populations.Models.ProsperityModel.CalculateHearthChange(Village village, Boolean includeDescriptions) in C:\Users\Rodrigo\source\repos\Populations\Models\ProsperityModel.cs:line 14
  5. at TaleWorlds.CampaignSystem.Village.get_HearthChange()
  6. at TaleWorlds.CampaignSystem.ViewModelCollection.TooltipVMExtensions.UpdateTooltip(TooltipVM tooltipVM, Settlement settlement, Boolean openedFromMenuLayout)
  7. at TaleWorlds.Core.ViewModelCollection.TooltipVM.OpenTooltip(Type type, Object[] args)
  8. at SandBox.View.Map.MapScreen.OnHoverMapEntity(IMapEntity mapEntity)
  9. at SandBox.View.Map.MapScreen.HandleMouse(Single dt)
  10. at SandBox.View.Map.MapScreen.TaleWorlds.CampaignSystem.IMapStateHandler.BeforeTick(Single dt)
  11. at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
  12. at TaleWorlds.CampaignSystem.MapState.OnTick(Single dt)
  13. at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
  14. at TaleWorlds.Core.Game.OnTick(Single dt)
  15. at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
  16. at TaleWorlds.MountAndBlade.Module.OnApplicationTick(Single dt)
  17. at TaleWorlds.DotNet.Managed.ApplicationTick_Patch1(Single dt)

+ Involved Modules

  • Populations
    • Method: System.Void Populations.PopulationData::SelectAndUpdatePop(TaleWorlds.CampaignSystem.Settlement settlement, System.Int32 pops)
      Frame: SelectAndUpdatePop at offset 0 in file:line:column C:\Users\Rodrigo\source\repos\Populations\Managers\PopulationManager.cs:269:13
    • Method: System.Void Populations.PopulationData::UpdatePopulation(TaleWorlds.CampaignSystem.Settlement settlement, System.Int32 pops, Populations.PopType target)
      Frame: UpdatePopulation at offset 725 in file:line:column C:\Users\Rodrigo\source\repos\Populations\Managers\PopulationManager.cs:248:26
    • Method: System.Void Populations.Models.GrowthModel::CalculateHearthGrowth(TaleWorlds.CampaignSystem.Village village, TaleWorlds.CampaignSystem.ExplainedNumber& baseResult)
      Frame: CalculateHearthGrowth at offset 432 in file:line:column C:\Users\Rodrigo\source\repos\Populations\Models\GrowthModel.cs:34:13
    • Method: virtual TaleWorlds.CampaignSystem.ExplainedNumber Populations.Models.ProsperityModel::CalculateHearthChange(TaleWorlds.CampaignSystem.Village village, System.Boolean includeDescriptions)
      Frame: CalculateHearthChange at offset 301 in file:line:column C:\Users\Rodrigo\source\repos\Populations\Models\ProsperityModel.cs:14:17
  • Sandbox
    • Method: System.Void SandBox.View.Map.MapScreen::OnHoverMapEntity(TaleWorlds.CampaignSystem.IMapEntity mapEntity)
      Frame: OnHoverMapEntity at offset 66 in file:line:column :0:0
    • Method: System.Void SandBox.View.Map.MapScreen::HandleMouse(System.Single dt)
      Frame: HandleMouse at offset 3420 in file:line:column :0:0
    • Method: virtual System.Void SandBox.View.Map.MapScreen::TaleWorlds.CampaignSystem.IMapStateHandler.BeforeTick(System.Single dt)
      Frame: TaleWorlds.CampaignSystem.IMapStateHandler.BeforeTick at offset 2001 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.14.0)
  • + Native (Native, e1.6.5.0)
  • + SandBox Core (SandBoxCore, e1.6.5.0)
  • + CustomBattle (CustomBattle, e1.6.5.0)
  • + Sandbox (Sandbox, e1.6.5.0)
  • + StoryMode (StoryMode, e1.6.5.0)
  • + Dismemberment (Plus) (DismembermentPlus, v2.0.1.5)
  • + Improved Garrisons (ImprovedGarrisons, v4.0.3.11)
  • + Open Source Armory (OpenSourceArmory, v1.7.0.0)
  • + Populations Of Calradia (Populations, v1.2.0.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;

  • 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.Actions.SellPrisonersAction.ApplyForAllPrisoners
    • Prefixes
      • Owner: Populations; Namespace: Populations.Patches.ApplyAllPrisionersPatchPrefix;

  • TaleWorlds.CampaignSystem.Actions.SellPrisonersAction.ApplyForSelectedPrisoners
    • Prefixes
      • Owner: Populations; Namespace: Populations.Patches.ApplySelectedPrisionersPatchPrefix;

  • TaleWorlds.CampaignSystem.Actions.ChangeOwnerOfSettlementAction.ApplyInternal
    • Prefixes
      • Owner: Populations; Namespace: Populations.Patches.ChangeOnwerPatchPrefix;

  • TaleWorlds.CampaignSystem.DefaultBuildingTypes.InitializeAll
    • Prefixes
      • Owner: Populations; Namespace: Populations.Patches.InitializeBuildingsPatchPrefix;

  • TaleWorlds.CampaignSystem.Village.DailyTick
    • Prefixes
      • Owner: Populations; Namespace: Populations.Patches.VillageTickPatchPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.VillageBehaviors.VillagerCampaignBehavior.OnSettlementEntered
    • Prefixes
      • Owner: Populations; Namespace: Populations.Patches.VillagerSettlementEnterPatchPrefix;

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