|
Post by waelucy on Jan 6, 2022 1:22:01 GMT -5
Hello, I am a brand new CC creator, I have learned how to create meshes in blender and all that. However, whenever I import a mesh, I get this error. Can you please help in this issue.
My Sims 4 is up to date, My Sims 4 Studio as well. My blender is 2.7.
I thought the error dealt with the number of polygons, but I just made a cube for testing and I still got an error
The error is this
The Sims 4 Studio - Version 3.1.5.6
System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 279, in save_mesh
pos_scales = calculate_pos_scales(total_mesh_bounds, max_pos_size)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\geometry.py", line 38, in calculate_pos_scales
extremes = [math.ceil(max([abs(x) for x in extremes]))] * 3
OverflowError: cannot convert float infinity to integer
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.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 279, in save_mesh
pos_scales = calculate_pos_scales(total_mesh_bounds, max_pos_size)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\geometry.py", line 38, in calculate_pos_scales
extremes = [math.ceil(max([abs(x) for x in extremes]))] * 3
OverflowError: cannot convert float infinity to integer
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.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
Thank you in advance
|
|
|
Post by Fwecka (Lolabellesims) on Jan 6, 2022 5:02:28 GMT -5
The majority of the time these errors are caused by your antivirus blocking Studio, or permissions issues, or your game paths not being set correctly. Make sure you've made an exception for Studio in your antivirus software. As for permissions issues, sometimes there are problems with C:\Program Files (x86); Windows sometimes doesn't like to allow third-party applications to mess with whatever is installed there. The solution is to either move your game's install location out of Program Files (x86)—for example, install Origin directly into your C drive or to a different hard drive if you have one, or take ownership of Studio's install folder as well as Studio's Documents folder (just to be sure). You can even take ownership of your entire Program Files (x86) folder if you need to. As for your game paths settings, here is what mine looks like. As weird as it seems, sometimes not having "\" at the end of the game's file path can make a difference. And make sure your Blender file path points directly to the executable file (Blender.exe). Also, you don't need to use Blender 2.70 even though some tutorials say you have to use it. Studio will work with any version from 2.70 to 2.79. You just have to remember that transferring weights in a version above 2.70 is a little bit different.
|
|
|
Post by waelucy on Jan 6, 2022 6:42:58 GMT -5
First, Thank you so much for helping.
I did your recommended steps. The ownership of the file and antivirus exception.
I did not get the error when I imported my cube table mesh while using a base game table. However, when I did import it, it was invisible in the Sims 4 Studio map.
I tried using a basic cylinder mesh and I got the same error again while using a base game kettle as a base mesh
The Sims 4 Studio - Version 3.1.5.6
System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 279, in save_mesh
pos_scales = calculate_pos_scales(total_mesh_bounds, max_pos_size)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\geometry.py", line 38, in calculate_pos_scales
extremes = [math.ceil(max([abs(x) for x in extremes]))] * 3
OverflowError: cannot convert float infinity to integer
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.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) S4Studio.Blender.BlenderException:
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 393, in save_lod
save_mesh(blender_mesh, m, new_mesh, geometry_state)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\blender.py", line 279, in save_mesh
pos_scales = calculate_pos_scales(total_mesh_bounds, max_pos_size)
File "C:\Users\[UserName]\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\s4studio\buybuild\geometry.py", line 38, in calculate_pos_scales
extremes = [math.ceil(max([abs(x) for x in extremes]))] * 3
OverflowError: cannot convert float infinity to integer
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.ObjectLodItem.ImportMesh(BlenderUtilities blender_util, String blender_path)
at S4Studio.ViewModels.ObjectLodItem.<>c__DisplayClass49_0.<ImportMesh>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
|
|
|
Post by mauvemorn on Jan 6, 2022 8:04:21 GMT -5
Hi. Share the blend and package file please
|
|
|
Post by Fwecka (Lolabellesims) on Jan 7, 2022 4:17:41 GMT -5
I tend to doubt it's a permissions error anyway given that the error message didn't mention anything about permissions. I did a Google search and what I'm finding is people who had problems with the file itself—problems related to cut numbers and/or a problem with the number of mesh groups, specifically—and not with Blender or Sims4studio. So, yes, Mauvemorn is right. You should share your files. Or, if you want to check this yourself, make sure the number of mesh groups in your mesh is the same as the EA item you're using for your final package. Also, make sure the cut numbers are the same. You may have other problems besides mesh groups and/or cut numbers, though.
|
|
|
Post by nerdstatus97 on Mar 6, 2024 9:35:28 GMT -5
I think I'm having similar troubles. Is there a place I can go to learn all of this without asking for answers here all the time? This is my first post here I just don't want to repeat someone else's question and I have almost zero base knowledge for this. I'll attach my error code at the bottom.
The Sims 4 Studio - Version 3.2.1.4 System.AggregateException: One or more errors occurred. (Could not find file 'C:\Users\[UserName]\OneDrive\Documents\Blender\Scripts\Templates\addoninstaller.py'.) ---> System.IO.FileNotFoundException: Could not find file 'C:\Users\[UserName]\OneDrive\Documents\Blender\Scripts\Templates\addoninstaller.py'. File name: 'C:\Users\[UserName]\OneDrive\Documents\Blender\Scripts\Templates\addoninstaller.py' at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at S4Studio.Blender.BlenderUtilities.InstallAddon() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 105 at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass79_0.<ExecuteExportMesh>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\CAS\CASStandalone.cs:line 467 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 ---
|
|
|
Post by mauvemorn on Mar 6, 2024 9:43:44 GMT -5
I think I'm having similar troubles. Is there a place I can go to learn all of this without asking for answers here all the time? This is my first post here I just don't want to repeat someone else's question and I have almost zero base knowledge for this. I'll attach my error code at the bottom. The Sims 4 Studio - Version 3.2.1.4 System.AggregateException: One or more errors occurred. (Could not find file 'C:\Users\[UserName]\OneDrive\Documents\Blender\Scripts\Templates\addoninstaller.py'.) ---> System.IO.FileNotFoundException: Could not find file 'C:\Users\[UserName]\OneDrive\Documents\Blender\Scripts\Templates\addoninstaller.py'. File name: 'C:\Users\[UserName]\OneDrive\Documents\Blender\Scripts\Templates\addoninstaller.py' at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at S4Studio.Blender.BlenderUtilities.InstallAddon() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\BlenderUtilities.cs:line 105 at S4Studio.ViewModels.CAS.CASStandalone.<>c__DisplayClass79_0.<ExecuteExportMesh>b__0() in \\mac\thes4studio\TheS4Studio\S4Studio.Shared\ViewModels\CAS\CASStandalone.cs:line 467 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 --- Hi. Make sure everything is installed correctly, as explained here sims4studio.com/post/192873/thread
|
|