MapStudioProject / Track-Studio

A powerful MK8 map editor for creating and editing track models, objects, paths and animations.
MIT License
80 stars 13 forks source link

When trying to replace an entire course, it spits out this error. #10

Open Haihatu opened 2 years ago

Haihatu commented 2 years ago

It's kind of hard to explain through text, so I made a short video showing how to get the error found here.

Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index) at CafeLibrary.FSHP..ctor(ResFile resFile, FSKL skeleton, Model model, Shape shape, List1 materials) in C:\projects\track-studio\Plugins\CafeLibrary\Bfres\Editing\Nodes\ModelWrapper.cs:line 2006 at CafeLibrary.FMDL.ReloadModel() in C:\projects\track-studio\Plugins\CafeLibrary\Bfres\Editing\Nodes\ModelWrapper.cs:line 285 at CafeLibrary.FMDL.ImportModel(Model model, List1 materials, ModelImportSettings settings) in C:\projects\track-studio\Plugins\CafeLibrary\Bfres\Editing\Nodes\ModelWrapper.cs:line 511 at CafeLibrary.FMDL.ImportModel(String filePath, Boolean replacing, Action onImported) in C:\projects\track-studio\Plugins\CafeLibrary\Bfres\Editing\Nodes\ModelWrapper.cs:line 427 at CafeLibrary.FMDL.ReplaceDialog() in C:\projects\track-studio\Plugins\CafeLibrary\Bfres\Editing\Nodes\ModelWrapper.cs:line 396