Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

DynaCulture
Sustain 14 Dec, 2022 @ 7:12am
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)
< >
Showing 1-15 of 30 comments
Manpapper  [developer] 14 Dec, 2022 @ 9:17am 
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  [developer] 14 Dec, 2022 @ 11:35am 
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 14 Dec, 2022 @ 12:27pm 
This folder is empty
Sustain 14 Dec, 2022 @ 12:35pm 
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
Last edited by Sustain; 14 Dec, 2022 @ 12:44pm
Manpapper  [developer] 15 Dec, 2022 @ 10:03am 
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.
Last edited by Manpapper; 15 Dec, 2022 @ 10:08am
Manpapper  [developer] 15 Dec, 2022 @ 10:18am 
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 15 Dec, 2022 @ 3:04pm 
I have included the crash page, save file and dynaculture config too
Sustain 16 Dec, 2022 @ 12:46am 
Problem solved. Thanks
Manpapper  [developer] 16 Dec, 2022 @ 9:13am 
@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 16 Dec, 2022 @ 10:37am 
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  [developer] 16 Dec, 2022 @ 10:43am 
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 16 Dec, 2022 @ 10:47am 
Oh yeah, the exception window says it's 1.5.6.
< >
Showing 1-15 of 30 comments
Per page: 1530 50