CMap (v1.01) README:

1) COMPOSING TGA FILE
   Place map_c.tga and map_c.tga_table into a folder where
   CMap.jar is.
   Run:
        compose.bat
   This will create a MWmap_c.tga file which is a full ColorMap
   file obtained by 'decrypting' map_c.tga and map_c.tga_table.

2) DISECTING TGA FILE
   Place MWmap_c.tga into a folder where
   CMap.jar is.
   Run:
        disect.bat
   This will create newMWmap_c.tga and MWmap_c.tga_table files
   which are in format which IL2 can understand. MWmap_c.tga can
   be any image you modified or created from scratch. MWmap_c.tga
   must have dimensions which are multiple of 32x32 (for example
   1536x1312) and have color depth of 1 byte (i.e. grayscale image).

3) AVERAGE ON 32x32 GRID
   Place Mymap_c.tga into a folder where
   CMap.jar is.
   Run:
        transform.bat
   This will create MWmap_c.tga which has average pixel value
   on 32x32 grid. Resulting MWmap_c.tga can then be disected
   (see DISECTING TGA FILE). This might solve the "tearing
   texture problem".
4) LIMITATIONS
   All file names are OBLIGATORY! I don't feel like changing this.
   Not all errors are reported properly.
   Maximum memory size is 512MB (command -Xmx512M). You can try to
   increase this value in *.bat files if you encounter
        Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
   error.
   BTW, this tools is not 'memory friendly' so it could be improved, but,
   as you can guess, I don't feel like doing so. :)

5) NOTE
   This is not a complete map mod tool and it never will be.
   Change other files with other tools.

6) LEGAL
   I'm not responsible for any damage this tool can cause to
   anyone or anything or anywhere or any...

-------------------------------------

BUGFIXES AND CHANGES:

03.Dec.2007.
   Allocated 512MB maximum heap size in two *.bat files.
10.Jan.2008.
   Added transform function.