how to make compatibility plugins?

Post » Thu Dec 13, 2012 2:58 pm

I'm working on a mod that deals primarily with a bunch of FormLists that contain Items of various sorts. The FormLists in my base mod cover everything from the base game (Skyrim.esm), which works great, but I'd like to eventually support compatibility plugins which provide additional FormLists that cover items added in other mods -- Immersive Weapons and Armors, Jaysus Swords, that kind of thing.

The problem is, the CK will not allow one ESP to refer to content in a different ESP. I can make a new plugin, add a FormList, drag-n-drop all the items from the other mod and it all looks fine until I reload and suddenly my FormList is empty again. So how do I do this?

Taking Immersive Armors as an example, do I have to somehow copy and repackage all the IA armor records into my compatibility mod, so that the FormList isn't referring to anything in IA's ESP anymore? Won't that screw up IA's own references to those armor records?

Do I have to manually hardcode the IA FormIDs in a script and then use GetFormFromFile() to map them to the correct prefix for the IA ESP at run-time? That sounds pretty tedious for potentially hundreds of items.

Is there some better way to do this that I'm not thinking of?
User avatar
luis ortiz
 
Posts: 3355
Joined: Sun Oct 07, 2007 8:21 pm

Return to V - Skyrim