Hi
Mr. Kanttori's post about the alpha channel/color related post inspired me and I took my change to made a batch tool for the 'your-texture'_a.txt file creation.
This tool is asking first a user input for the alpha channel color RGB values. The pink (255, 0, 255) is default, but user can set any other value, if wanted.
In next step, the tool is checking through the textures in 'workfolder' to find a color value match in pallet and accordingly creating the 'your-texture'_a.txt with proper index value in it.
This tool is also checking, if texture has correct mode and given RGB value is present.
The 'Installation'
Just unzip the file anywhere you want.
Usage
1. copy/paste your bitmap files to the Color2Alpha\workfolder folder and then start the Color2Alpha.exe.
2.Give a specific alpha channel/color RGB values or just Ok to use default values.
3.View the result and proceed with corrective action, if needed.
A 4.6M .zip file
http://fdm4bge.1g.fi/Files/10001/AH/python/Color2Alpha.zipThis tool is made with:
python 2.6,
http://www.python.org/Easygui 0.95,
http://easygui.sourceforge.net/ Python Imaging Library (PIL) PIL ver 1.1.7,
http://www.pythonware.com/products/pil/ And .exe file compilation with py2exe,
http://www.py2exe.org/ The python source code file, Color2Alpha.py, is included to the .zip file.
The workfolder contains a example file for the testing.
Your feedback is highly appreciate.
BR
Ex-Jazz / Xjazz