Page 1 of 5

TMX file format help

Posted: Sun Feb 03, 2008 9:06 pm
by darkweb
Hi,
So I'm attempting to rip images from a game. The file format is apparently a TMX format but I can't seem to find any info on it. From what I can tell, the palette starts at 0x40 and consists of 256 colors at RGBA8888 possibly? The data of the image starts at 0x440 and appears to index the color palatte.
Using this format I get the image found in atluspalette.jpg. This has some of the right colors but still doesn't look correct.
For fun I used the index values as the RGB values and came up with atlusgreyscale.jpg which surprisingly looks good so I think it might be a combination of the palette and the index value?

A breakdown of the attached file:
atlus.jpg - this is how it should look
atluspalette.jpg - what I get with the indexed color palette
atlusgreyscale.jpg - what I get with the indices as the rgb values
atlus.tmx - the original file

Any help would be appreciated!

Re: TMX file format help

Posted: Mon Feb 04, 2008 3:32 am
by Darkfox
An Atlus format? Mind telling where this comes from?

Re: TMX file format help

Posted: Mon Feb 04, 2008 8:28 pm
by darkweb
It's actually the art gallery picture format for princess crown but can also be extended to the sprites and animations.

Re: TMX file format help

Posted: Wed Feb 20, 2008 7:50 pm
by darkweb
I still can't seem to get this working right... Does anyone have any ideas at all about what seems to be wrong?

Re: TMX file format help

Posted: Fri Aug 08, 2008 8:26 pm
by Darkfox
Instead of creating a new topic about the same thing I'll contribute to this one. Here is another TMX file, this one is from Persona 3 FES. Hopefully somebody will be able to crack it.

Re: TMX file format help

Posted: Sat Aug 09, 2008 8:09 pm
by Crypton
Can anybody upload more files ??? I need more files to test...
(I found (probably) clue how to convert it to bmp ;)

Re: TMX file format help

Posted: Sat Aug 09, 2008 10:42 pm
by xrevenge
The contents of this post was deleted because of possible forum rules violation.

Re: TMX file format help

Posted: Sat Aug 09, 2008 11:56 pm
by Darkfox
Awesome, hope you luck on this! :)

Also, I think 251 examples is enough for anyone. XD

Re: TMX file format help

Posted: Sun Aug 10, 2008 7:48 pm
by Crypton
darkweb:
I think that "ATLUS.TMX" is corrupted... it has a wrong dimension + its BGRA + upside down ;)
There is converted image:
http://img98.imageshack.us/img98/673/atlusby0.png

What I found to be really interesting is that indexes to palette has some color information of original image,in images posted by xrevenge there is no similar image using this technique:
http://img98.imageshack.us/img98/577/at ... ttefk1.png
So to get correct RGB value you should: add index value to every channel except A,or "xor" it,or "and" it,or "or" it... I'll look at that later but I need more similar files... like (ATLUS.TMX)


Darkfox: Your image seems to be converted correctly too...
http://img398.imageshack.us/img398/9930/pst001fu0.png

xrevenge:
Your images seems to be fine when converted,no dimension error,colors seems to be in correct order,I dont know if there is any color loss... because I dont have any original image or screenshot from game...
http://img218.imageshack.us/img218/6456/ibust0aavu2.png
http://img398.imageshack.us/img398/3107/pst0c3tg4.png
http://img218.imageshack.us/img218/9373/pst014yr8.png

Let me know if you think its converted correctly ;)

Re: TMX file format help

Posted: Sun Aug 10, 2008 8:49 pm
by Darkfox
The images are correct but the colors are a bit off. Perhaps if I could find an example it'd help. But so far so good!

Re: TMX file format help

Posted: Sun Aug 10, 2008 9:08 pm
by Crypton
Darkfox wrote:The images are correct but the colors are a bit off. Perhaps if I could find an example it'd help. But so far so good!
Can you tell me how much is original image in game more colorful ? because if image is "palettized" then color depth is very limited...

Re: TMX file format help

Posted: Sun Aug 10, 2008 10:51 pm
by xrevenge
i don't know about corruption or not but tell me if you need anything else

Re: TMX file format help

Posted: Sun Aug 10, 2008 11:34 pm
by Crypton
xrevenge wrote:i don't know about corruption or not but tell me if you need anything else
I tried to convert next images again,but with swapped palette... now it should be correct:
http://img230.imageshack.us/img230/5514/2pst0c3ta1.png
http://img230.imageshack.us/img230/6824/2pst014vt7.png
Tell me if colors are not correct ;) but I think in this case its fine...

Re: TMX file format help

Posted: Mon Aug 11, 2008 12:10 am
by Crypton
darkweb wrote:Hi,
So I'm attempting to rip images from a game. The file format is apparently a TMX format but I can't seem to find any info on it. From what I can tell, the palette starts at 0x40 and consists of 256 colors at RGBA8888 possibly? The data of the image starts at 0x440 and appears to index the color palatte.
Using this format I get the image found in atluspalette.jpg. This has some of the right colors but still doesn't look correct.
For fun I used the index values as the RGB values and came up with atlusgreyscale.jpg which surprisingly looks good so I think it might be a combination of the palette and the index value?

A breakdown of the attached file:
atlus.jpg - this is how it should look
atluspalette.jpg - what I get with the indexed color palette
atlusgreyscale.jpg - what I get with the indices as the rgb values
atlus.tmx - the original file

Any help would be appreciated!

I need more files to test than only one.... every time try to upload more files because of testing ;)

In your test file,I found out that 2 bit color information is saved in palette indexes (bit 4 & 5),probably 1 bit for R and 1 bit for B channel,A channel is correct and G channel seems to be untouched... It may be also some kind of "watermark" or lossy compression...
I tried to add these bits to RB channels,but not good results were given,I also tried to set that bits as 0 or 1,swap it but it was not worky....

Re: TMX file format help

Posted: Mon Aug 11, 2008 8:59 am
by Darkfox
Ah yes! That looks far more accurate, possibly right on the nose there! :)