MnB2-Bannerlord-CommunityPatch
MnB2-Bannerlord-CommunityPatch copied to clipboard
Crash near Rovalt
- Reasons
Source: mscorlib
Exception has been thrown by the target of an invocation.
- Inner exception
Source: mscorlib
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
- Callstacks
Protip: Use a debugger like dnSpy or Visual studio to trace the source of error, by stepping the program line by line.
Inner exception callstack:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at TaleWorlds.CampaignSystem.LootCollector.GetRandomEquipment(CharacterObject ch)
at TaleWorlds.CampaignSystem.LootCollector.LootCasualties(ICollection`1 shareFromCasualties, Single lootFactor)
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 CommunityPatch.LootCollectorHelper.LootCasualties(Object lootCollector, ICollection`1 shareFromCasualties, Single lootFactor) in C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules\CommunityPatch\src\CommunityPatch\LootCollectorHelper.cs:line 26
at CommunityPatch.Patches.Perks.Intelligence.Engineering.ScavengerPatch.LootCasualtiesForAi(Object __instance, PartyBase partyToReceiveLoot, List`1 casualties, Single lootFactor) in C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules\CommunityPatch\src\CommunityPatch\Patches\Perks\Cunning\Roguery\ScavengerPatch.cs:line 144
at CommunityPatch.Patches.Perks.Intelligence.Engineering.ScavengerPatch.Prefix(Object& __instance, PartyBase partyToReceiveLoot, PartyBase winnerParty, Single lootAmount) in C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules\CommunityPatch\src\CommunityPatch\Patches\Perks\Cunning\Roguery\ScavengerPatch.cs:line 95
at DMD?14496663::GiveShareOfLootToParty_Patch1>(LootCollector this, PartyBase partyToReceiveLoot, PartyBase winnerParty, Single lootAmount)
at TaleWorlds.CampaignSystem.MapEventSide.DistributeLootAmongWinners(LootCollector lootCollector)
at TaleWorlds.CampaignSystem.MapEvent.CalculateLootShares(LootCollector lootCollector)
at TaleWorlds.CampaignSystem.MapEvent.CalculateBattleResults(Boolean forScoreBoard)
at TaleWorlds.CampaignSystem.MapEvent.FinishBattle()
at DMD?23327434::Update_Patch2>(MapEvent this)
at TaleWorlds.CampaignSystem.MapEventManager.Tick()
at TaleWorlds.CampaignSystem.Campaign.Tick(Single dt)
at TaleWorlds.CampaignSystem.Campaign.RealTick(Single realDt)
at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at DMD?26897301::OnApplicationTick_Patch2>(Module this, Single dt)