Post by tenebrous on Nov 12, 2024 15:01:46 GMT -5
Hello!
I was trying to edit the new pet crow object, and I was having some trouble replacing the meshes for the different geometry states. To narrow down the issue, I started fresh, exported the original meshes and reimported them, and I got this error message:
The Sims 4 Studio - Version 3.2.3.0
System.AggregateException: One or more errors occurred. (Model resource does not have the correct length.)
---> System.IO.InvalidDataException: Model resource does not have the correct length.
at S4Studio.Data.IO.BuyBuild.Geometry.ModelMesh.Read(Stream stream, IReferenceList resources) in X:\TheS4Studio\S4Studio.Shared\IO\BuyBuild\Geometry\ModelMesh.cs:line 161
at S4Studio.Data.IO.BuyBuild.Geometry.ModelLOD.ReadData(Stream stream, IReferenceList references) in X:\TheS4Studio\S4Studio.Shared\IO\BuyBuild\Geometry\ModelLOD.cs:line 61
at S4Studio.Data.IO.Core.LinkedResourceSerializer.GetBlock(Int32 index, LinkedResource resource) in X:\TheS4Studio\S4Studio.Shared\IO\Core\LinkedResourceSerializer.cs:line 299
at S4Studio.Data.IO.Core.LinkedResource.Read(Stream stream) in X:\TheS4Studio\S4Studio.Shared\IO\Core\LinkedResource.cs:line 110
at S4Studio.ViewModels.BuyBuildLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path) in X:\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 368
at S4Studio.ViewModels.BuyBuildLodItem.<>c__DisplayClass46_0.<ImportMesh>b__0() in X:\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 331
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
I thought maybe this was because I tried selective clone, but each of the options for making objects seems to have some issue. I'm new to modding objects, so I'm probably overlooking something obvious. I'd really appreciate some guidance.
I was trying to edit the new pet crow object, and I was having some trouble replacing the meshes for the different geometry states. To narrow down the issue, I started fresh, exported the original meshes and reimported them, and I got this error message:
The Sims 4 Studio - Version 3.2.3.0
System.AggregateException: One or more errors occurred. (Model resource does not have the correct length.)
---> System.IO.InvalidDataException: Model resource does not have the correct length.
at S4Studio.Data.IO.BuyBuild.Geometry.ModelMesh.Read(Stream stream, IReferenceList resources) in X:\TheS4Studio\S4Studio.Shared\IO\BuyBuild\Geometry\ModelMesh.cs:line 161
at S4Studio.Data.IO.BuyBuild.Geometry.ModelLOD.ReadData(Stream stream, IReferenceList references) in X:\TheS4Studio\S4Studio.Shared\IO\BuyBuild\Geometry\ModelLOD.cs:line 61
at S4Studio.Data.IO.Core.LinkedResourceSerializer.GetBlock(Int32 index, LinkedResource resource) in X:\TheS4Studio\S4Studio.Shared\IO\Core\LinkedResourceSerializer.cs:line 299
at S4Studio.Data.IO.Core.LinkedResource.Read(Stream stream) in X:\TheS4Studio\S4Studio.Shared\IO\Core\LinkedResource.cs:line 110
at S4Studio.ViewModels.BuyBuildLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path) in X:\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 368
at S4Studio.ViewModels.BuyBuildLodItem.<>c__DisplayClass46_0.<ImportMesh>b__0() in X:\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 331
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
I thought maybe this was because I tried selective clone, but each of the options for making objects seems to have some issue. I'm new to modding objects, so I'm probably overlooking something obvious. I'd really appreciate some guidance.