MnB2-Bannerlord-CommunityPatch icon indicating copy to clipboard operation
MnB2-Bannerlord-CommunityPatch copied to clipboard

Crash in RecruitVolunteerTroopVM

Open Jayell123 opened this issue 4 years ago • 3 comments

I tried the updated version for 1.4.1 and the 1.4.0 but I run into the same error

Here is the debug log. My current savegame has nearly 70 hours on it so I really hope you guys are able to find a fix! Thanks!

  • Reasons Source: mscorlib Exception has been thrown by the target of an invocation.

  • Inner exception Source: TaleWorlds.CampaignSystem.ViewModelCollection Object reference not set to an instance of an object.

  • Callstacks Protip: Use a debugger like dnSpy or Visual studio to trace the source of error, by stepping the program line by line.

Inner exception callstack:
   at TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.RecruitVolunteerTroopVM..ctor(RecruitVolunteerVM owner, CharacterObject character, Int32 index, Action`1 onClick, Action`1 onRemoveFromCart)
   at TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.RecruitVolunteerVM..ctor(Hero owner, List`1 troops, Action`2 onRecruit, Action`2 onRemoveFromCart)
   at TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.RecruitmentVM.RefreshScreen()
   at TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.RecruitmentVM.RefreshValues()
   at TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.RecruitmentVM..ctor()
   at SandBox.GauntletUI.GauntletMenuRecruitVolunteers.OnInitialize()
   at SandBox.View.Menu.MenuViewContext.AddMenuView[T](Object[] parameters)
   at SandBox.View.Menu.MenuViewContext.TaleWorlds.CampaignSystem.IMenuContextHandler.OnOpenRecruitVolunteers()
   at TaleWorlds.CampaignSystem.GameMenus.GameMenuInitializationHandlers.PlayerTownVisit.game_menu_recruit_volunteers_on_consequence(MenuCallbackArgs args)
   at TaleWorlds.CampaignSystem.GameMenus.GameMenuCallbackManager.OnConsequence(String menuId, GameMenuOption gameMenuOption, MenuContext state)
   at TaleWorlds.CampaignSystem.GameMenus.GameMenuOption.RunConsequence(MenuContext menuContext)
Outer exception callstack:
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at TaleWorlds.Library.Common.InvokeWithLog(MethodInfo methodInfo, Object obj, Object[] args)
   at DMD?12208833::ExecuteCommand_Patch1>(ViewModel this, String commandName, Object[] parameters)
   at TaleWorlds.GauntletUI.Data.GauntletView.OnCommand(String command, Object[] args)
   at System.Action`3.Invoke(T1 arg1, T2 arg2, T3 arg3)
   at TaleWorlds.GauntletUI.Widget.EventFired(String eventName, Object[] args)
   at TaleWorlds.GauntletUI.ButtonWidget.HandleClick()
   at TaleWorlds.GauntletUI.ButtonWidget.OnMouseReleased()
   at TaleWorlds.GauntletUI.EventManager.MouseUp()
   at TaleWorlds.GauntletUI.UIContext.UpdateInput(InputType handleInputs)
   at TaleWorlds.Engine.Screens.ScreenManager.Update()
   at DMD?11171691::Tick_Patch1>(Single dt)

Jayell123 avatar May 20 '20 05:05 Jayell123

This doesn't appear to be related to Community Patch.

Does this happen without Community Patch loaded?

We can still try to write a fix if it isn't related.

Tyler-IN avatar May 20 '20 06:05 Tyler-IN

Yeah :| I dunno wat to do. Every city isn't buying food from their villagers and caravans too now. I think I just need to uninstall all of my mods and start fresh. Pretty sad tbh but maybe I can salvage my save game.

Jayell123 avatar May 21 '20 23:05 Jayell123

I get this error aswell when trying to recruit troops in a village. I also get this error when I try to attack certain armies, which may be related:

https://imgur.com/SaA7vot

Both of these errors occur even after completely reinstalling the game and starting new saves.

pointfeev avatar May 24 '20 14:05 pointfeev