Jump to content

xEdit script: Copy as override all references to FormID


payl0ad

Recommended Posts

Hey forums,

 

I'm working on a mod for which I need overrides of all references to some certain static object.

 

In the CK, this is a task that would take months, probably. But I know that given a good xEdit script, it's matter of seconds. I don't understand the Delphi code used in these scripts though and haven't found any documentation on it. I'm an IT pro, so I know some programming but Delphi is beyond me. I don't even understand the code to a point where I could copy and paste stuff together.

 

I've found this page: https://github.com/TES5Edit/xEditScripts

 

And it seems to have some scripts that should contain the functionality I need at some point but being unable to parse Delphi code, I can't tell which lines do what I need. For example this one: https://github.com/TES5Edit/xEditScripts/blob/master/Scripts/Copy%2C%20Edit%2C%20and%20Flag%20References.pas

 

It does take static FormIDs but will probably contain code that searches for that FormID and copies the refs, inferring just from the comments and the file name.

 

So, to reiterate, I need to do precisely this:

  • Enter a FormID
  • Run through some plugin file and find all placed refs that use this FormID as a ref base
  • Copy those as overrides into a new plugin

Is anybody able to help?

Link to comment
Share on other sites

Well thanks, now I feel stupid in 2 different ways. :-D

 

I'll try. I still think having an xEdit script doing that would be cleaner, this is bound to cause additional work for cleaning up all those copies that are not placed refs.

Link to comment
Share on other sites

OK, just gave it a real quick dry run - does what I need it to. Funny, I've been pondering how to do this for some days and it never occurred to me that I can indeed just Ctrl+F that whole shebang. Thanks!

Link to comment
Share on other sites

There's a pretty easy way to do it in xEdit as well:

 

1) Right click -> Other -> Build Reference Info -> Select Fallout4.esm*

2) Find and select the base record you want to copy

3) Click the "Referenced by" tab

4) Select all the records you want to copy -> Right click -> Copy as Override into...

4a) If you only want certain types of records (e.g. REFR records), sort by Signature first

4b) If you only want records in a certain plugin, sort by file

 

 

*This step is only needed if you want all the references in the base game

Link to comment
Share on other sites

  • Recently Browsing   0 members

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