How to add a CCXL hair color to an NPV
This will show you how to add a CCXL hair color to an NPV using my hair colors as a guide. (Feel free to crack open my mods!)
You’ll just path the .hp and cap files. Some of this is going to be a little funky but don’t worry about it lol. Okay, we’re going to use hh_043_wa__modern_bob.mesh as our example for this one. I want to make sure my NPV is using flecktarn.
Mesh prep
Since we’re essentially replacing the .hp and cap .xbm, you can pick whichever color you want here.
I’m going to do blonde_platinum in this instance.
Pathing the textures
.mesh textures
Add the .mi files from the hair mesh as indicated in localMaterialBuffer and/or externalMaterials.
.mi textures
We have the vanilla blonde_platinum hair profile in here. We can just replace it with the hair profile you want to use from one of my mods.
And that’s it!
Cap files
The hair above doesn’t need a cap. Let’s look at one that does have a cap to show you how to replace it with my cap.
I’m using the rattail. Here are the initial materials custom pathed:
Just like in the prior section, we’re updating the .hp in the first .mi
The two values in hh_026_black_carbon__cap.mi are the non-color textures, the ones that dictate the pattern and whether or not you have to use the special cap for cyberware 01. Path these as you normally would either with vanilla or any texture mods you use.
The file we’re going to edit for the cap color will be in the black_carbon__cap.mi
Add the hh_cap_grad__ file from my mod. In this case, it’s hh_cap_grad__flecktarn.xbm
Path it in the cap.mi file.
Save the file and you’re all set!
A little theory (if you’re interested)
You can ignore all the other files in my CCXL mod for NPV/NPC+ because CCXL standardized the hair textures, allowing the ability to use dynamic materials.
Dynamic materials means being able to use wildcards so you can have multiple textures but only need to path one with wildcards. For example, in my CCXL hair colors, we have these generic .mi files. The paths to the .hp files looks like this: *ratstick\kermie_ccxl\hair_profiles\{material}.hp
The .mesh and .mi files are just part of the way CCXL works and loads the materials. But the cap .xbm and .hp files are the only ones I’m actually changing. So, we only need to update the files that change the color in the NPV/NPC+
Last updated