Post by brittthesimmer on Jun 1, 2024 3:21:31 GMT -5
I just recently updated to 3.2.1.9 now I'm having issues importing my mesh here is the error code
The Sims 4 Studio - Version 3.2.1.9
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\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 453, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 345, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales,s4mesh_new.get_shader())
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 666, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 733, in write_vertex
self.write_element(declaration, data, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 754, in write_element
self.writer.i16(value / uvscales[declaration.usage_index])
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\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("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
16 vertices split.
16 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [0.0, 0.0, 0.0], 'max': [0.0, 0.0, 0.0]}
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_1
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
4 vertices split.
4 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.4167124330997467, -0.0005493499338626862, 0.0], 'max': [0.44253188371658325, 1.2567294836044312, 0.0]}
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 0.9999999990686774), pos_scales=[6.103888176768602e-05, 6.103888176768602e-05, 6.103888176768602e-05, 1.0], uv_scales=[3.0083376259426586e-05, 3.0083376259426586e-05, 0.0, 0.0]
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\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 453, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 345, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales,s4mesh_new.get_shader())
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 666, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 733, in write_vertex
self.write_element(declaration, data, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 754, in write_element
self.writer.i16(value / uvscales[declaration.usage_index])
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\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("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
16 vertices split.
16 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [0.0, 0.0, 0.0], 'max': [0.0, 0.0, 0.0]}
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_1
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
4 vertices split.
4 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.4167124330997467, -0.0005493499338626862, 0.0], 'max': [0.44253188371658325, 1.2567294836044312, 0.0]}
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 0.9999999990686774), pos_scales=[6.103888176768602e-05, 6.103888176768602e-05, 6.103888176768602e-05, 1.0], uv_scales=[3.0083376259426586e-05, 3.0083376259426586e-05, 0.0, 0.0]
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 231
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 510
at S4Studio.ViewModels.BuyBuildLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 377
at S4Studio.ViewModels.BuyBuildLodItem.<>c__DisplayClass47_0.<ImportMesh>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 355
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 ---
The Sims 4 Studio - Version 3.2.1.9
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\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 453, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 345, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales,s4mesh_new.get_shader())
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 666, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 733, in write_vertex
self.write_element(declaration, data, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 754, in write_element
self.writer.i16(value / uvscales[declaration.usage_index])
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\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("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
16 vertices split.
16 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [0.0, 0.0, 0.0], 'max': [0.0, 0.0, 0.0]}
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_1
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
4 vertices split.
4 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.4167124330997467, -0.0005493499338626862, 0.0], 'max': [0.44253188371658325, 1.2567294836044312, 0.0]}
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 0.9999999990686774), pos_scales=[6.103888176768602e-05, 6.103888176768602e-05, 6.103888176768602e-05, 1.0], uv_scales=[3.0083376259426586e-05, 3.0083376259426586e-05, 0.0, 0.0]
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\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 453, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 345, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales,s4mesh_new.get_shader())
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 666, in write_vertices
self.write_vertex(vrtf, vertex, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 733, in write_vertex
self.write_element(declaration, data, uvscales, posscales, shader)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 754, in write_element
self.writer.i16(value / uvscales[declaration.usage_index])
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 202, in i
elif size == 16: self.write('h', data, order)
File "C:\Users\\AppData\Roaming\Blender Foundation\Blender\3.6\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("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_0") at 0x0000028434001608>
16 vertices split.
16 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [0.0, 0.0, 0.0], 'max': [0.0, 0.0, 0.0]}
saving mesh geostate:
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_1
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x0000028434000F08>
4 vertices split.
4 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.4167124330997467, -0.0005493499338626862, 0.0], 'max': [0.44253188371658325, 1.2567294836044312, 0.0]}
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 0.9999999990686774), pos_scales=[6.103888176768602e-05, 6.103888176768602e-05, 6.103888176768602e-05, 1.0], uv_scales=[3.0083376259426586e-05, 3.0083376259426586e-05, 0.0, 0.0]
Blender quit
at S4Studio.Blender.BlenderUtilities.RunBlender(String script, String blend, Boolean background, Boolean check_version) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 231
at S4Studio.Blender.BlenderUtilities.ImportMlod(String fileName, String mlod, String rig, String state) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 510
at S4Studio.ViewModels.BuyBuildLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path) in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 377
at S4Studio.ViewModels.BuyBuildLodItem.<>c__DisplayClass47_0.<ImportMesh>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\BuildBuy\Components\Models\BuyBuildLodItem.cs:line 355
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 ---