When an NPC party tries to donate prisoners and the party does not have a clan or clan leader, the game crashes.
I don't think it's Bannerkings code that is causing it, I think it just happens more often because people seem to die often in Bannerkings.
I fixed it by patching DefaultPrisonerDonationModel -> "CalculateRelationGainAfterHeroPrisonerDonate"
change the statement:
if (!donatedHero.MapFaction.IsKingdomFaction || !donatedHero.IsFactionLeader)
to
if ((!donatedHero.MapFaction.IsKingdomFaction || !donatedHero.IsFactionLeader) && (donatedHero.Clan != null && donatedHero.Clan.Leader != null))
Since this is an underlying game bug and not BK I don't know if you'd want to include it in your Fixes section or not.
When an NPC party tries to donate prisoners and the party does not have a clan or clan leader, the game crashes. I don't think it's Bannerkings code that is causing it, I think it just happens more often because people seem to die often in Bannerkings.
I fixed it by patching DefaultPrisonerDonationModel -> "CalculateRelationGainAfterHeroPrisonerDonate" change the statement: if (!donatedHero.MapFaction.IsKingdomFaction || !donatedHero.IsFactionLeader) to if ((!donatedHero.MapFaction.IsKingdomFaction || !donatedHero.IsFactionLeader) && (donatedHero.Clan != null && donatedHero.Clan.Leader != null))
Since this is an underlying game bug and not BK I don't know if you'd want to include it in your Fixes section or not.