Page 1 of 1

Fingernail and Toenail Assets Problems

PostPosted: Fri Apr 12, 2019 4:23 am
by MTKnife
Fingernails and toenails are a mess in the database.

There are four different sets of fingernails:

wolgade's (http://www.makehumancommunity.org/cloth ... nails.html) are titled "Female Fingernails" in the database, and "Female fingernails" in the clothes listing. They save to "Female_Fingernails". All very nice and consistent.

grinsegold's (http://www.makehumancommunity.org/cloth ... tural.html) are titled "Fingernails female natural" in the database, and "Fingernails elegant" in the clothes listing. They save to "Fingernails_female_natural". Their diffuse and normal files have apparently been repurposed from toenails (with name changes). The naming is inconsistent and confusing, but everything works, and doesn't cause conflicts.

pixel_pretty's (http://www.makehumancommunity.org/cloth ... ils.html_0), like wolgade's, are titled "Female_Fingernails" in the database, but "Fingernails elegant2" in the clothes listing. They save to the same directory as wolgade's, "Female_Fingernails". (Weirdly, their OBJ and MHMAT files use grinsegold's names, and were probably copied from his.) Both assets in this same directory show up in the clothes listing, but they share each other's materials...which works, because they're both fingernails, but is confusing and redundant. The solution here is to rename them in the database, which will cause them to be dropped into their own directory--I'm using "Female_Fingernails_Elegant2" as my directory name, for consistency.

MargaretToigo's (http://www.makehumancommunity.org/cloth ... erfly.html) are titled "Long Fingernails Blue Butterfly" in the database, and either "Longfingernailsbluebutterfly" or "Longfingernails-bluebutterfly" in the clothes listing--I can't tell which, because the name doesn't wrap properly. Aside from the ugly name in the clothes listing (they show up with a different name under the "Materials" tab--"LongFingernails-BlueButterfly"), they work fine.

There are two sets of toenails:

grinsegold's (http://www.makehumancommunity.org/cloth ... tural.html) are titled "Toenails female dark red / natural" in the database, and "Toenail" in the clothes listing. They save to "Toenails_female_dark_red_natural". The naming is again inconsistent, but they work fine--except that grinsegold must have uploaded them before materials could be linked to assets, and so they include diffuse and normals file for a second material (with natural coloring) that requires a MHMAT to be generated by hand, and the files (which have spaces in their names) to be renamed. To fix this, I'm going to upload those as a material in just a minute here, though that'll still leave extra files showing up in the database listing (but they'll be copied over when the material is downloaded).

pixel_pretty's (http://www.makehumancommunity.org/cloth ... nails.html) are titled "Female Toenails" in the database, and "Toenail2" in the clothes listing. They save to "Female_Toenails". They don't actually work, because their MHMAT refers to nonexistent diffuse and normals files; the filenames in question are similar to those for grinsegold's natural material, and so I suspect this was an attempt to use those files, as a separate asset rather than a material, but once we have that material in the database on its own, there's no real need for this asset, and it should be flagged at the very least.

Re: Fingernail and Toenail Assets Problems

PostPosted: Fri Apr 12, 2019 4:22 pm
by joepal
Possibly we should include the asset ID in the generated directories, so that assets don't overwrite each other. But that'll proably mess up the code for placing materials.

Re: Fingernail and Toenail Assets Problems

PostPosted: Fri Apr 12, 2019 11:36 pm
by MTKnife
This is the only one I've seen--I think just a dupe check would work. The asset server software already does that, adding a "_0" to the name, and the downloaded could do the same.

Re: Fingernail and Toenail Assets Problems

PostPosted: Mon Apr 15, 2019 3:25 am
by MTKnife
Well, that's weird....

I moved pixel_pretty's fingernails to its own folder, which solved the original problem, but now, when I save a model with grinsegold's fingernails (that's the one pixel_pretty's was based on, not the one pixel_pretty's shared a directory with), when I load that model, it tries to load pixel_pretty's nails instead, and fails to load the material (which is, of course, in grinsegold's directory). This one I can't figure out: the filenames are the same, but obviously, they're on different paths.

Re: Fingernail and Toenail Assets Problems

PostPosted: Mon Apr 15, 2019 7:03 am
by joepal
Stale NPZ files? If you move stuff around, you should probably delete both npz and mhpxy files. These may contain the original path values.

Re: Fingernail and Toenail Assets Problems

PostPosted: Tue Apr 16, 2019 2:47 am
by MTKnife
Thanks! That worked, though I'm at a loss to explain why: though the pixel_pretty nails shared filenames with grinsegold's nails, they were originally in the same directory as wolgade's nails...so how saving a model with grinsegold's nails would result in re-loading it with pixel_pretty's is a mystery to me.