payl0ad Posted March 18, 2018 Share Posted March 18, 2018 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 FormIDRun through some plugin file and find all placed refs that use this FormID as a ref baseCopy those as overrides into a new pluginIs anybody able to help? Link to comment Share on other sites More sharing options...
JonathanOstrus Posted March 18, 2018 Share Posted March 18, 2018 I'm not trying to sound like an ass, but have you tried the CK build in Search & Replace function? A lot of people don't know about it. It's up on the Edit menu. Link to comment Share on other sites More sharing options...
payl0ad Posted March 18, 2018 Author Share Posted March 18, 2018 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 More sharing options...
payl0ad Posted March 18, 2018 Author Share Posted March 18, 2018 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 More sharing options...
VIitS Posted March 18, 2018 Share Posted March 18, 2018 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 copy3) Click the "Referenced by" tab4) 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 first4b) 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 More sharing options...
payl0ad Posted March 18, 2018 Author Share Posted March 18, 2018 3 different ways, yaaaay! :laugh: Link to comment Share on other sites More sharing options...
Recommended Posts