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: TaleWorlds.Core.MBUnderFlowException
Message: The given value is less than the expected value : ItemRosterElement::Amount
Source: TaleWorlds.Core
CallStack:
  1. at TaleWorlds.Core.ItemRosterElement.set_Amount(Int32 value)
  2. at TaleWorlds.CampaignSystem.ItemRoster.AddToCounts(EquipmentElement rosterElement, Int32 number)
  3. at TaleWorlds.CampaignSystem.ItemRoster.AddToCounts(ItemObject item, Int32 number)
  4. at FreelancerTemplate.Test.TransferAllItems(ItemRoster items1, ItemRoster items2) in C:\Users\18585\source\repos\FreelancerTemplate\FreelancerTemplate\Test.cs:line 1184
  5. at FreelancerTemplate.Test.b__38_12() in C:\Users\18585\source\repos\FreelancerTemplate\FreelancerTemplate\Test.cs:line 624
  6. at TaleWorlds.CampaignSystem.ConversationSentence.RunConsequence(Game game)
  7. at TaleWorlds.CampaignSystem.ConversationManager.ProcessSentence(ConversationSentenceOption conversationSentenceOption)
  8. at TaleWorlds.CampaignSystem.ConversationManager.ProcessPartnerSentence()
  9. at TaleWorlds.CampaignSystem.ConversationManager.DoOptionContinue()
  10. at TaleWorlds.CampaignSystem.ConversationManager.DoOption(Int32 optionIndex)
  11. at TaleWorlds.CampaignSystem.ViewModelCollection.MissionConversationVM.OnSelectOption(Int32 optionIndex)
  12. at SandBox.GauntletUI.AutoGenerated.MapConversation__TaleWorlds_CampaignSystem_ViewModelCollection_Map_MapConversation_MapConversationVM_Dependency_10_ConversationItem__InheritedPrefab.EventListenerOf_widget_0_0(Widget widget, String commandName, Object[] args)
  13. at TaleWorlds.GauntletUI.Widget.EventFired(String eventName, Object[] args)
  14. at TaleWorlds.GauntletUI.ButtonWidget.HandleClick()
  15. at TaleWorlds.GauntletUI.ButtonWidget.OnMouseReleased()
  16. at TaleWorlds.GauntletUI.EventManager.MouseUp()
  17. at TaleWorlds.GauntletUI.UIContext.UpdateInput(InputType handleInputs)
  18. at TaleWorlds.Engine.Screens.ScreenManager.Update()
  19. at TaleWorlds.Engine.Screens.ScreenManager.Tick_Patch1(Single dt)

+ Involved Modules

  • FreelancerTemplate
    • Method: static System.Void FreelancerTemplate.Test::TransferAllItems(TaleWorlds.CampaignSystem.ItemRoster items1, TaleWorlds.CampaignSystem.ItemRoster items2)
      Frame: TransferAllItems at offset 593 in file:line:column C:\Users\18585\source\repos\FreelancerTemplate\FreelancerTemplate\Test.cs:1184:17
    • Method: System.Void FreelancerTemplate.Test::b__38_12()
      Frame: b__38_12 at offset 647 in file:line:column C:\Users\18585\source\repos\FreelancerTemplate\FreelancerTemplate\Test.cs:624:17
  • Sandbox
    • Method: System.Void SandBox.GauntletUI.AutoGenerated.MapConversation__TaleWorlds_CampaignSystem_ViewModelCollection_Map_MapConversation_MapConversationVM_Dependency_10_ConversationItem__InheritedPrefab::EventListenerOf_widget_0_0(TaleWorlds.GauntletUI.Widget widget, System.String commandName, System.Object[] args)
      Frame: EventListenerOf_widget_0_0 at offset 51 in file:line:column :0:0

+ Installed Modules

  • + Harmony (Bannerlord.Harmony, v2.1.1.65)
  • + 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.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)
  • + Freelancer Template (FreelancerTemplate, v1.6.2.0)
  • + Raise your Torch (Raiseyourtorch, e1.6.3.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;

  • SandBox.AlleyFightSpawnHandler.AfterStart
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.AlleyArmourPatchPrefix;

  • TaleWorlds.CampaignSystem.MobileParty.get_EffectiveEngineer
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.EffectiveEngineerPatchPrefix;

  • TaleWorlds.CampaignSystem.MobileParty.get_EffectiveQuartermaster
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.EffectiveQuartermasterPatchPrefix;

  • TaleWorlds.CampaignSystem.MobileParty.get_EffectiveScout
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.EffectiveScoutPatchPrefix;

  • TaleWorlds.CampaignSystem.MobileParty.get_EffectiveSurgeon
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.EffectiveSurgeontPatchPrefix;

  • TaleWorlds.MountAndBlade.Source.Missions.Handlers.BasicMissionHandler.CreateWarningWidget
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.NoRetreatPatchPrefix;

  • SandBox.MissionAgentHandler.OnRemoveBehaviour
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.AgentRemovePatchPrefix;

  • SandBox.Source.Missions.VisualTrackerMissionBehavior.RefreshCommonAreas
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.CommonAreaPatchPrefix;

  • SandBox.TournamentMissions.Missions.TournamentBehavior.OnPlayerWinTournament
    • Postfixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.AddTournamentPrizePatchPostfix;

  • TaleWorlds.MountAndBlade.BehaviorComponent.InformSergeantPlayer
    • Postfixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.BattleCommandsPatchPostfix;

  • SandBox.ViewModelCollection.Nameplate.SettlementNameplateVM.RefreshBindValues
    • Postfixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.PartyNamePlateTrackPatchPostfix;

  • TaleWorlds.CampaignSystem.HeroDeveloper.AddSkillXp
    • Postfixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.SkillsFromPartyPatchPostfix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.Towns.HeroAgentSpawnCampaignBehavior.AddWandererLocationCharacter
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.TournamentWanderPatchPrefix;

  • SandBox.TournamentFightMissionController.GetTeamWeaponEquipmentList
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.TournamentWeaponsPatchPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.SiegeAftermathCampaignBehavior.menu_settlement_taken_continue_on_consequence
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.SiegeAftermathPatchPrefix;

  • TaleWorlds.CampaignSystem.PlayerEncounter.DoLootParty
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.NoLootPatchPrefix;

  • TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.PlayerArmyWaitBehavior.OnArmyDispersed
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.NoDisperseMessagePatchPrefix;

  • TaleWorlds.CampaignSystem.MapEvent.IsPlayerSergeant
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.SergentAssignmentPatchPrefix;

  • TaleWorlds.CampaignSystem.Clan.get_Banner
    • Prefixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.ReplaceBannerPatchPrefix;

  • SandBox.ViewModelCollection.Nameplate.PartyNameplateVM.RefreshBinding
    • Postfixes
      • Owner: FreelancerTemplate; Namespace: FreelancerTemplate.HidePartyNamePlatePatchPostfix;

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