Help with V4 hair

Jack of SpadesJack of Spades Posts: 80
edited December 1969 in Daz Studio Discussion

I recently purchased a V4 hair on Renderosity, figuring it would be no more trouble than past V4 purchases to get to work with Genesis. I can't even get it to work with V4+.

After some searching (thankfully I'm command-line literate) I found where the hair had been hidden and imported it. It had no morphs. Some more searching, and I found a morph injector script hidden in the materials poses. That's where I got stuck.

The logs basically show it throwing up on most of the injections. I'm not sure how to get past this point. I won't reproduce the whole thing in the interest of not totally spamming the forum, but the gist of it is:


Warning: Vertex index for delta out of range on line 27 in /Users/Shared/My DAZ 3D Library/Runtime/MT-/inj.pz2
Unexpected '}' found in file on line  in /Users/Shared/My DAZ 3D Library/Runtime/MT-/inj.pz2

repeated with variations about 50 times. Which is about right; it has about 50 morphs. I can correct the "unexpected '}'" part manually by removing the final '}' in the file, but I have no idea how to repair the "Vertex index for delta out of range" error. Is this thing just too broken to use?

(Note I'm trying to avoid shaming the creator. I've also messaged them through Renderosity.)

Comments

  • Richard HaseltineRichard Haseltine Posts: 102,344
    edited June 2015

    It may be that the hair isn't DS compatible - for example, does it include .pmd files? You certainly shouldn't need to dig through the command line to find it - it will usually be under Poser Formats>Folder you installed to>Hair>Some folder or Poser Formats>Folder you installed to>Figure>Some folder in the Content Library pane. The error message you quote makes it look as if you have found some hidden data files that are meant to be loaded by user-facing files in Poser Formats>Folder you installed to>Pose>Some folder

    Post edited by Richard Haseltine on
  • Jack of SpadesJack of Spades Posts: 80
    edited December 1969

    Richard, other users' reviews suggest they've been able to use it in DAZ Studio. Once the command line gave me the lead, I found it in Poser Formats > My DAZ Studio Library > Figures > , and the injection script in Poser Formats > My DAZ Studio Library > Pose > MAT-; I can just never find anything related to Poser in the place I expect it.

    The user facing file's icon says "INJECT Morphs"; there's a corresponding "REMOVE Morphs", so I'm pretty sure it's meant to be user facing. Other than images (.png & .jpg), the file types installed are .pz2, .cr2, and .obj.

    The 'INJECT Morphs' item appears to be a wrapper around scripts to inject each morph – the ones that are failing. It consists predominantly of a bunch of readScript lines.

  • SpottedKittySpottedKitty Posts: 7,232
    edited December 1969

    Note that those "INJ morphs" aren't the actual morphs, they're control scripts that load the real morph data files, which are stored elsewhere in your content /Runtime/ folder. Look inside your .zip installer, and see if there's an unfamilar folder that doesn't appear in your Content Library tab, tucked away most likely in your /Runtime/Libraries/ folder. (The exact location varies, depending on where the content creator thought was "an obvious good place" to put the folder. If it isn't in the /Libraries/ folder, it might be one level up, directly inside the /Runtime/ folder. The name might or might not start with an !exclamation !mark, and might or might not be the name of the morph set, or of the content creator.)

    If those files in the installer aren't in the same place in your /Runtime/ folder, that's likely to be the cause of the errors you're getting — the scripts will be looking for the morph data files in a specific location, and not finding them.

  • Jack of SpadesJack of Spades Posts: 80
    edited December 1969

    SpottedKitty, it does seem to be finding the scripts it's trying to run. They look like this:

    {
            version
                    {
                    number 4.01
                    }
            actor neck:1
                    {
                    channels
                            {
                            targetGeom 47
                                    {
                                    name BackBack
                                    forceLimits 4
                                    min -100000
                                    max 100000
                                    trackingScale 0.000783896
                                    keys
                                            {
                                            static  0
                                            k  0  0
                                            }
                                    interpStyleLocked 0
                                    indexes 50704
                                    numbDeltas 102667
                                    deltas
                                            {
                                            d 1 0 0.0002070069 -0.0020884
                                            d 2 0 0.0002440214 -0.002390699
                                           
                                            }
                                    }
                            }
                    }
            }
    

    Eliminating what appears to be an extra '}' at the end does clear the "Unexpected '}' found" error for that file, but I'm at a loss on the "Warning: Vertex index for delta out of range on line 27" error; it's the first delta value, but I can't tell what should be in range. Or I may be chasing a red herring trying to get this to import.

Sign In or Register to comment.