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

Sony Playstation 3 file ".CTXR"

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
unlimited32
beginner
Posts: 38
Joined: Sat Oct 16, 2010 1:27 pm
Has thanked: 1 time

Sony Playstation 3 file ".CTXR"

Post by unlimited32 »

The contents of this post was deleted because of possible forum rules violation.
You do not have the required permissions to view the files attached to this post.
ratanegra
n00b
Posts: 17
Joined: Wed May 23, 2012 10:12 am
Has thanked: 9 times
Been thanked: 7 times

Re: Sony Playstation 3 file ".CTXR"

Post by ratanegra »

The texture is a gtf format, but with the blocks "changed" ......
You can convert a .ctrx texture to dds, but you must edit the header (64b)

Example of japan_studio:

1º original block (16 bytes):
0200010100384000 0000000100000000
1º edited block :
020101FF00384000 0000000100000000

2º original block (16 bytes):
0000008000384000 000000FFD2D2D2FF
2º edited block :
0000008000384000 BE0102000000A9E4

3º original block (16 bytes):
00000000BE010200 0000A9E4050002D0
3º edited block :
050002D000010000 0000000000000000

3º original block (16 bytes):
0001000000001400 00000000FFFF0000
4º edited block :
0000000000000000 0000000000000000

The last step is convert a ctxr file with gtf2dds.exe

Image

This method is extensible for textures of Metal Gear Solid Snake Eater (HD Collect).
Luck!
JayK
mega-veteran
mega-veteran
Posts: 172
Joined: Fri Jun 01, 2012 10:08 am
Has thanked: 35 times
Been thanked: 121 times

Re: Sony Playstation 3 file ".CTXR"

Post by JayK »

Hello, I'm sorry to bother you but I have one question, how do we know what to change the values of the ctxr files header to? If I had a ctxr file with different values in the header what is the process for changing them? I looked for a pattern in the file you changed to see if I could find a similar way to do it for a different ctxr file but I'm not having any luck. Sorry, I know it's a really beginner question but I'd just like to learn :( thanks!

EDIT: Nevermind, I figured it out eventually. I'm so stupid sometimes :p
JayK
mega-veteran
mega-veteran
Posts: 172
Joined: Fri Jun 01, 2012 10:08 am
Has thanked: 35 times
Been thanked: 121 times

Re: Sony Playstation 3 file ".CTXR"

Post by JayK »

So I made a simple bms script to convert these ctxr files to ones that can be converted using gtf2dds just to save time

Code: Select all

goto 0x24
get VAL long
get VAL2 long
get VAL3 long
get VAL4 long
goto 0x18
put VAL long
put VAL2 long
put VAL3 long
put VAL4 long
and just run quickbms using the command line;

quickbms -w -F "*.ctxr" ctxrconv.txt c:\ctxr

etc
ratanegra
n00b
Posts: 17
Joined: Wed May 23, 2012 10:12 am
Has thanked: 9 times
Been thanked: 7 times

Re: Sony Playstation 3 file ".CTXR"

Post by ratanegra »

good job bro. :wink:
User avatar
lionheartuk
double-veteran
double-veteran
Posts: 749
Joined: Tue May 16, 2006 10:55 pm
Location: Everywhere
Has thanked: 34 times
Been thanked: 42 times

Re: Sony Playstation 3 file ".CTXR"

Post by lionheartuk »

rman2 wrote:So I made a simple bms script to convert these ctxr files to ones that can be converted using gtf2dds just to save time

Code: Select all

goto 0x24
get VAL long
get VAL2 long
get VAL3 long
get VAL4 long
goto 0x18
put VAL long
put VAL2 long
put VAL3 long
put VAL4 long
and just run quickbms using the command line;

quickbms -w -F "*.ctxr" ctxrconv.txt c:\ctxr

etc
Hi

I know this is a pretty old thread, but I'm a little confused, I'm able to get a folder called ctxrconv.txt to appear, but its blank, and then when I run the BMS script (from reimport, which seems to have -w enabled) I'm told that 0 files have been imported in 0 seconds.

If someone could break this down a tiny bit I'd really appreciate it, trying to understand this but not getting very far.
ratanegra
n00b
Posts: 17
Joined: Wed May 23, 2012 10:12 am
Has thanked: 9 times
Been thanked: 7 times

Re: Sony Playstation 3 file ".CTXR"

Post by ratanegra »

If you get this, do not worry, you have the CTXR files prepared to convert them to DDS with GTF2DDS.EXE.

Code: Select all

C:\quickbms>quickbms -w -F "*.ctxr" ctxrconv.txt c:\quickbms\ctxr

QuickBMS generic files extractor and reimporter 0.5.9b
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org

- start the scanning of the input folder: c:\quickbms\ctxr
- open input file c:\quickbms\ctxr\.\snake_tales_ltitlea_alp_ovl.bmp.ctxr
- open script ctxrconv.txt

  offset   filesize   filename
------------------------------

- 0 files found in 0 seconds
- open input file c:\quickbms\ctxr\.\snake_tales_ltitleb_alp_ovl.bmp.ctxr
- open script ctxrconv.txt

C:\quickbms>
cns20
ultra-n00b
Posts: 1
Joined: Wed Jun 10, 2015 3:21 pm

Re: Sony Playstation 3 file ".CTXR"

Post by cns20 »

Guess I must be doing something wrong. All that comes up is this:

Code: Select all

C:\Users\username>cd C:\Users\username\Downloads\quickbms

C:\Users\username\Downloads\quickbms>quickbms -w -F "*.ctxr" ctxrconv.txt C:\Users\username\Downloads\quickbms

QuickBMS generic files extractor and reimporter 0.6.4
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org
        (May 29 2015 - 16:04:52)

                  http://quickbms.aluigi.org
               http://twitter.com/luigi_auriemma
                       http://zenhax.com

- filter string: "filename.ctxr"
  filename.ctxr

-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode      c0000005 access violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   00fe1f57
                        00FB0000 + 00031f57 quickbms.exe
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    00000000

*EH* Stack Trace:
0xfe1f57 : C:\Users\username\Downloads\quickbms\quickbms.exe : [unknown file]
0x148e22a : C:\Users\username\Downloads\quickbms\quickbms.exe : tripledes_LTX__mcrypt
_algorithm_version
0xfb10fd : C:\Users\username\Downloads\quickbms\quickbms.exe : [unknown file]
0x77d1ad1f : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlInitializeExceptionChain
0x77d1acea : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlInitializeExceptionChain

C:\Users\username\Downloads\quickbms>
Solutions?
Post Reply