Fingernail and Toenail Assets Problems

Discussions about user contributed assets. This is a good place to request new assets, as well as requesting support on existing assets that have been downloaded from the user contributions repository.

Moderator: joepal

Fingernail and Toenail Assets Problems

Postby MTKnife » Fri Apr 12, 2019 4:23 am

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.
Last edited by MTKnife on Sat Apr 13, 2019 4:07 am, edited 3 times in total.
MTKnife
 
Posts: 311
Joined: Tue Sep 01, 2015 5:22 am

Re: Fingernail and Toenail Assets Problems

Postby joepal » Fri Apr 12, 2019 4:22 pm

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.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Fingernail and Toenail Assets Problems

Postby MTKnife » Fri Apr 12, 2019 11:36 pm

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.
MTKnife
 
Posts: 311
Joined: Tue Sep 01, 2015 5:22 am

Re: Fingernail and Toenail Assets Problems

Postby MTKnife » Mon Apr 15, 2019 3:25 am

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.
MTKnife
 
Posts: 311
Joined: Tue Sep 01, 2015 5:22 am

Re: Fingernail and Toenail Assets Problems

Postby joepal » Mon Apr 15, 2019 7:03 am

Stale NPZ files? If you move stuff around, you should probably delete both npz and mhpxy files. These may contain the original path values.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Fingernail and Toenail Assets Problems

Postby MTKnife » Tue Apr 16, 2019 2:47 am

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.
MTKnife
 
Posts: 311
Joined: Tue Sep 01, 2015 5:22 am


Return to Assets, asset repositories and asset downloader

Who is online

Users browsing this forum: No registered users and 1 guest

cron