V 1.1 ======= I addded some functions to import/export names to external files. This was done for batch renaming items you've already renamed. It exports the FormID along with its associated (FULL) name. When importing, it applies the associated name to a FormID, so it won't rename things that aren't there in your importing file. Files are saved in your xEdit folder as *.csv, if you want to manually inspect them.
Example usage: Let's say you painstakingly renamed thousands of items and then your mod's author suddenly made changes that rendered your renamed records incompatible with the new ones. Instead of trying to solve conflicts, simply use this script to export your renamed items, create a new patch for the new mod's version and import your saved file to that patch. Voila! Now you have restored your hard work to the new version of the mod.
Another thing it can be used for is for advanced search and replace this script can't do. Export the records you want to rename, open your exported *.csv file in Notepad++ or something, rename items there and then import that file with this script.
For anyone having mteFunctions.pas error, go to Edit Scripts folder then create a folder called "lib". Then download mteFunctions.pas from here and put it in that folder.
Does it always fail or under some specific circumstances? When doing what?
The problem here is that I've updated this script quite a lot and that error may be gone, but the new version is not releaseable because many features are missing.
The error pop up right after I hit "OK" on the apply script window, I've never had chances to do anything. As for other scripts, I've used AT-QuickChange a lot and it worked smoothly.
Right now I have a more developed (non stable) version on my PC, so I can't check this and I may be a bit wrong, but you can rename ids by searching for 'FULL' (apostrophes included) and replace it for 'EDID'. That should do the trick.
42 comments
V 1.1
=======
I addded some functions to import/export names to external files. This was done for batch renaming items you've already renamed.
It exports the FormID along with its associated (FULL) name.
When importing, it applies the associated name to a FormID, so it won't rename things that aren't there in your importing file.
Files are saved in your xEdit folder as *.csv, if you want to manually inspect them.
Example usage:
Let's say you painstakingly renamed thousands of items and then your mod's author suddenly made changes that rendered your renamed records incompatible with the new ones.
Instead of trying to solve conflicts, simply use this script to export your renamed items, create a new patch for the new mod's version and import your saved file to that patch.
Voila! Now you have restored your hard work to the new version of the mod.
Another thing it can be used for is for advanced search and replace this script can't do.
Export the records you want to rename, open your exported *.csv file in Notepad++ or something, rename items there and then import that file with this script.
Have fun!
Thank you for the great mod!
unit Whatever;
interface
uses xEditApi;
implementation
function Process(e: IInterface): Integer;
begin
SetElementEditValues(e, 'FULL', EditorId(e));
end;
end.
Too much of a hassle to create a full mod page for this
I heart you so much right now.
Does it always fail or under some specific circumstances?
When doing what?
The problem here is that I've updated this script quite a lot and that error may be gone, but the new version is not releaseable because many features are missing.
It seems to happen when using Prepend If...:
I have an idea.
Maybe you are trying to use an apostrophe ' or % in any of your inputs. For example:
If that's the case, try to double the symbol, like this:
I'll check that later.
This version still worked for me, so I think it was an operating system language related issue.
Please check it.
The problem should have gone now.
Right now I have a more developed (non stable) version on my PC, so I can't check this and I may be a bit wrong, but you can rename ids by searching for 'FULL' (apostrophes included) and replace it for 'EDID'.
That should do the trick.
For changing names again, revert those changes.
I used this to remove tags (I'm weird I know) to a mod that add hundreds of tagged items.