Page 1 of 1

Please help Extract .pvrlzo textures

Posted: Sat Jun 04, 2011 8:45 am
by warwar
Please help Extract .pvrlzo textures . It's textures file format from a little Game name Snark Busters All Revved Up 2

i unapck game.pack but find most images are encryption

there are some samples.

can someone here help me out?

Re: Please help Extract .pvrlzo textures

Posted: Sat Jun 11, 2011 12:02 pm
by aluigi
script for quickbms:

Code: Select all

comtype lzo1x
get ZSIZE asize
#get SIZE long
savepos OFFSET
math ZSIZE -= OFFSET
math SIZE = ZSIZE
math SIZE *= 20 #enough?
get NAME basename
string NAME += ".pvr"
clog NAME OFFSET ZSIZE SIZE

Re: Please help Extract .pvrlzo textures

Posted: Sun Jun 12, 2011 11:13 am
by warwar
aluigi wrote:script for quickbms:

Code: Select all

comtype lzo1x
get ZSIZE asize
#get SIZE long
savepos OFFSET
math ZSIZE -= OFFSET
math SIZE = ZSIZE
math SIZE *= 20 #enough?
get NAME basename
string NAME += ".pvr"
clog NAME OFFSET ZSIZE SIZE

thank you very much!!!!

Re: Please help Extract .pvrlzo textures

Posted: Sat Jan 25, 2014 10:44 pm
by GMMan
Sorry for the extreme dig, but the file's actually laid out like this (per the demo Stargaze Framework SDK I found):

Code: Select all

struct pvrlzo {
char lzodata[];
uint signature = 0x7d620abd;
uint decompressed_length;
};
So the compressed data length is (length of file)-8, and the actual size is from the last 4 bytes. Signature in struct above should be reversed to little-endian when stored in file.