Open ataniphor opened 1 year ago
This happened to me as well. Did a bit of debugging with dnSpy and it seems a party object has some invalid fields, these will be the values in my case. Modified the code to remove the event from the queue and I finally managed to get past the exception. Maybe this will help developers
Hi, I have an error just like this blocking my campaign (with the same version, and pretty much same mods). I'm ready to try using dnSpy to solve this, is it manageable without any coding experience ?
There a bin file patch for Calradia Expanded on the Banner Kings discord server #test-version. You'll find the file on the Dec 8, 2022 post. Had to copy over the bin in the CE module. I could even load my old corrupted save after.
I am using the Bannerkings at war collection (https://next.nexusmods.com/mountandblade2bannerlord/collections/pnzkoo?tab=mods) and constantly getting this crash after several hours of game play. (often crashes around 20 days). Afterwards, earlier saves of that campaign are also corrupted regardless if the saves were from before the crash happened. Had a few extra save files and it did not help.
After disabling a bunch of other mods, disabling bannerkings actually gets a different crash report but its likely due to the save being incompatible. (mscorlib null value sorta thing)
The current callstack is:
Exception information Type: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: TaleWorlds.CampaignSystem CallStack:
enhanced stacktrace:
Frame: Hero TaleWorlds.CampaignSystem.Party.PartyComponents.BanditPartyComponent.get_PartyOwner() (IL Offset: 0)
Frame: Hero TaleWorlds.CampaignSystem.Party.PartyBase.get_Owner() (IL Offset: 0)
Frame: IFaction TaleWorlds.CampaignSystem.Party.MobileParty.get_MapFaction() (IL Offset: 0)
Frame: void TaleWorlds.CampaignSystem.MapEvents.MapEvent.Update() (IL Offset: 41)
Frame: void TaleWorlds.CampaignSystem.MapEvents.MapEventManager.Tick() (IL Offset: 92)
Frame: void TaleWorlds.CampaignSystem.Campaign.Tick() (IL Offset: 68)
Frame: void TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(float dt) (IL Offset: 140)
Frame: void TaleWorlds.CampaignSystem.GameState.MapState.OnTick(float dt) (IL Offset: 77)
Frame: void TaleWorlds.Core.GameStateManager.OnTick(float dt) (IL Offset: 47)
Frame: void TaleWorlds.Core.Game.OnTick(float dt) (IL Offset: 0)
Frame: void TaleWorlds.Core.GameManagerBase.OnTick_Patch9(GameManagerBase this, float dt) (IL Offset: -1)
Frame: void TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch2(Module this, float dt) (IL Offset: -1)
Mod Version tested on vers 1.14, modlist is the Bannerkings at war collection Installed Modules