Post by CoffinFit on Jan 14, 2023 11:40:45 GMT -5
This has happened with several objects. I put them in the MyDocuments/S4S/Mods folder then try to clone them and I get this error.
The Sims 4 Studio - Version 3.2.0.3
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 ---
It's happened with 3 different items but it works on some so I'm not sure what is going on.
The Sims 4 Studio - Version 3.2.0.3
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 ---
It's happened with 3 different items but it works on some so I'm not sure what is going on.