namida's MAIN.DAT tool V11.1
----------------------------
V11.1 changes:
  > fixes a crash during extraction for NeoLemmix V1.37n+ MAIN.DAT files

V11.0 changes:
  > adds support for V1.37n+ toolbar graphics

V10.0 changes:
  > adds support for Talisman graphics

V9.0 changes:
  > adds support for creating NeoLemmix V1.29n+ MAIN.DAT files
  > adds support for using Magenta instead of Black as transparent color on extracted images
  > adds support for "override" images
  > adds an "extract then rebuild" mode
  > adds a "convert NeoLemmix V1.28n- to V1.29n+" mode

V8.0 changes:
  > adds the "skills_inf_01.bmp" and "highlight_01.bmp" for NeoLemmix MAIN.DAT files; the former is
    used as of V1.25n while the latter is planned for future usage
  > removes support for building/including a SYSTEM.DAT section as this is no longer part of MAIN.DAT,
    and can be created by the NeoLemmix Editor
  > reorganizes the format selection screen, taking into account that Traditional Flexi now supports
    up to 15 ranks as of V24

1) Put a MAIN.DAT or the source bitmaps to build one into this folder
2) Run the program
3) Press [1] to extract or [2] to rebuild, press [3] here if you need the Xmas palette
   (You can press [4] here to save BMPs of the palettes instead of extracting/building a MAIN.DAT)
4) Choose the MAIN.DAT format to use
5) Let the program do its magic.

The program requires very specific filenames. Rather than list them, it's easier if you just extract
it and mess around. The NeoLemmix V1.29n Orig MAIN.DAT is included, so that you can obtain the images
easily; this may also be useful in upgrading existing MAIN.DATs to NeoLemmix format. When building a
MAIN.DAT for NeoLemmix verisons, pay careful attention to the skill bar graphic, as results will be
strange if existing ones are used directly; most other images can be used as-is (but be sure to use
magenta instead of black as the transparent color if you're going to be making a MAIN.DAT for V1.29n
or higher!).

If you are having problems with this app, you're welcome to contact me about it though I make no
guarantees. And keep in mind, this app does NOT check that input images (or MAIN.DATs) are valid,
and will likely either crash or output garbage if you feed it invalid files.

When creating a NeoLemmix V1.29n+ MAIN.DAT, be sure to use Magenta as the transparent color when
extracting older MAIN.DAT files. If you are modifying the images, use magenta (255, 0, 255) for
any pixels you wish to be transparent. Any other shade of "death magenta"; ie:
  R: 252 to 255
  G: 0 to 3
  B: 252 to 255
Is not treated as transparent, but in certain images in-game may be replaced with a color specific
to the graphic set. All other colors will be treated as-is; NeoLemmix V1.29n+ removes the palette
restrictions found in traditional Lemmix and earlier versions of NeoLemmix.

Note that some graphics will also still treat 0, 0, 0 as transparent; it is recommended that if you
want a non-transparent black, use a color close to this (such as 0, 0, 4). HOWEVER, please do not
*rely* on this treating 0, 0, 0 as transparent, as it most likely will NOT remain that way forever.
For pixels you want as transparent, please use 255, 0, 255. If a future update suddenly makes the
intended-as-transparent pixels show up as black, and you've used 0, 0, 0 as your transparent color,
you have no one to blame but yourself.

If you name a file o_(usual filename) then LemMain will choose this image instead of the normal one.
It will never overwrite this image, so this may be useful if you're wanting to overwrite certain
images on a large scale. These are used even when using the extract then rebuild mode, or when
doing the V1.28n > V1.29n conversion (in fact, this is the whole point of the extract then rebuild
mode; mainly to make it quicker when mass-changing a single image in multiple MAIN.DAT files).

Note that when converting older MAIN.DATs to NeoLemmix V1.29n+ MAIN.DATs, you MUST select the Xmas
or Regular palette as appropriate before the conversion! You don't need to select this option
when directly working with V1.29n+ MAIN.DATs, as they don't use palettes anyway.