StressLevelZero / MarrowSDK-Legacy

MIT License
288 stars 36 forks source link

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

Open joshuabrody2001 opened 1 year ago

joshuabrody2001 commented 1 year ago

I genuinely have no clue what I am doing wrong I have tried creating a entire new project everything a different avatar and all I just keep getting this error no matter what when I try to generate the packed assets it does nothing and gives me this error when I try to pack the entire thing into a mod it gives me the error I have no clue and I'm at my wits end.

This is the full error.

IndexOutOfRangeException: Index was outside the bounds of the array. UnityMeshSimplifier.MeshSimplifier.UpdateReferences () (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/Whinarn.UnityMeshSimplifier.Runtime/UnityMeshSimplifier/MeshSimplifier.cs:1133) UnityMeshSimplifier.MeshSimplifier.UpdateMesh (System.Int32 iteration) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/Whinarn.UnityMeshSimplifier.Runtime/UnityMeshSimplifier/MeshSimplifier.cs:910) UnityMeshSimplifier.MeshSimplifier.SimplifyMesh (System.Single quality) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/Whinarn.UnityMeshSimplifier.Runtime/UnityMeshSimplifier/MeshSimplifier.cs:2096) SLZ.Marrow.Utilities.MeshCroncher.AutoSimplifyMesh (UnityEngine.Mesh inputMesh, UnityEngine.Mesh& outputMesh, System.Single quality, System.Boolean forceQuality, System.String name, System.Boolean forceLossless) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK/SLZ.Marrow.Utilities/MeshCroncher.cs:355) SLZ.Marrow.Utilities.MeshCroncher.CronchMesh (UnityEngine.GameObject gameObject, System.Int32 maxLODLevel, System.Single quality, System.Boolean forceQuality) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK/SLZ.Marrow.Utilities/MeshCroncher.cs:188) SLZ.Marrow.Warehouse.GameObjectCrate.GeneratePreviewMesh () (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK/SLZ.Marrow.Warehouse/GameObjectCrate.cs:159) SLZ.Marrow.Warehouse.GameObjectCrate.GeneratePackedAssets (System.Boolean saveAsset) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK/SLZ.Marrow.Warehouse/GameObjectCrate.cs:101) SLZ.MarrowEditor.PalletPackerEditor.GeneratePackedAssets (SLZ.Marrow.Warehouse.Pallet pallet, System.Boolean saveAssets) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK.Editor/SLZ.MarrowEditor/PalletPackerEditor.cs:242) SLZ.MarrowEditor.PalletPackerEditor.PackPallet (SLZ.Marrow.Warehouse.Pallet pallet, System.Boolean setupGroups, System.Boolean buildContent, System.Boolean ignoreValidSettings) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK.Editor/SLZ.MarrowEditor/PalletPackerEditor.cs:137) SLZ.MarrowEditor.PalletPackerEditor.PackPallet (SLZ.Marrow.Warehouse.Pallet pallet) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK.Editor/SLZ.MarrowEditor/PalletPackerEditor.cs:48) SLZ.MarrowEditor.AssetWarehouseWindow.OnGUI () (at Library/PackageCache/com.stresslevelzero.marrow.sdk@b6bc405d3d/SLZ.Marrow.SDK.Editor/SLZ.MarrowEditor/AssetWarehouseWindow.cs:160) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <1f0be198f5164d2489de92f22c998266>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <1f0be198f5164d2489de92f22c998266>:0) UnityEditor.DockArea.OldOnGUI () (at <1f0be198f5164d2489de92f22c998266>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at :0) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at :0) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at :0) UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at :0) UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at :0) UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at :0) UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at :0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at :0) UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at :0) UnityEngine.UIElements.EventDispatcher.OpenGate () (at :0) UnityEngine.UIElements.EventDispatcherGate.Dispose () (at :0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at :0) UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at :0) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at :0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <89d2c0fe37e0454991daf2807b7dcb63>:0)