Jump to content

[Scripting] "Name" does not match "EditorID" in ESP -> Script returns none


Nymra

Recommended Posts

Posted

well, sorry but I have no idea how to describe this better.

 

Problem is:

 

I want to get Headparts via String Input (MCM):
 

        HairStages = new HeadPart[1]    

        HairStages[0] = HeadPart.GetHeadPart("SavedString")

 

But now I noticed that "HairStages[0]" is not filled, when in the ESP the "Name" and the "EditorID" do not match exactly.

For example Dints HDT Hairstyles use naming like 
EditorID: _dint_SG_superhair
Name: SG Superhair

So when I input "SG superhair" as string, the Hairstages will not be filled.
When I change the Name in the ESP to match the EditorID, the script works.

 

Noooow, since I dont feel like editing the entirety of hairstyle mods, is there any kind of script sourcery I can use here to translate the Input String correctly into... well, whatever else I guess?


Was just about to test if it helps when I input the EditorID as string, but that is not ideal since players will have no easy way to find the EditorID in game since all I know I can only display the "Name" not the "EditorID"... gaaaah, problems... problems....

 

thx alot for any ... input here...

 

 

 

Posted
5 hours ago, Swe-DivX said:

Is it not better to use FormID(without load order + modname) and it works regardless of which mode you have installed?

 

I want the users to be able to set their hair styles in the MCM, so the hair style name is the only thing they can use. 
 

Posted
19 hours ago, Nymra said:

 

I want the users to be able to set their hair styles in the MCM, so the hair style name is the only thing they can use. 
 

Have you looked in SKSE / SkyUI / RaceMenu? I think in the scripts you will find the part for the hairstyle change.

Posted
10 hours ago, Andy14 said:

Have you looked in SKSE / SkyUI / RaceMenu? I think in the scripts you will find the part for the hairstyle change.

 

hairstyle change works without issues, but only with ESP mods that have no difference in "EditorID" and "Name"

In other words I try to find a workaround for what it seems to be another mod authors oversight (was the same problem with HighPoly Head and wEtFunction not working together) without editing the whole 200 wrong esp entries manually :(

Archived

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

  • Recently Browsing   0 members

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