DAZ Studio 4.5 - Fix Duplicate IDs script

Comments

Is the script error from my script or from the hair? It's very hard to troubleshoot the issue without the product, which I don't currently have though I've a feeling it's one I've wishlisted - certainly there are things that can trip the script up.

Is the script error from my script or from the hair? It's very hard to troubleshoot the issue without the product, which I don't currently have though I've a feeling it's one I've wishlisted - certainly there are things that can trip the script up.

Not sure Richard. I did notice an earlier poster in this thread having a similar looking error when they screen cap what was in the log. First post on page two of this thread, second image.

OK, line 62 is certainly when it reads in the .dsf file so it looks as if the basic DSON importer is choking on something - does the hair load, with errors, when you double-click to load it or does it fail to load at all?

Please open my script in a text editor (you can use the DAZ Studio IDE - Window>Panes(Tabs)>Script IDE). find this block

function prepFile( name ) {
// Open the file, read it into a string
// and convert to a JSON object, which
// is to be returned
// open file
var file = new DzFile( name );
if ( file.open( DzFile.ReadOnly ) ) {
var ourObject = JSON.parse( file.read() );
file.close();
return ourObject;
}
return undefined;
}

which starts around line 54 and edit it by adding print( name ); just after the comment, like this:

function prepFile( name ) {
// Open the file, read it into a string
// and convert to a JSON object, which
// is to be returned
print( name );
// open file
var file = new DzFile( name );
if ( file.open( DzFile.ReadOnly ) ) {
var ourObject = JSON.parse( file.read() );
file.close();
return ourObject;
}
return undefined;
}

save, and try processing the hair with that - to be safe you may want to reinstall the hair from the zips, to make sure it's a clean copy. That should let us see the actual file that's throwing the error - it may be the library file, or it may be the data file that the library file reads in.

Richard it didn't appear to be your script. I went back in and looked at the original zip package and noticed that in the DSON folder there was another folder named "DragonLHairGenLegacyDS4.5" and also a folder with instructions about installing the LegacyDS4.5 as well as the Poser Companion files. I did that and the hair loaded without getting the duplicate ID's error.

This is weird because I thought you only need to install the DSON or Poser Companion files if you plan on using Genesis in Poser? I don't have either DSON or Poser installed [yet].

While adding morphs to my SuperCape (in production) I ran into Duplicate ID error in the .duf file. Not sure what's causing that. Scripting is not something I wrap my head around easily. I do notice one thing. There is a "-1" at the end of some of the ID names at the end of the .duf files and other files do not have this added. So wondering if this is where the duplicate id error message is hailing from??

While adding morphs to my SuperCape (in production) I ran into Duplicate ID error in the .duf file. Not sure what's causing that. Scripting is not something I wrap my head around easily. I do notice one thing. There is a "-1" at the end of some of the ID names at the end of the .duf files and other files do not have this added. So wondering if this is where the duplicate id error message is hailing from??

Hmmmm. I think I found it. It's a hidden morph. I only remember making ONE morph to fix a slight poke through that I locked and hide but now I'm seeing two and it's name is very similar to another morph : SuperCape-C02 except the visible morph is called: Unstick-FullAdjust-C02, this morph is under "Adjustments" while the hidden mystery morph is hidden under my main "Morphs" category. I have no idea how to get rid of something I don't have. I've looked in the main folder and in folders outside of the SuperCape and not finding any file labeled "SuperCape-C02"

Thought I had is solved but it's still throwing Dup ID's so not sure what to think about that. I tried transferring the morphs into a new cape and some don't even function but function fine in the old cape so there is SOMETHING amiss. The new cape was not throwing the dup id error but having 3 hard made adjustment morphs no longer functioning is not OK. lol

Still can't figure out what's throwing the Dup ID's. Here are my thoughts and a little code from the main duf file (one that's in the actual People>Genesis folder that loads the data for the actual SuperCape.

As you can see there is a bolded out bit with an id called 'geometry' but the main geometry is called SuperCape because that's what I named the obj when I exported it from ZBrush. So wondering if this extra bit of lines might be the culprit?? I'm out of ideas and would really appreciate some help in trying to figure this out.

In the snippet, the node is called SuperCape and the geometry that belongs to the node is called geometry. That's as it should be - if they were the same that would throw a duplicate IDs error. The problem could be a node further down the tree, or a material name - anything with an id should have a unique id within the figure (it's OK for bits of different figures to have the same id as the figure identifier distinguishes them).

Copy the data files to /daz 3d/tools/projection templates/ and the main file to daz/3d/projection templates, which makes the broken one a template. Rerig the base mesh from scratch through Transfer Utility and the new template(it should add the morphs as well). See if it still is broken.

Still working on the rig and weight mapping so don't really want to mess with that just now. The issue is I don't know if it's the main loading .duf file or if it's one of the morph files it's reading. I've tried everything to locate the issue and I keep running into a wall.

Still working on the rig and weight mapping so don't really want to mess with that just now. The issue is I don't know if it's the main loading .duf file or if it's one of the morph files it's reading. I've tried everything to locate the issue and I keep running into a wall.

Very easy to check that specific thing. Cut and paste the Morphs folder from data files to the desktop, reload Studio and the item, and see if the error is still there.

By warped I guess you are talking about the exploded figures, save the scene again, and open the newest save, Your new thumbnail will show the exploded figure, but this usually fixes the exp-loads, if that is what you are referring to.