LBXExtract utility v1.0 by Implode
----------------------------------
Utility to extract & convert individual files from original Master of Magic
LBX files.

Instructions
------------
Place both EXEs (LBXExtract.exe and XMI2MID.exe) in the same folder as your
original Master of Magic LBX files (I recommend NOT doing this right in your
original Master of Magic installation folder since, although it doesn't
actually do any harm, it this created thousands of files which clog up the
folder - recommend you copy all the LBXes to an empty folder and put the
two EXEs in there instead).

Then one of 3 options:
1) Just running LBXExtract within Windows (or running on the command line with
no arguments) will scan and find all LBX files in the current folder and
extract all files from all of them.  It will attempt to identify the type of
each file (e.g. graphics, sound, music, data) and convert to an appropriate
Windows file format (e.g. .BMP, .WAV, .MID) if it can.  It can convert the
graphics in TERRAIN.LBX (which are in a different format) as well as the
more common MoM graphics format.  Data files that are recognized as repeating
fixed length structures are given the extension .momdata.  Files of unknown
format are given extension .mom.  This takes a good while to run so be
patient.

2) To only extract from a single LBX file, run on the command line and
specify the name of the LBX file.  e.g. LBXExtract FIGURES1.LBX
This will still attempt to identify & convert file formats as above.

3) To only extract from a single LBX file with no attempt to identify the
formats of each subfile, use the /raw flag, e.g. LBXExtract FIGURES1.LBX /raw
This will extract out all files but leave them in their original format with
the .mom extension.

XMI2MID
-------
I didn't write this - credit goes to the original author.  The music files in
the original MoM are in .XMI format, this was the only converter I could find
to convert them to .MIDs.  LBXExtract will invoke XMI2MID as it extracts each
music file.

Known bugs/limitations
----------------------
1) Multi-frame animations where later frame have 'invisible' pixels that were
not invisible in previous frames come out black.  e.g. see the black areas in
the smoke coming out of the Armourers' Guild in later frames.

2) XMI2MID produces slightly corrupt MID files.  Although they'll play in
Windows Media Player, the headers are slightly incorrect and some other more
'fussy' players will refuse to play them.

3) There are two music files that XMI2MID is unable to convert and so these
are left as .xmi files (MUSIC.LBX subfiles 62 and 78).
