Important information: this site is currently scheduled to go offline indefinitely by end of the year.

TMX file format help

Get your graphics formats figures out here! Got details for others? Post here!
darkweb
ultra-n00b
Posts: 5
Joined: Mon Nov 12, 2007 5:11 pm

TMX file format help

Post 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!
You do not have the required permissions to view the files attached to this post.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: TMX file format help

Post by Darkfox »

An Atlus format? Mind telling where this comes from?
darkweb
ultra-n00b
Posts: 5
Joined: Mon Nov 12, 2007 5:11 pm

Re: TMX file format help

Post by darkweb »

It's actually the art gallery picture format for princess crown but can also be extended to the sprites and animations.
darkweb
ultra-n00b
Posts: 5
Joined: Mon Nov 12, 2007 5:11 pm

Re: TMX file format help

Post 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?
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: TMX file format help

Post 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.
You do not have the required permissions to view the files attached to this post.
Crypton
advanced
Posts: 60
Joined: Sat Aug 09, 2008 11:19 am
Has thanked: 2 times
Been thanked: 21 times

Re: TMX file format help

Post by Crypton »

Can anybody upload more files ??? I need more files to test...
(I found (probably) clue how to convert it to bmp ;)
User avatar
xrevenge
veteran
Posts: 119
Joined: Thu Jun 05, 2008 3:46 pm
Been thanked: 9 times

Re: TMX file format help

Post by xrevenge »

The contents of this post was deleted because of possible forum rules violation.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: TMX file format help

Post by Darkfox »

Awesome, hope you luck on this! :)

Also, I think 251 examples is enough for anyone. XD
Crypton
advanced
Posts: 60
Joined: Sat Aug 09, 2008 11:19 am
Has thanked: 2 times
Been thanked: 21 times

Re: TMX file format help

Post 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 ;)
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: TMX file format help

Post 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!
Crypton
advanced
Posts: 60
Joined: Sat Aug 09, 2008 11:19 am
Has thanked: 2 times
Been thanked: 21 times

Re: TMX file format help

Post 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...
User avatar
xrevenge
veteran
Posts: 119
Joined: Thu Jun 05, 2008 3:46 pm
Been thanked: 9 times

Re: TMX file format help

Post by xrevenge »

i don't know about corruption or not but tell me if you need anything else
Crypton
advanced
Posts: 60
Joined: Sat Aug 09, 2008 11:19 am
Has thanked: 2 times
Been thanked: 21 times

Re: TMX file format help

Post 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...
Crypton
advanced
Posts: 60
Joined: Sat Aug 09, 2008 11:19 am
Has thanked: 2 times
Been thanked: 21 times

Re: TMX file format help

Post 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....
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: TMX file format help

Post by Darkfox »

Ah yes! That looks far more accurate, possibly right on the nose there! :)
Post Reply