Post by Sim Eliza on Dec 14, 2023 17:56:02 GMT -5
Hi, I'm trying to import an accessory from blender into sims 4 studios but for some reason I keep getting an error code when I try to import it.
Does anyone know what's causing this issue?
This is the error code
The Sims 4 Studio - Version 3.2.1.2
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 43, in <module>
geom.write(output_stream)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 626, in write
rcol.get_block_index(self, self.ROOT_REFERENCE_TYPE)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 525, in get_block_index
block.write_rcol(stream, self)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\geometry.py", line 460, in write_rcol
s.u16(index)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 231, in u16
self.u(data, 16, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 210, in u
elif size == 16: self.write('H', data, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 183, in write
self.f.write(struct.pack(l, data))
struct.error: ushort format requires 0 <= number <= 0xffff
Reloading external rigs...
Reloading external metarigs...
changing mode from POSE to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 43, in <module>
geom.write(output_stream)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 626, in write
rcol.get_block_index(self, self.ROOT_REFERENCE_TYPE)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 525, in get_block_index
block.write_rcol(stream, self)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\geometry.py", line 460, in write_rcol
s.u16(index)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 231, in u16
self.u(data, 16, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 210, in u
elif size == 16: self.write('H', data, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 183, in write
self.f.write(struct.pack(l, data))
struct.error: ushort format requires 0 <= number <= 0xffff
Reloading external rigs...
Reloading external metarigs...
changing mode from POSE to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut)
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass76_0.<ExecuteImportMesh>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 ---
Does anyone know what's causing this issue?
This is the error code
The Sims 4 Studio - Version 3.2.1.2
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 43, in <module>
geom.write(output_stream)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 626, in write
rcol.get_block_index(self, self.ROOT_REFERENCE_TYPE)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 525, in get_block_index
block.write_rcol(stream, self)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\geometry.py", line 460, in write_rcol
s.u16(index)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 231, in u16
self.u(data, 16, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 210, in u
elif size == 16: self.write('H', data, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 183, in write
self.f.write(struct.pack(l, data))
struct.error: ushort format requires 0 <= number <= 0xffff
Reloading external rigs...
Reloading external metarigs...
changing mode from POSE to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 43, in <module>
geom.write(output_stream)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 626, in write
rcol.get_block_index(self, self.ROOT_REFERENCE_TYPE)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 525, in get_block_index
block.write_rcol(stream, self)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\cas\geometry.py", line 460, in write_rcol
s.u16(index)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 231, in u16
self.u(data, 16, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 210, in u
elif size == 16: self.write('H', data, order)
File "C:\Users\gamin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 183, in write
self.f.write(struct.pack(l, data))
struct.error: ushort format requires 0 <= number <= 0xffff
Reloading external rigs...
Reloading external metarigs...
changing mode from POSE to OBJECT select=None
Mode is now None
changing mode from None to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
changing mode from OBJECT to EDIT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("Ruler") at 0x000001DB2A7D7908>
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportGeom(String custom_blend, String custom_geom, Int32 body_type, String cut)
at S4Studio.ViewModels.CAS.CASLODItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass76_0.<ExecuteImportMesh>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 ---