ESP-to-XML converter

This is a small command-line perl script to convert .esp, plugin files for Morrowind, into an XML-based format, and back again. This is useful for many reasons, including You can Download version 0.1 here, and the (limited) HTML documumentation for the espxmlc command is available here. You will also need perl; I've only tested it with a local version of Perl 5.8.0, but you should be able to get it to run with ActivePerl or any standard Perl 5.8 version (probably also 5.6.1, but again, I've not tested it). If you try, let me know how you get on, and I'll update this page!

The converter will work on plugin files (.esp), but also on the master files (.esm) shipped with the game, and on saved games (.ess).

The conversion to "XML" was designed to be invertible without a lot of prior knowledge in the XML-to-ESP translator, which is why it looks a bit odd! If anybody out there actually knows XML and can make suggestions as to how it would be better done, please do get in touch.

Also, because my intial purpose was to store .esp files in CVS, I've not gone all the way down the road of actually interpreting the data. If you are interested in more of the details of the objects (for browsing or editing) and this version doesn't expand them in enough detail, drop me a line and I'll do what I can to expand it for you. I do plan to cover it all eventually!

To save you the trouble of downloading it if it's not going to do what you want, here is an example conversion of a totally-unfinished mod of mine (about 140K, uncompressed) so you can see what the format is like.


Andy Mortimer
Last modified: Thu May 29 18:42:03 BST 2003