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

Please help Extract .pvrlzo textures

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
warwar
advanced
Posts: 41
Joined: Sat Jun 04, 2011 8:36 am

Please help Extract .pvrlzo textures

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: Please help Extract .pvrlzo textures

Post 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
warwar
advanced
Posts: 41
Joined: Sat Jun 04, 2011 8:36 am

Re: Please help Extract .pvrlzo textures

Post 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!!!!
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 56 times

Re: Please help Extract .pvrlzo textures

Post 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.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC
Post Reply