Log in

View Full Version : New utility - LBM colour palatte Import/Extract



Wellington
01-19-2003, 17:58
I've now uploaded the utility "LBMPaletteInOut" to "The Orgs" test dowenload area.

Its called "TEST_LBMPaletteInOut.zip" and is 26k.

Although it's been designed for LukMapMaker, it it's 'open' in that you can you can use it for anything. There are no LMM dependencies.

It's just a simple VB Script utility that allows -
- extracting binary palettes from LMBs into a text file (a 'text palette&#39http://www.totalwar.org/forum/non-cgi/emoticons/wink.gif
- importing the 'text palette' (in a text file) into an LBM
Source code is provided.

PanthaPower
01-20-2003, 10:54
Thanks

Works like a charm

Wellington
01-20-2003, 16:16
I might extend this a little (after I've released LMM version 2) in order to -

- Add a running, never deleted, text log that serves as a reminder to what palettes/files you've changed - and when

- Add some reference info (eg: the difference between the colours defined in a 'text palette' and an LBM file palette

- Maybe add an option to generate colour '.bmp's pertaining to a 'text palette' and/or an LBM file palette.

This would probably help in tracking any mistakes when swopping or changing palettes.

IMPORTANT: One other point I did'nt put in the readme. Not all LBM files have a palette There are several different types of LBM files with different structures. Two such types used in MTW are -

a) an ILBM type (Inter-Leaved Bit Map)
b) a PBM type (Palette Bit Map)

LBMPaletteInOut does't process type a) as they DON'T have a palette (this type is used for small LBMs, icons, in MTW)

LBMPaletteInOut will process type b) as they DO have a palette (this type is used in MTW for big LBM's, LukMaps, in MTW)

Just in case you wonderered why

N

Wellington
01-24-2003, 15:54
*************** IMPORTANT - BUG REPORT ***************


For anyone who downloaded this utility be aware there is a bug in the Extract facility http://www.totalwar.org/forum/non-cgi/emoticons/frown.gif

Please download the corrected version from the TEst download area -

TEST_LBMPaletteInOut_Version2.zip

This versions works properly - I promise
Welly