-
Tools
-
-
Entries
-
 LBMPaletteInOut.zip
LBMPaletteInOut is a small utility for importing or extracting
palettes (a table of 256 3-byte RGB colours) by either -
- Extracting the palette from a valid LBM file into a 'text palette'
- Importing a 'text palette' into a valid LBM file
It does this by retaining 'text palettes' that represent the actual
hex palette. These 'text palettes' follow the same convention as
the text palette in LukMapMaker.
After installing this zip into a folder you should have 4 files -
- LBMPaletteInOut.vbs
- BinaryTable.bin
- wshLWForm.ocx
- LBMPalette_Example.txt
You must install and register the OCX, so ...
Installation
------------
1) Move the OCX "wshLWForm.ocx" into your "C:\WINDOWS\SYSTEM32" folder
2) Register this OCX via the Start/Run command. Enter the following -
"Regsvr32 wshLWForm.ocx.ocx"
It should now be registered on your PC.
Using LBMPaletteInOut
---------------------
Every execution allows 1 operation only, either an Import or an Extract.
LBMPaletteInOut requires ALL files, either LBM's or text pallettes, to be
present in this root folder.
Any LBM files that you require to either Import or Extract the palette from
will require moving to this root folder 1st. If you are using the Extract
operation then after running LBMPaletteInOut you will have to copy the LBM
file back into it's original location.
The format of the text palettes is simple (and follows the LukMapMaker format
for it's own "LBMPalette.txt"). You can edit, create, amend these text palettes
as you wish, then import them into the appropiate LBM.
File conventions and usage
--------------------------
LBMPalleteInOut recognises an LBM file as being '***.blm' where *** can be
anything.
LBMPalleteInOut recognises a 'text palette' as being a text file named
'LBMPalette***.txt' where *** can be anything.
When Extracting a palette from an LBM it will create a text palette of the
format 'LBMPalette_xxx.txt' where 'xxx' is the name of the LBM. For example,
extracting the palette from the file 'LukMap2.lbm' will create a text palette
named 'LBMPalette_LukMap2.txt'.
And that's about it. I've provided a text palette example. You will have to copy
an LBM file from your MTW directory into order to test LBMPalleteInOut. If you
have an hex editor it should be easy to amend/create a text palette, Import it
into an LBM and then check the results.
Example of swopping pallettes
-----------------------------
One final example. If you wish to swop palettes between 2 LBM files, lets call
them xxx.lbm and yyy.lbm you should -
1) copy both LBMs to the LBMPaletteInOut folder
2) run LBMPaletteInOut, Extracting the palette from xxx.lbm, and thus creating
the (text palette) file LBMPalette_xxx.txt
3) run LBMPaletteInOut, Extracting the palette from yyy.lbm, and thus creating
the (text palette) file LBMPalette_yyy.txt
4) run LBMPaletteInOut, Importing LBMPalette_xxx.txt to yyy.lbm
5) run LBMPaletteInOut, Importing LBMPalette_yyy.txt to xxx.lbm
6) copy/move both lbms back to their original folders
Obviously, if you wish to change the palettes you can amend the 256 entries in
text palette files after step 3) - before the Import steps.
Note: I recommend you don't keep too many text palettes or LBM files in this folder
as it may be difficult to see the wood from the trees.
Have fun
Wellington
Older version
LBMPaletteInOut.zip
|
Category
Tools
|
|
|
|