Jump to content
Nexus Mods Official Soundtrack - The Sounds of Modding ×

More efficient object naming, anyone?


amokrun1

Recommended Posts

So I have an extensive list of misc mods that all have a commonality in their in-game names that I want to remove. For example, {TIER} Ballistic Armor L1, I want to remove {TIER} from all records. Problem is, the number of instances is quite high, over 1000, and they all for the most part have slight differences to their names, so I cannot just delete the selected records and copy a new renaming to all of them. I am using FO4Edit for this, but help in either this or CK would be greatly appreciated, as going through each record to rename it is not appealing. Any recommendations?

Link to comment
Share on other sites

In xEdit have a script named "Replace Text in EDID and FULL", you need to edit it like this to replace {TIER} with nothing:

 

StrSearch = '{TIER} ';
StrReplace = '';
Then, to avoid editing the EDID, or said with other words, edit only FULL (which is the name of the record) you need to comment the line that does the replacement in the EDID (by adding 2 slashes at the beginning of the line), so the script will replace only the string in FULL:
function Process(e: IInterface): integer;
begin
  // SearchAndReplace(ElementBySignature(e, 'EDID'), StrSearch, StrReplace);
  SearchAndReplace(ElementBySignature(e, 'FULL'), StrSearch, StrReplace);
end;
Link to comment
Share on other sites

You can also do this

function Process(e: IInterface): integer;
begin
  // SearchAndReplace(ElementBySignature(e, 'EDID'), StrSearch, StrReplace);
  SearchAndReplace(ElementBySignature(e, 'DESC'), StrSearch, StrReplace);
end;

to replace info in the description and also here is another awesome Search and Replace script

https://pastebin.com/v5yaUPRb

 

just create a new .pas file...paste that in and hit CTRL R in xEdit.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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