jester - 2009-03-19

I am member of a group of crazy (french) boys which try to keep alive some old computer. I searched for an easy and convenient way to make sprites and tiles easily, and a solution to generate well formed binary file of these sprite data.
And I find Tile Studio that seems to be a very convenient tools for this purpose. However i have some problems and i am sure someone has the solution:
I need a 8 colors palette, each color component with 2bits, a color is coded with 3bits (black 000, red 001, green 010, yellow 0 11, blue, 100, magenta 101, cyan 110 and white 111).

1) It's easy to create a 8 colors palette with the palette generator. But tile editor considers the magenta color as the transparency one. And I have only 7 colors to draw a tile : I have yet very few colors with 8 ones. I am searching a way to draw without this useless (in my case) transparency color.

2) I want to generate a binary file for tile with tiles data organized in a specific format :
Pixels are organized by groups of 8pixels. Each group is coded by 3bytes. The first byte is used to code the blue component of the 8pixels (one bit for each pixel), the second byte is used to code the green component of 8 pixels and the third byte is used to code the red component for the 8 pixels.
The next group of 3bytes contains data for the next 8 pixels, etc.
Example : 8pixels => RRRRBBWW
is coded
byte 1: 00001111
byte 2: 00000011
byte 3: 11110011
... and so on for the next pixels.

How to generate the binary file with the scripting language of Tile Studio ? TSD Examples is not sufficient to let me write the right script.

Thanks a lot for your answers...