Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

My Little Warband | Your Own Custom Troop Tree 1.1.0
Talsedrin Nov 15, 2022 @ 4:26am
Crash on copy template
Hi when i try to make a light modified unit tree i have a crash when i try to copy .
It's with The Old Realms on T2 troop.
here is the better exception crash log:
Inner exception callstack:
at TaleWorlds.CampaignSystem.CultureObject.ToString()
at MyLittleWarband.CustomUnitsBehavior.GetHint(CharacterObject character)
at MyLittleWarband.CustomUnitsBehavior.CopyTemplate(String unitId)
at MyLittleWarband.CustomUnitsVM.CopyTemplate()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_Patch1(MethodInfo methodInfo, Object obj, Object[] args)
at TaleWorlds.Library.ViewModel.ExecuteCommand_Patch1(ViewModel this, String commandName, Object[] parameters)
at TaleWorlds.GauntletUI.Data.GauntletView.OnCommand(String command, Object[] args)
at TaleWorlds.GauntletUI.BaseTypes.Widget.EventFired(String eventName, Object[] args)
at TaleWorlds.GauntletUI.BaseTypes.ButtonWidget.HandleClick()
at TaleWorlds.GauntletUI.BaseTypes.ButtonWidget.OnMouseReleased()
at TaleWorlds.GauntletUI.EventManager.MouseUp()
at TaleWorlds.GauntletUI.UIContext.UpdateInput(InputType handleInputs)
at TaleWorlds.ScreenSystem.ScreenManager.Update()
at TaleWorlds.ScreenSystem.ScreenManager.Tick_Patch1(Single dt, Boolean activeMouseVisible)
Last edited by Talsedrin; Nov 15, 2022 @ 4:30am
< >
Showing 1-7 of 7 comments
PhaserFelix_YT  [developer] Nov 15, 2022 @ 4:36am 
Originally posted by Talsedrin:
Hi when i try to make a light modified unit tree i have a crash when i try to copy .
It's with The Old Realms on T2 troop.
here is the better exception crash log:
Inner exception callstack:
at TaleWorlds.CampaignSystem.CultureObject.ToString()
at MyLittleWarband.CustomUnitsBehavior.GetHint(CharacterObject character)
at MyLittleWarband.CustomUnitsBehavior.CopyTemplate(String unitId)
at MyLittleWarband.CustomUnitsVM.CopyTemplate()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_Patch1(MethodInfo methodInfo, Object obj, Object[] args)
at TaleWorlds.Library.ViewModel.ExecuteCommand_Patch1(ViewModel this, String commandName, Object[] parameters)
at TaleWorlds.GauntletUI.Data.GauntletView.OnCommand(String command, Object[] args)
at TaleWorlds.GauntletUI.BaseTypes.Widget.EventFired(String eventName, Object[] args)
at TaleWorlds.GauntletUI.BaseTypes.ButtonWidget.HandleClick()
at TaleWorlds.GauntletUI.BaseTypes.ButtonWidget.OnMouseReleased()
at TaleWorlds.GauntletUI.EventManager.MouseUp()
at TaleWorlds.GauntletUI.UIContext.UpdateInput(InputType handleInputs)
at TaleWorlds.ScreenSystem.ScreenManager.Update()
at TaleWorlds.ScreenSystem.ScreenManager.Tick_Patch1(Single dt, Boolean activeMouseVisible)

Oh, yea it if I read it correctly, it seems like the game don't like that you copied a template since the culture is a modded one. Which is weird since I did not encounter this. Might be because I was in editor mode.

Anyway, try not using that import button on modded templates for now. And I look into it later, it is probably also since it adds new skills.

Everything else should work fine with TOR.

Sorry for the inconvenience. For now just refrain from using the import button.

Also 1.0.1 or 1.0.0?
Last edited by PhaserFelix_YT; Nov 15, 2022 @ 4:37am
Talsedrin Nov 15, 2022 @ 4:42am 
1.0.1 i think i didn't lock the version by getting in the "beta" version.
then if i can't import can i make a copy of the troop tree of the empire in a personnal unit so i can use it as a base for modifi it ? i have notepad and still remember a little html from previous lesson ^^
PhaserFelix_YT  [developer] Nov 15, 2022 @ 5:08am 
Originally posted by Talsedrin:
1.0.1 i think i didn't lock the version by getting in the "beta" version.
then if i can't import can i make a copy of the troop tree of the empire in a personnal unit so i can use it as a base for modifi it ? i have notepad and still remember a little html from previous lesson ^^

Yea, the units are still there (Just hidden) so I guess it would be possible to copy the tree into it. Tho once again, all this is speculations, therefore I should not promise anything.

I wish to test TOR again (I left it temporary since I got tired of all the 25min load time)
Great mod, just very long load times.
Talsedrin Nov 15, 2022 @ 5:14am 
Same here ^^
Just load it and build the cache when you go eat and then enjoy ^^ btw thanck for the work on this mod have a nice day
PhaserFelix_YT  [developer] Nov 15, 2022 @ 5:16am 
Originally posted by Talsedrin:
Same here ^^
Just load it and build the cache when you go eat and then enjoy ^^ btw thanck for the work on this mod have a nice day
Yea cheers mate!
Talsedrin Nov 16, 2022 @ 11:16am 
Hi again, i think i know why the copy template crash, it's the new skill set that the mod use (faith gunpowder and magic ) who crash the template creation . do you think i can make a "patch" or at least find a way to add the discipline skill in the mlb?
PhaserFelix_YT  [developer] Nov 16, 2022 @ 3:49pm 
Originally posted by Talsedrin:
Hi again, i think i know why the copy template crash, it's the new skill set that the mod use (faith gunpowder and magic ) who crash the template creation . do you think i can make a "patch" or at least find a way to add the discipline skill in the mlb?

Well that is where the problem comes. I have added the gunpowder one, but that resulted in me crashing when I am not using TOR.

Since then MLB is searching for skills that don't exist.
I am sure someone will make a separete version where it only compatible with TOR.

But for now, just refrain from using the new skills. I know it sounds boring but I can't really do anything about it without making other people crash.

I will tho look into it if I get freetime if there is a way to add the skills as an addon.
< >
Showing 1-7 of 7 comments
Per page: 1530 50