Jump to content

Recommended Posts

I've made an agreement with someone to release this project publicly as I haven't played the game for months, and I am completely retired from both playing and modding Skyrim.

Since I can't create a download thread because of the throwaway account, I'll simply attach it as a standard thread.

As with everything that I've created for Skyrim, there is no license and you are free to redistribute or do with it whatever you wish to do, including re-posting this as a download thread.

 

This mod adds compatible wigs to SexLab actors, but only for the duration of the SexLab scene, the wigs are removed afterwards. The wigs are also dynamically colored to the actors' hair colors to avoid mismatching.

The main purpose of this mod was to dynamically add HDT hairs to actors, but only for SexLab scenes, preventing performance downgrades and Havok related bugs.

Hairs and wigs are matched by hashing and comparing their vertices at runtime. Hash+wig combinations are defined at "SexLab - Wigs.ini".

NPCs can be assigned a different wig regardless of the hash by setting an entry in the [NPC] section (ActorBasePlugin.esp+AABBCC = WigPlugin.esp+AABBCC). Assigning "NONE" to the wig means this NPC will never be given a wig, even if a hash matches.

 

Source code for the SKSE plugin and xEdit scripts are attached aswell.

 

xEdit scripts:

SexLab - Make Wig.pas: Copies a wig's ARMO and ARMA records and format them accordingly to the format used by this mod.

SexLab - Generate Wig Hashmap.pas: Generates a hashmap for the selected wigs. A TSV hair mesh table file is required ("wig mesh.nif"\t"hair mesh.nif"). Meshes must be loose files.

SexLab - Filter Wig Actors.pas: Find actors with compatible wigs. Facegeom meshes must be loose files. This script is very slow.

SexLab - Hash NPC.pas: Hash actors' hair vertices data. Facegeom meshes must be loose files. This script is very slow.

 

Supported wigs out of the box (ESPs are not required if you don't want the wigs other than for SexLab):

https://www.nexusmods.com/skyrim/mods/98438

https://www.nexusmods.com/skyrim/mods/73137 (I've added the scalp mesh to them and converted the remaining few hairstyles it didn't cover from https://www.nexusmods.com/skyrim/mods/70363)

 

Skyrim SE (SKSE64): In theory it should not be hard to convert this mod, but some work is required. For one, the hash algorithm used is one designed to be very fast on 32-bits machines; a more suitable 64-bits machine algorithm should be used instead.

 

Take this mod "AS IS". No further support will be provided.

 

Download: https://mega.nz/folder/xJNXxIjL#sZgmEepsvyS33HjZEGXtUA

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use