Jump to content

I need an xEdit script to change formIDs AND fix their references


cheesetoast8

Recommended Posts

IDK if there is a rule against reposting a topic in another thread, but i'm posting this under both "Mod Requests" and creation/modders because I didn't know which would be more appropriate.

 

I've spent a lot of time over the past year pretty much mastering the process of manually combining plugins and resolving conflicts in FO4Edit. However, I still have no idea how scripting works. Can anybody make me a script that will renumber multiple selected formIDs while also redirecting their references to the new formIDs? My issue is that if two separate plugins happen to each have a references between them that shares the last six digits of any formID, then i need to change them so that they won't conflict when merged into one plugin. I've found this problem happening a ton recently, and I would save a lot of time if i could run that script instead of editing all of the formIDs manually like i've been doing the past three days.

 

any help is appreciated, thanks!

Edited by cheesetoast8
Link to comment
Share on other sites

I can imagine running into so many problems doing what you plan to do. But there's a script that's included with xEdit called "Renumber FormID" that will probably do what you want. Select any base node either a specific record or a tree root (or multiple ones) and right click. Then run script like normal. It will ask for a new starting number then changes all loaded refs pointing to that record before doing the actual renumber. Just make sure that you have references loaded before running it or odd things will happen.

 

One issue I can foresee being a problem is if you do this to a mod, merge it, and then that mod updates. You then decide to update and redo it and remerge. You could very often end up with different sequencing of numbers if doing a batch renumber.

 

If you never plan to update any mods that are being merged then it probably won't be an issue.

Link to comment
Share on other sites

...there's a script that's included with xEdit called "Renumber FormID" that will probably do what you want. Select any base node either a specific record or a tree root (or multiple ones) and right click. Then run script like normal. It will ask for a new starting number then changes all loaded refs pointing to that record before doing the actual renumber.

 

I'm aware. Issue is, it that script doesn't change the references to the new formIDs. it just clears them. going in after that and putting those references in manually would just create even more work.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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