Post by cocoa4 on Jun 1, 2024 17:09:13 GMT -5
Hello, Hello,
PLEASE HELP!
I tried to import the mesh as usual, but Sims 4 Studio (Version 3.2.1.9) only gives me the following error message.
I have been reading all the threads with similar problems and have tried everything all night, but nothing solves my problem.
I am trying to make donuts from single serve pancake clones.
This is the mesh of LOD 0 for the singleServeWhole.
Blender version is 3.6.0 x64 for windows.
The s4studio mesh tools work fine.
Here is the link for my files.
simfileshare.net/folder/219053/
Here is the error message I got from S4S.
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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 365, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales, s4mesh_new.get_shader())
File "C:\Users\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\[UserName]\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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\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\[UserName]\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: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x000002767DAB1608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
no mesh loops found
0 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.21149326860904694, 0.0, -0.21149326860904694], 'max': [0.21149326860904694, 0.006012146361172199, 0.21149326860904694]}
replacing state 2180574679
skipping state 428749669
skipping state 0
saving mesh geostate: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
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 0x000002767DAB0F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
200 vertices split.
231 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.11044648289680481, 0.0, -0.110782191157341], 'max': [0.110873743891716, 0.06527908891439438, 0.110782191157341]}
replacing state 2180574679
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 1.0), pos_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 1.0], uv_scales=[3.026004742423538e-05, 3.026004742423538e-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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 365, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales, s4mesh_new.get_shader())
File "C:\Users\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\[UserName]\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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\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\[UserName]\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: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x000002767DAB1608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
no mesh loops found
0 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.21149326860904694, 0.0, -0.21149326860904694], 'max': [0.21149326860904694, 0.006012146361172199, 0.21149326860904694]}
replacing state 2180574679
skipping state 428749669
skipping state 0
saving mesh geostate: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
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 0x000002767DAB0F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
200 vertices split.
231 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.11044648289680481, 0.0, -0.110782191157341], 'max': [0.110873743891716, 0.06527908891439438, 0.110782191157341]}
replacing state 2180574679
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 1.0), pos_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 1.0], uv_scales=[3.026004742423538e-05, 3.026004742423538e-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.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 ---
PLEASE HELP!
I tried to import the mesh as usual, but Sims 4 Studio (Version 3.2.1.9) only gives me the following error message.
I have been reading all the threads with similar problems and have tried everything all night, but nothing solves my problem.
I am trying to make donuts from single serve pancake clones.
This is the mesh of LOD 0 for the singleServeWhole.
Blender version is 3.6.0 x64 for windows.
The s4studio mesh tools work fine.
Here is the link for my files.
simfileshare.net/folder/219053/
Here is the error message I got from S4S.
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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 365, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales, s4mesh_new.get_shader())
File "C:\Users\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\[UserName]\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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\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\[UserName]\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: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x000002767DAB1608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
no mesh loops found
0 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.21149326860904694, 0.0, -0.21149326860904694], 'max': [0.21149326860904694, 0.006012146361172199, 0.21149326860904694]}
replacing state 2180574679
skipping state 428749669
skipping state 0
saving mesh geostate: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
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 0x000002767DAB0F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
200 vertices split.
231 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.11044648289680481, 0.0, -0.110782191157341], 'max': [0.110873743891716, 0.06527908891439438, 0.110782191157341]}
replacing state 2180574679
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 1.0), pos_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 1.0], uv_scales=[3.026004742423538e-05, 3.026004742423538e-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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\blender.py", line 365, in save_mesh
offset = vbuf.buffer.write_vertices(vrtf, sim_mesh_data.vertices, uv_scales, pos_scales, s4mesh_new.get_shader())
File "C:\Users\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\buybuild\geometry.py", line 737, in write_vertex
raise e
File "C:\Users\[UserName]\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\[UserName]\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\[UserName]\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\s4studio\io.py", line 219, in i16
self.i(data, 16, order)
File "C:\Users\[UserName]\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\[UserName]\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: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_0") at 0x000002767DAB1608>
Mode is now OBJECT
collecting mesh data from s4studio_mesh_0
no mesh loops found
0 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.21149326860904694, 0.0, -0.21149326860904694], 'max': [0.21149326860904694, 0.006012146361172199, 0.21149326860904694]}
replacing state 2180574679
skipping state 428749669
skipping state 0
saving mesh geostate: 2180574679
changing mode from OBJECT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
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 0x000002767DAB0F08>
changing mode from OBJECT to EDIT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now EDIT
changing mode from EDIT to OBJECT select=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
Mode is now OBJECT
ROTATING mode= OBJECT active=<bpy_struct, Object("s4studio_mesh_1") at 0x000002767DAB0F08>
200 vertices split.
231 vertices in mesh data
Calculated bounds {'dimensions': 3, 'min': [-0.11044648289680481, 0.0, -0.110782191157341], 'max': [0.110873743891716, 0.06527908891439438, 0.110782191157341]}
replacing state 2180574679
unable to write element: format=6, usage=2, usage_index=1, data = (0.0, 1.0), pos_scales=[3.051850947599719e-05, 3.051850947599719e-05, 3.051850947599719e-05, 1.0], uv_scales=[3.026004742423538e-05, 3.026004742423538e-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.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 ---