Page 1 of 1

Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Mon May 12, 2014 4:26 pm
by albert1905
Hi, I deleted my latest post since I found what was the problem.
There are unknown 2types of .TOTEXB files. Here is it. https://www.mediafire.com/?xl8gww1aflwu2vo

Since chrrox's DDS script does not containing
'if type == 0x85', so 19010.TOTEXB can not be converted correctly. Look at it.

<another type> Header - 19010.TOTEXB
Image

So, I think

Code: Select all

if type == 0x85
putVarChr MEMORY_FILE2 0x?? 0x?? byte
endif
should be added to bms script but I wonder what is the value of '??'.
However, the most important thing for me is the font file. It has a unique value.

<font file> Header - 19996.TOTEXB
Image

All of the other files at 0xC and 0x13 is 0, however font file is not 0 but 01 at 0xC and 10 at 0x13.
So 'get null short 1' should be changed for 19996.TOTEXB. What does 10 means..?
And How could I modified chrrox's DDS script..? In the chrrox's script, there are already 'if type == 0x86' but all of other files at 0x13 is 0.
So font file is different from other 0x86 types. I need some help. :)

I upload chrrox's bms script rather than post it. Because it is too long.

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Thu May 15, 2014 11:55 am
by albert1905
Can someone explain what is this file..?

https://www.mediafire.com/?909ravuqm8x8cmz

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Thu May 15, 2014 11:58 pm
by howfie
looks like font-related files.

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Fri May 16, 2014 2:54 am
by albert1905
howfie wrote:looks like font-related files.
Yeah. I agree with you. But it is hard to figure it out..
For all of the other types, there are no problems to convert it to DDS.
Image

But the 2 unknown types which I mentioned has broken image.
For example, 19996.TOTEXP Image.
Look at 19996.TOTEXB, the dimension of the image should be 512x512 and DTX1 because 02 at 0x15.

But if I watch it on width 1024 via TextureFinder v2.1, it seems different.
<WIDTH 1024, SHIFT 0>
Image

<WIDTH 1024, SHIFT 8>
Image

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Fri May 16, 2014 11:16 am
by howfie
good news:
encoding is actually DXT5, and the dimensions are indeed 512 x 512.
that one file contains sixteen pages of 512x512 DXT5 images.

bad news:
i think data is swizzled. neither morton nor XGUntileSurface. doesn't seem complex.
sorry, don't have time to spend to figure it out. it's something simple though, maybe perhaps as easy as
http://fgiesen.wordpress.com/2011/01/17 ... swizzling/

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Fri May 16, 2014 1:00 pm
by albert1905
howfie wrote:good news:
encoding is actually DXT5, and the dimensions are indeed 512 x 512.
that one file contains sixteen pages of 512x512 DXT5 images.

bad news:
i think data is swizzled. neither morton nor XGUntileSurface. doesn't seem complex.
sorry, don't have time to spend to figure it out. it's something simple though, maybe perhaps as easy as
http://fgiesen.wordpress.com/2011/01/17 ... swizzling/
Thanks. Now, I just waiting for someone who can afford it.

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Sat May 17, 2014 4:12 pm
by powoct
albert1905 wrote:
howfie wrote:good news:
encoding is actually DXT5, and the dimensions are indeed 512 x 512.
that one file contains sixteen pages of 512x512 DXT5 images.

bad news:
i think data is swizzled. neither morton nor XGUntileSurface. doesn't seem complex.
sorry, don't have time to spend to figure it out. it's something simple though, maybe perhaps as easy as
http://fgiesen.wordpress.com/2011/01/17 ... swizzling/
Thanks. Now, I just waiting for someone who can afford it.
DXT1

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Sat May 17, 2014 5:13 pm
by albert1905
powoct wrote:
albert1905 wrote:
howfie wrote:good news:
encoding is actually DXT5, and the dimensions are indeed 512 x 512.
that one file contains sixteen pages of 512x512 DXT5 images.

bad news:
i think data is swizzled. neither morton nor XGUntileSurface. doesn't seem complex.
sorry, don't have time to spend to figure it out. it's something simple though, maybe perhaps as easy as
http://fgiesen.wordpress.com/2011/01/17 ... swizzling/
Thanks. Now, I just waiting for someone who can afford it.
DXT1
Wow. Amazing. How did you do that?
Could you show me the way how to deswizzle and swizzle again..? Is it possible to edit the font file..?

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Sun May 18, 2014 6:47 am
by powoct
font edit test
Image
Image

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Sun May 18, 2014 10:17 am
by albert1905
powoct wrote:font edit test
Uhm.. Why did you just post a image..?

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Sun May 18, 2014 9:52 pm
by jrush
I have a small question. Does this mean we can now rip models from the game?

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Mon May 19, 2014 1:09 am
by albert1905
jrush wrote:I have a small question. Does this mean we can now rip models from the game?
No. It's not. The subject of this thread is not concerned with model. It's about 2D texture.
But anyway.. since powoct doesn't explain anything so niether one of us can understand it.

Re: Tales of Xillia - Unkown 2types of .TOTEXB.

Posted: Sun Sep 10, 2017 3:24 am
by Hideki
I know this thread is dead, but did anyone ever figure out how powoct was able to decode the page that he did from this texture?

powoct wrote:
DXT1

Image