Skip to content

IndexOutOfRangeException: Index was outside the bounds of the array. #34

@p-kossa

Description

@p-kossa

Problem

During a Customs raid I experience the following exceptions in my BepInEx console on 2 different occasions:

[Error  : Unity Log] IndexOutOfRangeException: Index was outside the bounds of the array.
Stack trace:
GClass357+Class147.method_0 (BulletClass ammo) (at <4c96b4e7c0044a5cb491ffd486c41739>:0)
InventoryControllerClass.GetAcceptableItemsNonAlloc[TItem] (EFT.InventoryLogic.EquipmentSlot[] equipmentSlots, System.Collections.Generic.IList`1[T] preAllocatedList, System.Func`2[T,TResult] predicate) (at <4c96b4e7c0044a5cb491ffd486c41739>:0)
GClass357.CanReload (System.Boolean withCheckByPeriod, MagazineClass& foundMag, System.Collections.Generic.List`1[BulletClass]& ammoForInternalReload) (at <4c96b4e7c0044a5cb491ffd486c41739>:0)
GClass356.CanReload (System.Boolean withCheckByPeriod) (at <4c96b4e7c0044a5cb491ffd486c41739>:0)
SAIN.Components.DecisionComponent.StartBotReload () (at <b4a58874ab974cd0991d1ff96862954e>:0)
SAIN.Components.DecisionComponent.SelfActionDecisions (SAIN.SAINLogicDecision& Decision) (at <b4a58874ab974cd0991d1ff96862954e>:0)
SAIN.Components.DecisionComponent.GetDecision () (at <b4a58874ab974cd0991d1ff96862954e>:0)
SAIN.Components.DecisionComponent.Update () (at <b4a58874ab974cd0991d1ff96862954e>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class311:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

the error would constantly spam my console for a short period of time then stop completely. I was able to extract and complete my raid without any issues.

Mod list (3.5.7):

  • SAIN 2.0
  • Looting Bots (with some tweaks, might be relevant?)
  • Waypoints
  • SWAG + Nooky's
  • Realism loadouts (also might be relevant?)
  • and other minor mods

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions