Anyway. I'll just try to describe what I've found. Lemme know if it sounds familiar. Let me know if there is some database of image file formats that I can brouse. Thanks.
Here's a summary:
Code: Select all
[Some kind of file name and header]
[1 or 8 Color Palettes, each color is a Short , 16 Colors to a Palette]
[Some information on size and deminsions]
[Pixels represented by 4bits each, or 1 hex value each, referencing one of the 16 Colors from the palette. Pixels go left to right and up to down]
The last short before the pixels gives the height.
The short before that gives the width BUT NOT DIRECTLY. ie, hex 4000 means 256w and hex 2000 means 128 width. Some other data imediately after the palette appears to indicate something about the size. Lemme put up some examples.
Here is an example of a texture file, with the color palettes and pixels removed. Note the 2 areas remaining are the part that are still confusing to me.
Code: Select all
T M (Body Texture 256x256)
544D00000000000010000000080000000C0100000000F00010000800
[Main Color Palette]
[7 other Color Palettes each lighter than the last]
0C8000004001000040000001
[Pixels]
Code: Select all
544D00000000000010000000080000000C0100000000FB0110000800 Green Hexs 128x160
544D00000000000010000000080000000C0100000000FF0110000800 Green Rects 256x64
544D00000000000010000000080000000C0100000000F80110000800 Long Bricky 256x32
544D00000000000010000000080000000C0100000000F10110000800 Water 128x128
544D00000000000010000000080000002C0000000000F00110000100 Gameover 256x128 (only 1 palette)
544D00000000000010000000080000000C0100000000F40010000800 Reaver 256x256
544D00000000000010000000080000000C0100008000F90010000800 Face 256x256
544D00000000000010000000080000000C0100000000F00010000800 Body 256x256
544D00000000000010000000080000000C0100000000F70010000800 Bird 256x128
Code: Select all
1 2 3 4 5 6
0C280000A00200012000A000 Green Hex 128x160
0C2000004003400140004000 Green Rects 256x64
0C1000004003600140002000 Long Bricky 256x32
0C8000000002000040000001 Reaver 256x256
0C2000008001000120008000 Water 128x128
0C4000008002000040008000 Bird 256x128
0C4000004001000140008000 Gameover 256x128 (only 1 palette)
0C8000004001000040000001 Body 256x256
0C800000C003000040000001 Face 256x256
K. So if you recognize any of this, or have an idea of what is going on, please let me know. Or atleast refer me to where I can look up descriptions of different image formats so that I can try to find something simular.
Thanks