Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

DynaCulture
Sustain 2022 年 12 月 14 日 上午 7:12
Crash after loading save
Exception information
Type: System.Collections.Generic.KeyNotFoundException
Message: The given key was not present in the dictionary.
Source: mscorlib
CallStack:
at TValue System.Collections.Generic.Dictionary.get_Item(TKey key)
at CultureObject DynaCulture.Data.DynaCultureStatus.getTopCulture()
at decimal DynaCulture.Data.DynaCultureStatus.getTopCultureValue()
at int DynaCulture.Data.DynaCultureStatus.getInfluenceFromSettlement(Settlement otherSettlement, Settlement thisSettlement, bool firstTimeSetup)
at int DynaCulture.Data.DynaCultureStatus.recalculateInfluencers(bool firstTimeSetup)
at void DynaCulture.Data.DynaCultureStatus.calculateInfluenceChanges()
at void DynaCulture.Data.DynaCultureStatus.OnDailyTick()
at void DynaCulture.Data.DynaCultureBehavior.DailyTickSettlementMod(Settlement settlement)
at void TaleWorlds.CampaignSystem.MbEvent.InvokeList(EventHandlerRec list, T t)
at void TaleWorlds.CampaignSystem.CampaignEvents.DailyTickSettlement(Settlement settlement)
at void TaleWorlds.CampaignSystem.CampaignEventDispatcher.DailyTickSettlement(Settlement settlement)
at void TaleWorlds.CampaignSystem.CampaignPeriodicEventManager+PeriodicTicker.PeriodicTickSome(double timeUnitsElapsed)
at void TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicDailyTick()
at void TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.TickPeriodicEvents()
at void TaleWorlds.CampaignSystem.Campaign.Tick()
at void TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(float dt)
at void TaleWorlds.CampaignSystem.GameState.MapState.OnTick(float dt)
at void TaleWorlds.Core.GameStateManager.OnTick(float dt)
at void TaleWorlds.Core.Game.OnTick(float dt)
at void TaleWorlds.Core.GameManagerBase.OnTick(float dt)
at void TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, float dt)
< >
正在显示第 1 - 15 条,共 30 条留言
Manpapper  [开发者] 2022 年 12 月 14 日 上午 9:17 
Hi,
If you still have the crash and you have butter lib, can you click the send crash report and send me the url thanks
Manpapper  [开发者] 2022 年 12 月 14 日 上午 11:35 
Would you mind sending me your save file and your dynaculture data file ?

the dynaculture datafile can be find here (the name is the one of your character name) :
%UserProfile%\Documents\Mount and Blade II Bannerlord\Configs\DynaCulture
Sustain 2022 年 12 月 14 日 下午 12:27 
This folder is empty
Sustain 2022 年 12 月 14 日 下午 12:35 
Found it in recycle bin. After the first exception i thought that if file delete, then it will be recreated correctly.

https://drive.google.com/file/d/1hulh6FZlOAbf82tEACE5B4ceFuaCy0t5/view?usp=share_link
最后由 Sustain 编辑于; 2022 年 12 月 14 日 下午 12:44
Manpapper  [开发者] 2022 年 12 月 15 日 上午 10:03 
I think I was able to identify the issue.
The mod is caching all culture based on kingdom culture.
In your case one of the settlement have aserai culture but there isn't any kingdom with aserai culture remaining, which cause this bug.

Thanks for the files.
最后由 Manpapper 编辑于; 2022 年 12 月 15 日 上午 10:08
Manpapper  [开发者] 2022 年 12 月 15 日 上午 10:18 
I push version v1.5.6 of the mod it should fix your problem.
I wasn't able to load the save due to a crash but I think it's due to me not having all your mods installed.
Rad 2022 年 12 月 15 日 下午 3:04 
I have included the crash page, save file and dynaculture config too
Sustain 2022 年 12 月 16 日 上午 12:46 
Problem solved. Thanks
Manpapper  [开发者] 2022 年 12 月 16 日 上午 9:13 
@Rad you have too many mods, i don't really want to download them all:winter2019joyfultearsyul:...
I tried to make a fix without testing with your savefile, please tell me if it worked.
Rad 2022 年 12 月 16 日 上午 10:37 
I understand its too many mods to test. After this update however I am unable to load the save. Before I was able to load the save, but would get exceptions thrown every few seconds, now I can't load it at all. The error is still "Given key not present in the dictionary". I will upload the crash log to the drive folder from before.
Manpapper  [开发者] 2022 年 12 月 16 日 上午 10:43 
Can you check that steam updated the mod (v1.5.7)?
Sometimes Steam doesn't update automatically mods if so unsubscribe and subscribe again
Rad 2022 年 12 月 16 日 上午 10:47 
Oh yeah, the exception window says it's 1.5.6.
< >
正在显示第 1 - 15 条,共 30 条留言
每页显示数: 1530 50