Help fixing daz files
kaotkbliss
Posts: 2,914
I had created a few sets of clothes some time ago by downloading some cool sets off sharecg that were in .max format, converted them to obj. Made changes in Hexagon, sent to Daz Studio and did a rigging transfer.
Anyways, the sets worked up until this last update and now pieces of the sets no longer work :(
It's like half the set works and the other half just loads grey boxes as if it can't find the geometry but it's all there and has all worked before.
Here's the log file from 1 of the pieces that stopped working
2017-07-03 18:56:10.932 WARNING: fileinput\dzassetdaz.cpp(11033): UV set: "/data/kaotkbliss/Seraphim_Armor/Seraph_Helmet/UV%20Sets/kaotkbliss/Base/default.dsf#default" has wrong vertex/facet count
2017-07-03 18:56:10.932 WARNING: fileinput\dzassetdaz.cpp(1910): Could not find UVs for geometry.
2017-07-03 18:56:10.932 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-03 18:56:10.932 WARNING: fileinput\dzassetdaz.cpp(4789): Could not find geometry for the material instance.m_uri.
2017-07-03 18:56:10.947 WARNING: fileinput\dzassetdaz.cpp(1368): Failed to create material!
2017-07-03 18:56:10.947 WARNING: fileinput\dzassetdaz.cpp(4789): Could not find geometry for the material instance.m_uri.
2017-07-03 18:56:10.947 WARNING: fileinput\dzassetdaz.cpp(1368): Failed to create material!
2017-07-03 18:56:10.947 File loaded in 0 min 0.1 sec.
2017-07-03 18:56:10.947 Loaded file: seraph_helmet.duf
2017-07-03 18:56:11.058 WARNING: libpng warning: iCCP: known incorrect sRGB profile
I can see the wrong vertex/facet count, would changing this number in the dsf file fix it? if so, how do I get the correct number?

Comments
Just chnging the number would be a bad idea - unless it was right and is down to file corrption. There will also be a list of vertices and UV values, if they don't match the real geometry then the mapping will be messed up.
I think what happened was when the models were converted and brought into hexagon, they all ended up with the same UV mapping name (default) so when I chopped everything up into parts (shirt, pants, boots, gloves, etc.) then saved everything in Daz, the dsf files for the UV sets of each part kept overwriting eachother since they all had the same name.
And since I was chopping everything up, the original maps for the models were destroyed and I was using shaders anyway so resetting the UV map to cover the whole piece won't be that big of a deal, as long as I can get the geometry back.
Each UV set will be saved with the asset, so unless you gave the assets the same name having the default UVs called default isn't an issue.
Hmmm
Somehow all the UV sets ended up with the name default.dsf so when more than 1 item was saved into a folder, the UV maps all went into the same UV folder overwriting eachother
This would probably explain why one of the sets kept crahing DS when I tried to load it before the newest update. I never could figure out the problem but if I tried enough times, the set would eventually load. Something Daz fixed with the new DS update must have brought my issue out in the open so at least now I have a chance of fixing it :)
Out of curiosity, I did change the vertices number in the UV file to match the geometry file as well as copying/pasting and renaming the UV files so there was a seperate one for each item and the parts are loading now so that's good.
I guess the next step is either sending the items back to Hex or using the geometry editor to make new UV files.
The issue isn't the name of the UV set - everything will have a default.dsf for the default UVs. The issue would be saving two assets with the same name.
Well that's what I mean, in 1 particulate product I have a wing made up of 4 parts. Those for parts are in the same subfolder (\data\kaotkbliss\Seraphim_Armor\Seraph_Wings) which then puts all their UV maps in the same folder (\data\kaotkbliss\Seraphim_Armor\Seraph_Wings\UV Sets\kaotkbliss\Base) so all the default.dsf's overwrite eachother and all 4 pieces try using the same defaultdsf file which doesn't work because the vertice count doesn't match so I had to create a new file for each piece, then re-link the geometry files to the new UV files.
Well now I've got a problem file :(
I've got 2 and nearly all of a 3rd out of 4 outfits that completely load all the pieces by creating copies of the default.dsf uv map file, changing path to match the new name in the geometry file, then changing the vertices count in the uv map file. (I've done 24 individual items this way)
But now I have a piece on this 3rd suit that just does not want to work. The number ov vertices listed in the objects file is 108, so I changed it to match in the uv map folder, yet DS still complains that the numbers don't match and won't create the geometry!
The beginning of the geometry file:
{
"file_version" : "0.6.0.0",
"asset_info" : {
"id" : "/data/kaotkbliss/Cia/Cia_Bodysuit/L_Mech_Arm_1.dsf",
"type" : "figure",
"contributor" : {
"author" : "kaotkbliss",
"email" : "",
"website" : ""
},
"revision" : "1.0",
"modified" : "2016-01-18T01:57:21Z"
},
"geometry_library" : [
{
"id" : "geometry",
"name" : "geometry",
"type" : "polygon_mesh",
"vertices" : {
"count" : 108,
And the uv map file:
{
"file_version" : "0.6.0.0",
"asset_info" : {
"id" : "/data/kaotkbliss/Cia/Cia_Bodysuit/UV%20Sets/kaotkbliss/Base/L_Mech_Arm_1.dsf",
"type" : "uv_set",
"contributor" : {
"author" : "kaotkbliss",
"email" : "",
"website" : ""
},
"revision" : "1.0",
"modified" : "2016-01-18T02:11:08Z"
},
"uv_set_library" : [
{
"id" : "default",
"name" : "default",
"label" : "Default UVs",
"vertex_count" : 108,
The error log:
2017-07-05 08:52:05.591 WARNING: fileinput\dzassetdaz.cpp(11033): UV set: "/data/kaotkbliss/Cia/Cia_Bodysuit/UV%20Sets/kaotkbliss/Base/L_Mech_Arm_1.dsf#default" has wrong vertex/facet count
2017-07-05 08:52:05.591 WARNING: fileinput\dzassetdaz.cpp(1910): Could not find UVs for geometry.
2017-07-05 08:52:05.592 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.599 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.599 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.599 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.599 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.599 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.599 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.606 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.606 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.606 WARNING: fileinput\dzassetdaz.cpp(1349): Failed to create uv set!
2017-07-05 08:52:05.607 WARNING: fileinput\dzassetdaz.cpp(4789): Could not find geometry for the material instance.m_uri.
2017-07-05 08:52:05.607 WARNING: fileinput\dzassetdaz.cpp(1368): Failed to create material!
2017-07-05 08:52:05.607 WARNING: fileinput\dzassetdaz.cpp(4789): Could not find geometry for the material instance.m_uri.
2017-07-05 08:52:05.613 WARNING: fileinput\dzassetdaz.cpp(1368): Failed to create material!
Note that it could be the facet count - UVs are a face property (the same vertex can have different values as a member of different polygons). This is partly why I thought editing the vlaues might not work.
So I need to figure out where I get that number from and where to put it.
My hope is that once I get the geometry to load, I'll then be able to fix the UVs. But I can't do anything with the objects until I can get them to load :(
Thank you for your help so far Richard :)
Wow, that was simple
In the geometry dsf file all I had to do was remove the uv map path. Where it says "default_uv_set" : "/data/kaotkbliss/Cia/Cia_Bodysuit/UV%20Sets/kaotkbliss/Base/L_Mech_Arm_1.dsf#default",
I just changed it to "default_uv_set" : "" and now the geometry shows up and I can redo the uv :)