Jump to content

[LE] QueueNiNodeUpdate, Head Parts and HDT-SMP


Myst42

Recommended Posts

I'm aving a problem with a certain mod of mine, which is Vision.

Actually, the part of it where it integrates with Dynamic Vampire Appearance

 

When I did that mod, I wasn't using HDT hairs, and now I am, plus a bunch of other stuff.

Thing is, the more you use, the more something breaks. And HDT hairs, or at least, these ones, have a way of breaking themselves when coupled with stuff like SMP enabler physics, which are used for certain outfits.

 

The symptom is hairs getting stuck, and when player moves, vertexes stretch and deform horribly.

Actually, I'm not entirely sure what causes this,I think it's the result of HDT hairs and SMP-PE path, but I can't confirm.

Opening the race menu in game, or running a QueueNiNodeUpdate function on a script fixes this but...

It also resets eyes.

 

So I got this script:

UpdatePlayerComplexion() --> this function eventually leads to_ CurrentActorBase.SetFaceTextureSet(NewFace)
UpdatePlayerEyes() --> PlayerRef.ChangeHeadPart(NewEyes)
RefreshFace() --> Detailed below, because I found somewhere that this works best if done as follows:
--
Function RefreshFace()
    String Facegen = "bUseFaceGenPreprocessedHeads:General"
    Utility.SetIniBool(Facegen, False)
    PlayerRef.QueueNiNodeUpdate()
    Utility.SetINIBool(Facegen, True)
EndFunction

The RefreshFace() function is only a supposedly "better way" to clean up the face, and avoid certain face bugs as a collapsed face after changing, but it's core, is the QueueNiNodeUpdate()

 

Now the problem with this is that I want the eyes to change, and for some reason, when using HDT hair what happens is this:

First, eyes change, but hair breaks

Next,the update fixes the hair, but returns eyes to the original ones.

 

If I change the order, what happens is:

Prepare the change, with Queue...

Eyes change successfully, and stay changed

HDT hair breaks

 

So I'm asking if anyone knows anything about this, or am I just wasting my time and it's simply not possible to combine DVA with HDT + SMP sucessfully without one of them breaking.

Alternatively, maybe it could be nice to know of a way to fix the broken hairs perhaps so that the update doesnt kill them.

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...