Editing Modding:Creating hair merged.lsf with custom texture

From Baldur's Gate 3 Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
Your custom texture must be in .DDS (uppercase) format and preferably inside the same folder as your .GR2.  
Your custom texture must be in .DDS (uppercase) format and preferably inside the same folder as your .GR2.  


To use, replace your _merged file with this example and then use the Replace function to replace the MATERIALUUID and TEXTUREUUID with two new UUIDs, respectively.  HAIRVISUALRESOURCEID needs to be the same as the UUID in CharacterCreationAppearanceVisuals. Also, ensure the names and file paths are changed from New_Hair_Template to whatever your file name/file path is. Everything else can be left as default.
To use, replace your _merged file with this example and then use the Replace function to replace the MATERIALUUID and TEXTUREUUID with two new UUIDs, respectively.  HAIRVISUALRESOURCEID needs to be the same as the UUID in CharacterCreationAppearanceVisuals. Also, ensure the names and file paths are changed from Em_New_Hair_Template to whatever your file name/file path is. Everything else can be left as default.


<syntaxhighlight line="1" lang="xml">
<syntaxhighlight line="1" lang="xml">
Line 397: Line 397:
<!--This needs to match the other TEXTUREUUID and be replaced with a new UUID.-->
<!--This needs to match the other TEXTUREUUID and be replaced with a new UUID.-->
<attribute id="Localized" type="bool" value="False" />
<attribute id="Localized" type="bool" value="False" />
<attribute id="Name" type="LSString" value="New_Hair_Template_MSKA" />
<attribute id="Name" type="LSString" value="Em_New_Hair_Template_MSKA" />
<!--This needs to be the name of your custom texture.-->
<!--This needs to be the name of your custom texture.-->
<attribute id="SRGB" type="bool" value="False" />
<attribute id="SRGB" type="bool" value="False" />
<attribute id="SourceFile" type="LSString" value="Generated/Public/New_Hair_Template/[PAK]_New_Hair_Template/New_Hair_Template_MSKA.DDS" />
<attribute id="SourceFile" type="LSString" value="Generated/Public/Em_New_Hair_Template/[PAK]_Em_New_Hair_Template/Em_New_Hair_Template_MSKA.DDS" />
<!--This needs to be the file path to your custom texture in .DDS format.-->
<!--This needs to be the file path to your custom texture in .DDS format.-->
<attribute id="Streaming" type="bool" value="True" />
<attribute id="Streaming" type="bool" value="True" />
<attribute id="Template" type="FixedString" value="New_Hair_Template_MSKA" />
<attribute id="Template" type="FixedString" value="Em_New_Hair_Template_MSKA" />
<!--This needs to be the name of your custom texture.-->
<!--This needs to be the name of your custom texture.-->
<attribute id="Type" type="int32" value="1" />
<attribute id="Type" type="int32" value="1" />
Line 443: Line 443:
<attribute id="Slot" type="FixedString" value="Hair" />
<attribute id="Slot" type="FixedString" value="Hair" />
<attribute id="SoftbodyResourceID" type="FixedString" value="" />
<attribute id="SoftbodyResourceID" type="FixedString" value="" />
<attribute id="SourceFile" type="LSString" value="Generated/Public/New_Hair_Template/[PAK]_New_Hair_Template/New_Hair_Template.GR2" />
<attribute id="SourceFile" type="LSString" value="Generated/Public/Em_New_Hair_Template/[PAK]_Em_New_Hair_Template/Em_New_Hair_Template.GR2" />
<!-- Make sure this matches your folder structure. Should have .GR2 at the end. -->
<!-- Make sure this matches your folder structure. Should have .GR2 at the end. -->
<attribute id="SupportsVertexColorMask" type="bool" value="False" />
<attribute id="SupportsVertexColorMask" type="bool" value="False" />
<attribute id="Template" type="FixedString" value="Generated/Public/New_Hair_Template/[PAK]_New_Hair_Template/New_Hair_Template.Dummy_Root.0" />
<attribute id="Template" type="FixedString" value="Generated/Public/Em_New_Hair_Template/[PAK]_Em_New_Hair_Template/Em_New_Hair_Template.Dummy_Root.0" />
<!-- Make sure this matches your folder structure. Should have .Dummy_Root.0 at the end. -->
<!-- Make sure this matches your folder structure. Should have .Dummy_Root.0 at the end. -->
<attribute id="_OriginalFileVersion_" type="int64" value="144115205255725060" />
<attribute id="_OriginalFileVersion_" type="int64" value="144115205255725060" />
Line 455: Line 455:
<attribute id="MaterialID" type="FixedString" value="MATERIALUUID" />
<attribute id="MaterialID" type="FixedString" value="MATERIALUUID" />
<!--This needs to match the other MATERIALUUID and be replaced with a new UUID.-->
<!--This needs to match the other MATERIALUUID and be replaced with a new UUID.-->
<attribute id="ObjectID" type="FixedString" value="New_Hair_Template.New_Hair_Template_Mesh.0" />
<attribute id="ObjectID" type="FixedString" value="Em_New_Hair_Template.Em_New_Hair_Template_Mesh.0" />
<!-- Make sure this matches your GR2 name. -->
<!-- Make sure this matches your GR2 name. -->
<attribute id="Physics" type="FixedString" value="" />
<attribute id="Physics" type="FixedString" value="" />
Please note that all contributions to Baldur's Gate 3 Wiki are considered to be released under the CC BY-NC-SA license, except when noted otherwise (see BG3Wiki:Copyrights for details). If you do not want your writing to be edited and redistributed at will, do not submit it here. Per our Content Rules, you are promising that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)