|
Post by plumbobbreezy on Jan 17, 2023 18:15:06 GMT -5
I’m trying to append a hair accessory to a hair (both are made by different creators), I scaled and put them together in blender (appended the accessory to the hair and joined them). but I got a long error message from s4s once I tried to import the new mesh (I didn’t get to save it). Did I miss a step as far as combining meshes or something?
|
|
|
Post by mauvemorn on Jan 17, 2023 18:37:54 GMT -5
Hi. Share the blend and the package please
|
|
|
Post by plumbobbreezy on Jan 17, 2023 23:52:04 GMT -5
|
|
|
Post by mauvemorn on Jan 18, 2023 15:46:51 GMT -5
You need to re-do the whole process because that is not how hair packages should be edited. You cannot join everything into one. - open the shared cardi hair.blend, in uv editor enable sync and select the uvs of the scrunchie. Ctrl I, in 3d view Delete - Faces. Double-click on the name of the meshgroup and rename it to Scrunchie. I would advice you to use Decimate modifier because these scrunchies are too high poly and you will have to wait forever for the blend to import. Once done, save the blend and close it; - open Plumbobbreezy_[gramsims] Cardi Hair_ChildConv in s4s, Ctrl Shift C to open a console, paste studio.exportall . This will prompt s4s to create a folder in the same location with all resources from the package; - Tools - Color palette. Choose Import Palette and Save; - from this folder open lod0. Normally the hair is made of 3 meshgroups: the base shape and two hat chops. Each of them has a unique number assigned to them, which is how s4s knows what original part to replace with what custom upon importHowever, in this blend you will see 4 meshgroups. If you were to isolate each of them, you'd see that three are identical and the 4th is for the hair strands with transparency. So those three meshgroups replace the base shape and two hat chops, while the 4th is added specifically for the see-through strands. Is there a point in having hat chops if they will clip into hair anyway? No, so you need to delete them. Once you will do it, you will not be able to replace the original ones in the package, for that reason you should clone another item: - back to Main menu, choose Create CAS standalone, click CAS, paste yfAcc_GlassesMode in the search bar, click Next, select Plumbobbreezy_[gramsims] Cardi Hair_ChildConv, overwrite it; - export lod0, open. You will see that glasses are made of two meshgroups: lenses ( cut 0000 ) and frame ( cut 0001). The frame should be replaced with the opaque part of the hair and the lenses with the see-through. Close the blend; - back to lod0 with the hair. Delete two meshgroups that have 0000 and 0003. Select the one with 0002 and change the number to 0000. Now the opaque has 0001 and the see-through strands have 0000; - append the scrunchies from the previously edited blend into this one. In this order: select the Scrunchie, Shift-select the meshgroup with 0001 (opaque), Ctrl J to join. Save the blend; - edit lod1 as well, i would not bother editing lod2-3; - edit the textures; - back to Plumbobbreezy_[gramsims] Cardi Hair_ChildConv. Tools - Palette, Apply palette to package, do not keep the existing swatch. Then open the console again, paste studio.importall. This will import everything.
|
|
|
Post by plumbobbreezy on Jan 21, 2023 21:43:26 GMT -5
Hi, so when I get to this step nothing pops up: -back to Main menu, choose Create CAS standalone, click CAS, paste yfAcc_GlassesMode in the search bar, click Next, select Plumbobbreezy_[gramsims] Cardi Hair_ChildConv, overwrite it; I click next and nothing appears, did I miss a step?
|
|
|
Post by mauvemorn on Jan 22, 2023 14:25:16 GMT -5
Sorry,my bad, yfAcc_GlassesMod, without e in the end
|
|
|
Post by plumbobbreezy on Jan 22, 2023 15:46:00 GMT -5
Still nothing, I must’ve done something wrong. Only thing popping up is base game glasses. Maybe it’s due to the fact my mods folder within the s4s application doesn’t have any of my cc? I’m going to copy the mods folder over and restart the program with my mods folder in there. Including the hair file.
|
|
|
Post by mauvemorn on Jan 22, 2023 16:02:56 GMT -5
It works like this: - s4s export all resources in the folder that has the package name +resources(example: DressResources); - it will import the resources back in the package with that original name (Dress.package). so if you want to transfer resources from one package into another, the second package must have the same name as the first one.
the base game glasses is what you need to start your package from. Choose them, then click Next, then find Plumbobbreezy_[gramsims] Cardi Hair_ChildConv in the pop up window, click on this package (yours will become named the same), then click Save (or something). S4S will ask you « do you want to overwrite this file », say Yes. Then your newly created package will have the same name and s4s will be able to import all resources into it
|
|
|
Post by plumbobbreezy on Jan 22, 2023 21:27:11 GMT -5
The Sims 4 Studio - Version 3.1.6.2 System.AggregateException: One or more errors occurred. ---> S4Studio.Blender.BlenderException: File "<string>", line 2, in <module> File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 41, in <module> geom.write(output_stream) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 626, in write rcol.get_block_index(self, self.ROOT_REFERENCE_TYPE) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 525, in get_block_index block.write_rcol(stream, self) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\cas\geometry.py", line 460, in write_rcol s.u16(index) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 231, in u16 self.u(data, 16, order) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 210, in u elif size == 16: self.write('H', data, order) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 183, in write self.f.write(struct.pack(l, data)) struct.error: ushort format requires 0 <= number <= USHRT_MAX AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
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.Generic.BatchEditingViewModel.ProcessBatch(CatalogSims4CustomContent obj, IWindow window, BlenderUtilities blender_util, BatchMode mode, BatchExportOptions options) at S4Studio.ViewModels.Generic.BatchEditingViewModel.<>c__DisplayClass18_0.<ExecuteBatchImport>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 2, in <module> File "C:\ProgramData\S4Studio\Scripts\geomexporter.py", line 41, in <module> geom.write(output_stream) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 626, in write rcol.get_block_index(self, self.ROOT_REFERENCE_TYPE) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 525, in get_block_index block.write_rcol(stream, self) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\cas\geometry.py", line 460, in write_rcol s.u16(index) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 231, in u16 self.u(data, 16, order) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 210, in u elif size == 16: self.write('H', data, order) File "C:\Users\tungr\AppData\Roaming\Blender Foundation\Blender\2.76\scripts\addons\s4studio\io.py", line 183, in write self.f.write(struct.pack(l, data)) struct.error: ushort format requires 0 <= number <= USHRT_MAX AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
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.Generic.BatchEditingViewModel.ProcessBatch(CatalogSims4CustomContent obj, IWindow window, BlenderUtilities blender_util, BatchMode mode, BatchExportOptions options) at S4Studio.ViewModels.Generic.BatchEditingViewModel.<>c__DisplayClass18_0.<ExecuteBatchImport>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---
Error message I got
|
|
|
Post by mauvemorn on Jan 23, 2023 2:42:58 GMT -5
Do you have S4Studio cas tools in blender 2.76? If yes, can you share the file you’re trying to import? It’s probably too high poly for s4s
Also, you’re using a pretty old version of s4s. Not the reason this is happening but you should get the latest later
|
|
|
Post by plumbobbreezy on Jan 23, 2023 17:45:40 GMT -5
Hey so I just decided to make the accessory its own file instead of trying to add it to the hair. I’m still learning and I’m pretty sure you’re tired of the back and forth lol. So I saved us some time and just cloned the scrunchie mesh and edited it to the style of the hair and made it it’s own file. It worked! Thank you though for your help! I’ve learned a lot while just trying to join these meshes. I’m sure I’ll be back with a question soon lol.
|
|