Post by cattreats on Mar 23, 2023 23:14:51 GMT -5
I want to edit one of the world data files for my game but when I try to access them directly via the .world file in S4S I get an error message saying that it is an unreadable data resource. I have a similar problem where if I try to locate the world data files via the game file cruiser, no world data files show up at all.
{Error Message}
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: Exception of type 'System.Exception' was thrown.
at S4Studio.Data.IO.ObjectData.Create(String tag)
at S4Studio.Data.IO.ObjectManagerObjectData.Read(Stream stream, IReferenceList resources)
at S4Studio.Data.IO.ObjectManager.Read(Stream stream, IReferenceList resources)
at S4Studio.Data.IO.WorldDataResource.Read(Stream stream, IReferenceList resources)
at S4Studio.Data.IO.Package.DBPFPackage.FetchResource(Type t, IDBPFResourcePointer index, Boolean nocache)
at S4Studio.Data.IO.Package.DBPFPackage.FetchResource[T](IDBPFResourcePointer index, Boolean nocache)
at S4Studio.Data.IO.Package.DBPFPackage.FetchResource[T](IDBPFResourcePointer index)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at S4Studio.ViewModels.Warehouse.WarehouseResourceViewModelBase.GetWrappedResource()
---> System.Exception: Exception of type 'System.Exception' was thrown.
at S4Studio.Data.IO.ObjectData.Create(String tag)
at S4Studio.Data.IO.ObjectManagerObjectData.Read(Stream stream, IReferenceList resources)
at S4Studio.Data.IO.ObjectManager.Read(Stream stream, IReferenceList resources)
at S4Studio.Data.IO.WorldDataResource.Read(Stream stream, IReferenceList resources)
at S4Studio.Data.IO.Package.DBPFPackage.FetchResource(Type t, IDBPFResourcePointer index, Boolean nocache)
at S4Studio.Data.IO.Package.DBPFPackage.FetchResource[T](IDBPFResourcePointer index, Boolean nocache)
at S4Studio.Data.IO.Package.DBPFPackage.FetchResource[T](IDBPFResourcePointer index)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at S4Studio.ViewModels.Warehouse.WarehouseResourceViewModelBase.GetWrappedResource()
I was able to access and edit these files without any problem a few months ago, but the last few months whenever I try to access it I get the same error and I haven't been able to find any information online or in the forums on how to fix it. I've tried uninstalling and reinstalling S4S, using the community tested and the beta versions, attaching different versions of blender to S4S, repairing the sims 4, uninstalling and reinstalling the sims 4 completely from my computer, removing DLC, mods, checking the path, etc. and nothing works. This was an issue I've been having before and after the latest patch.
Does anyone know how to fix this or if there's a different way to edit "world data" files?