MirandaKusland Posted December 30, 2024 Share Posted December 30, 2024 I decided to pare down the existing KS Hairdo's hair pack, and removed all the unnecessary meshes from the meshes folder. Is there a quick way to update mesh references in Kit to see which ones are empty? Link to comment Share on other sites More sharing options...
dylbill Posted December 30, 2024 Share Posted December 30, 2024 I'm not sure what you mean by that. Do you mean there are meshes included with KS Hairdo that are not used by the mod? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 30, 2024 Share Posted December 30, 2024 My guess is that they deleted the hair meshes that they would never use and now want to remove references to them in the plugin so that they do not attempt to show up in the racemenu. If that is the case, I'd thought that KS hairdo had included the hair name in the NIF and TRI files as well as in the associated plugin records. If that is indeed the case, then deleting those records from the plugin should work (do it in the CK as it will remove any references to the record being deleted from within other records as well.) But if the meshes are gone and now do not have access to those names to get the correct records.... Only way I know is to open each record, see what mesh is being referenced, and checking if it exists or not. None of that is quick. 1 Link to comment Share on other sites More sharing options...
dylbill Posted December 30, 2024 Share Posted December 30, 2024 59 minutes ago, IsharaMeradin said: My guess is that they deleted the hair meshes that they would never use and now want to remove references to them in the plugin so that they do not attempt to show up in the racemenu. If that is the case, I'd thought that KS hairdo had included the hair name in the NIF and TRI files as well as in the associated plugin records. If that is indeed the case, then deleting those records from the plugin should work (do it in the CK as it will remove any references to the record being deleted from within other records as well.) But if the meshes are gone and now do not have access to those names to get the correct records.... Only way I know is to open each record, see what mesh is being referenced, and checking if it exists or not. None of that is quick. Gotcha. If it was me I'd write a papyrus script to speed up the process. You can check with skse and papyrusUtil. Put all the armorAddons from ks hairdos in a formlist in the ck. In papyrus cycle through the list, check each with ArmorAddon.GetModelPath(bool firstPerson, bool female) and MiscUtil.FileExists(string fileName). If it doesn't exist, Log or print the armor addon to an external file. Link to comment Share on other sites More sharing options...
scorrp10 Posted December 31, 2024 Share Posted December 31, 2024 Probably best to do an xEdit script that will go through all headpart records, check uf referenced mesh file exists, and if not, removes the 'Playable' flag. Link to comment Share on other sites More sharing options...
MirandaKusland Posted January 3 Author Share Posted January 3 Vsem spasibo. V itoge ya sostavila spisok faylov, kotoryye khotela isklyuchit' i rukami udalila ne nuzhnyye pricheski iz moda. Thanks everyone. As a result, I made a list of files that I wanted to exclude and manually removed unnecessary hairstyles from the mod. Link to comment Share on other sites More sharing options...
Recommended Posts