Post by taborse on Oct 21, 2023 12:02:22 GMT -5
I get the following error when trying to import a blend:
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\objectexporter.py", line 14, in <module>
save_lod(mlod,geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 398, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 301, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 653, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 722, in write_vertex
raise e
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 718, in write_vertex
self.write_element(declaration, data, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 744, in write_element
self.writer.i16(short)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\[UserName]\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: short format requires (-32768) <= number <= 32767
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
4 vertices split.
unable to write element: format=7, usage=2, data = (0.07090499997138977, 1.9311519861221313), pos_scales=[0.0019569471624266144, 0.0019569471624266144, 0.0019569471624266144, 1.0], uv_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05]
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\objectexporter.py", line 14, in <module>
save_lod(mlod,geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 398, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 301, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 653, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 722, in write_vertex
raise e
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 718, in write_vertex
self.write_element(declaration, data, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 744, in write_element
self.writer.i16(short)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\[UserName]\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: short format requires (-32768) <= number <= 32767
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
4 vertices split.
unable to write element: format=7, usage=2, data = (0.07090499997138977, 1.9311519861221313), pos_scales=[0.0019569471624266144, 0.0019569471624266144, 0.0019569471624266144, 1.0], uv_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05]
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state)
at S4Studio.ViewModels.BuyBuildLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.BuyBuildLodItem.<>c__DisplayClass47_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
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 ---
System.AggregateException: One or more errors occurred. (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\objectexporter.py", line 14, in <module>
save_lod(mlod,geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 398, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 301, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 653, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 722, in write_vertex
raise e
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 718, in write_vertex
self.write_element(declaration, data, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 744, in write_element
self.writer.i16(short)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\[UserName]\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: short format requires (-32768) <= number <= 32767
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
4 vertices split.
unable to write element: format=7, usage=2, data = (0.07090499997138977, 1.9311519861221313), pos_scales=[0.0019569471624266144, 0.0019569471624266144, 0.0019569471624266144, 1.0], uv_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05]
Blender quit
)
---> S4Studio.Blender.BlenderException: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\ProgramData\S4Studio\Scripts\objectexporter.py", line 14, in <module>
save_lod(mlod,geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 398, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\blender.py", line 301, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 653, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 722, in write_vertex
raise e
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 718, in write_vertex
self.write_element(declaration, data, uvscales, posscales)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\buybuild\geometry.py", line 744, in write_element
self.writer.i16(short)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\[UserName]\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: short format requires (-32768) <= number <= 32767
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("light switches shadow") at 0x0000010E98DEA408>
4 vertices split.
unable to write element: format=7, usage=2, data = (0.07090499997138977, 1.9311519861221313), pos_scales=[0.0019569471624266144, 0.0019569471624266144, 0.0019569471624266144, 1.0], uv_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05]
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version)
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state)
at S4Studio.ViewModels.BuyBuildLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.BuyBuildLodItem.<>c__DisplayClass47_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
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've been working in S4S for a little while this morning with no issues until now. I tried a test export of my cloned item - no problem. The shadow LOD also imports just fine, so I tried 'reverse-engineering' from that blend but got the same error message.
Using S4S 3.2.1.2 and Blender 3.3.1 and am completely new at both. My object is a deco item.