Post by SimVault on Nov 23, 2023 20:02:48 GMT -5
I have an custom content light I added into my Sims4Studio mods folder so I can use it as a clone. When I have selected create a 3d mesh and I click on object, go to custom meshes and select it, click next try to save the package, this pops up:
The Sims 4 Studio - Version 3.2.1.2
System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at S4Studio.Core.CloneEngine.CloneModel(CloneObjectOptions opts, IResourceProvider game, Boolean& swatchable, Model model, IDBPFPackage result, String hash_salt, String original_variant, ObjectDefinitionResource master_objd, List`1 variants)
at S4Studio.Core.CloneEngine.CloneObj(IDBPFPackage result, String hash_salt, CloneObjectOptions opts, IStringTableCache global_stbl, IResourceProvider game, Sims4FileTable game_filetable, UInt64 instance, String creator, Boolean& swatchable)
at S4Studio.Shared.ObjectFeatureViewModel.Clone(IDBPFPackage package, String hash, IEnumerable`1 selected_prototypes)
at S4Studio.Shared.FeatureViewModel.<>c__DisplayClass28_0.<CreateItem>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at S4Studio.Core.CloneEngine.CloneModel(CloneObjectOptions opts, IResourceProvider game, Boolean& swatchable, Model model, IDBPFPackage result, String hash_salt, String original_variant, ObjectDefinitionResource master_objd, List`1 variants)
at S4Studio.Core.CloneEngine.CloneObj(IDBPFPackage result, String hash_salt, CloneObjectOptions opts, IStringTableCache global_stbl, IResourceProvider game, Sims4FileTable game_filetable, UInt64 instance, String creator, Boolean& swatchable)
at S4Studio.Shared.ObjectFeatureViewModel.Clone(IDBPFPackage package, String hash, IEnumerable`1 selected_prototypes)
at S4Studio.Shared.FeatureViewModel.<>c__DisplayClass28_0.<CreateItem>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---