Jump to content

Nioverride/NetImmerse scripting and configuration.


zensunniwanderer

Recommended Posts

Posted

I've been working on trying to patch certain mods to support male players, my current interests are adding fill her up inflation for males and milkmod breast milking for males. I appreciate that some people would be totally perplexed why, but I hope you can see past that and offer me some advice on how to get it to work.

 

Most of the time I can "trick" the mod into believing all of the actors are female by modifying the scripts to see males as females. e.g., where a test such as akActor.GetActorBase().GetSex() == 1  exists I change this to akActor.GetActorBase().GetSex() <= 1  I suspect that this is a terrible way of going about this but I'm very new to papyrus scripting.

 

So, my issue primarily is getting (belly primarily) nodes to scale. I have SAM and SAM HDT installed, SAM has breast nodes and SAM HDT has a HDT and NPC belly NiNode which I can scale (somewhat) using a belly slider in showracemenu however when I put the scaler to 5 it barely has any effect. I've not been able to do this in a script, though.

 

I've tried fruitlessly to find documentation for either library (if that's the correct term) and I've searched the forums with no success so I'm hoping some of you lovely scripting wizards can advise me. :)

 

tl;dr: I would like to know the syntax that would allow me to scale the male belly node. Preferably NiOverride but NiImmerse as well.

Posted

Someone would have to weight the body mesh to these nodes for it to show any effect.

 

The coding is only half the problem. The other is updating your mesh's skinning.

Posted

If you are using NiOverride, one important thing to note is that all NiO functions (e.g.

Function AddNodeTransformScale(ObjectReference akRef, bool firstPerson, bool isFemale, string nodeName, string key, float scale) native global

) have a parameter "bool isFemale". If you want these calls to work for both sexes, you need to pass akActor.GetActorBase().GetSex() for that argument.

Posted

If you are using NiOverride, one important thing to note is that all NiO functions (e.g.

Function AddNodeTransformScale(ObjectReference akRef, bool firstPerson, bool isFemale, string nodeName, string key, float scale) native global

) have a parameter "bool isFemale". If you want these calls to work for both sexes, you need to pass akActor.GetActorBase().GetSex() for that argument.

 

Fantastic! I was wondering about how that specific boolean was dealt with. :)

Posted

I tried this way back when, when I attempted to make a framework for node scaling mods. (That did not go well.)

Never could get meshes with proper scaling nodes, mostly because the best I could do was $%^& around with Bodyslide Studio.

Good luck man, I seriously hope this works! (Finally won't have to play as female to have the parts of the world I want.)

Thanks!

Posted

 

If you are using NiOverride, one important thing to note is that all NiO functions (e.g.

Function AddNodeTransformScale(ObjectReference akRef, bool firstPerson, bool isFemale, string nodeName, string key, float scale) native global

) have a parameter "bool isFemale". If you want these calls to work for both sexes, you need to pass akActor.GetActorBase().GetSex() for that argument.

 

Fantastic! I was wondering about how to deal with that specific boolean was dealt with. :)

 

 

No prob, tried to do the same for a mod a while back and stumbled upon it.

Please mind that directly passing the value from GetSex() will rely on Papyrus' auto-casting, so you should make sure it will return a sensible value (i.e. 0 or 1) beforehand, or weird stuff will happen.

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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