Recognize this Texture File Format? Megaman Legends
Posted: Sat Jul 28, 2007 6:44 pm
Alright. I've fallen back into MegamanLegends. The program Yu_Ri can do near perfect extractions of all the textures in this game (indicating to me that the file type might not be so strange).
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:
So basically, thanks to Yu_Ri, I could quickly determine what is the color palettes and what are the pixels. But the other info is kind of confusing.
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.
Here are several "headers" that I have taking from various files to compair them. (the names next to each header are just descriptions I've made for myself. There are no file names that I know of.)
More interesting is the data between the color palettes and the pixels. Here are some examples:
You can see that the first portion of each of these (after the consistant 0C) indicates something of the size. The last two shorts indicate deminision. As all with width of 256 have 4000 as the second to last short. All textures with height of 256 have the short 0001.
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
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