Custom 3D assets (soldier armor set) load fail

Users who are viewing this thread

Hi team,

We are creating custom 3D armor set for bannerlord and is now able to view the created armor set ANYWHERE BUT in a Mission/Combat scene.

For example, we are able to view our armor set in wiki and shop pages. But when I entered a combat mission (be it a Arena mission, or a FieldCombat & Siege mission, or just a custom battle), as long as this mission scene needs to load soldiers that wear our armor set, after the loading screen hanging for hours, it will finally throw exceptions like below:

Array IndexOutOfRange exception:

at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at TaleWorlds.DotNet.NativeObject.Construct(UIntPtr pointer)
at ManagedCallbacks.ScriptingInterfaceOfIPhysicsShape.GetFromResource(String bodyName, Boolean mayReturnNull)
at TaleWorlds.MountAndBlade.View.PreloadHelper.WaitForMeshesToBeLoaded()
at TaleWorlds.MountAndBlade.View.Screens.MissionScreen.OnSceneRenderingStarted()
at TaleWorlds.MountAndBlade.View.Screens.MissionScreen.TaleWorlds.MountAndBlade.IMissionSystemHandler.BeforeMissionTick(Mission mission, Single realDt)
at TaleWorlds.MountAndBlade.MissionState.TickMission(Single realDt)
at TaleWorlds.MountAndBlade.MissionState.OnTick(Single realDt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, Single dt)


Could you help point out possible root causes for such an exception?
Thank you!
 
Back
Top Bottom