I will work on a model converter with bones next.
Run this on the file PS3_TEXTURES.FPD
Code: Select all
set i 1
endian big
for i
findloc start string \x02\x01\x00\xFF
goto start
get null long
get size long
math size + 0x40
set name i
string name + .tex
log name start size
math start + size
goto start
next i
now this next script converts those to dds
Code: Select all
set MEMORY_FILE binary "\x44\x44\x53\x20\x7C\x00\x00\x00\x07\x10\x0A\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x05\x00\x00\x00\x44\x58\x54\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x10\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
endian big
get name basename
string name + .dds
get size asize
set size2 size
math size2 - 0x80
goto 0x20
get width short
get height short
goto 0x18
get type byte
endian little
if type == 0x86
putVarChr MEMORY_FILE 0x57 0x31 byte
endif
if type == 0x87
putVarChr MEMORY_FILE 0x57 0x33 byte
endif
if type == 0x88
putVarChr MEMORY_FILE 0x57 0x35 byte
endif
putVarChr MEMORY_FILE 0xC height short
putVarChr MEMORY_FILE 0x10 width short
append
log MEMORY_FILE 0x80 size2
append
log name 0 size MEMORY_FILE