Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

Hello everyone!
I have tried to extract the game files from the XBOX 360 version of "Bejeweled Blitz LIVE".
I have used wxPirs to unpack the files from the archive and then got three .pak files and a .xpr file.
Then I tried to unpack the .pak files as I would open a normal PopCap's .pak file (7x7m, also seen in PvZ, Bejeweled 3 and others) with no success.
So I was wondering if any of you guys could unpack those files https://drive.google.com/open?id=1IVUT1Lz8_fM5R97_leM-FtKxZAY3kCZw . I can upload to other sites if you are not familiar with Drive.
Thank you.
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

Update : I forgot to decompress the archive *facepalms*. I decompressed it now and got an archive that contains legit data (in hex I can see content) but it has a magic I didn't see before - ÀJÀº. So, can anyone find the scipt for this file https://drive.google.com/open?id=1VatuT ... yU1rPKzyO4 ? Thank you.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by aluigi »

BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

aluigi wrote:http://aluigi.org/bms/specialbit.bms

Worked fine, although a lot of sound files can't be opened. Thank you sooo much!
By the way, the blitz.xpr uses a different compression method and has magic XPR2. Sample https://drive.google.com/open?id=1dIuQo ... bCtHLwJmo3 . I tried usual xpr scripts, they didn't work.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by aluigi »

xpr are ever a problem
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

Actually this archive contains the files I need... I tried all xpr scipts I found here and none of them worked. Even Bejeweled 2 for XBOX uses a different storage method.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by Acewell »

BoggY wrote:Worked fine, although a lot of sound files can't be opened.

the offsets look wrong to me, the file headers contain tailings from the previous file, try this script: :)

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get FOLDER basename
idstring "\xc0\x4a\xc0\xba"
get ZERO long
for i
    get FLAG byte
    if FLAG == 0x80
        break
    endif
    get NAME_SZ byte
    getdstring NAME NAME_SZ
    get SIZE long
    putarray 1 i NAME
    putarray 2 i SIZE
    get UNK longlong
next i
math FILES = i
for j = 0 < FILES
    get SKIP_BYTES byte
    math SKIP_BYTES + 1
    goto SKIP_BYTES 0 seek_cur
    savepos OFFSET
    getarray NAME 1 j
    getarray SIZE 2 j
    string NAME p= "%s\%s" FOLDER NAME
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next j
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

Acewell wrote:
BoggY wrote:Worked fine, although a lot of sound files can't be opened.

the offsets look wrong to me, the file headers contain tailings from the previous file, try this script: :)

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get FOLDER basename
idstring "\xc0\x4a\xc0\xba"
get ZERO long
for i
    get FLAG byte
    if FLAG == 0x80
        break
    endif
    get NAME_SZ byte
    getdstring NAME NAME_SZ
    get SIZE long
    putarray 1 i NAME
    putarray 2 i SIZE
    get UNK longlong
next i
math FILES = i
for j = 0 < FILES
    get SKIP_BYTES byte
    math SKIP_BYTES + 1
    goto SKIP_BYTES 0 seek_cur
    savepos OFFSET
    getarray NAME 1 j
    getarray SIZE 2 j
    string NAME p= "%s\%s" FOLDER NAME
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next j

This one worked flawlessly. Thanks a lot for the quick answers!
I still can't seem to open the .xpr archive though. I have tried to make the script myself, but I am still new to this so, y'know... And that one is the most important to me...
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by Acewell »

BoggY wrote:I still can't seem to open the .xpr archive though. I have tried to make the script myself, but I am still new to this so, y'know... And that one is the most important to me...

you could extract the contents with Quickbms but the image data would still be tiled,
so i am working on a Noesis python script to open the xpr sample. :)
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

Acewell wrote:you could extract the contents with Quickbms but the image data would still be tiled,
so i am working on a Noesis python script to open the xpr sample. :)

Really nice to hear, thanks a lot! Seems like it's hard since it takes this long, but take your time. Thank you so much!
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by Acewell »

this is the best i can do, i hope you find what you need and it serves you well. :)
tex_BejeweledBlitzLive_X360_xpr.zip
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

Acewell wrote:this is the best i can do, i hope you find what you need and it serves you well. :)
tex_BejeweledBlitzLive_X360_xpr.zip

Woah, thanks a lot! I really appreciate your effort! I assume those one pixel images are badly extracted or something... If this helps, in the attached file is a list of all images in their folders (it also includes sounds and other stuff, but those are all correctly unpacked).
EDIT : I found what I needed, but it doesn't really look quite right, probably due to being badly extracted.
Thank you soo much! :D
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by Acewell »

BoggY wrote:I assume those one pixel images are badly extracted or something...I found what I needed, but it doesn't really look quite right, probably due to being badly extracted.

no not badly extracted, that is how the data was stored, it looks odd but the game engine probably knew how to handle it
regardless, even if you go to the offsets and extract by hand they still look like that, so is correct a far as i can see. :lol:
BoggY
Posts: 12
Joined: Thu Dec 28, 2017 10:06 pm

Re: Bejeweled Blitz Live XBOX360 .pak and .xpr packages

Post by BoggY »

I see. I have just noticed how is it actually stored, and it seems like everything is looking pretty good! And those 1 pixel images might be some leftover from Bejeweled Twist, the game this title is based on (because PopCap likes to leave a lot of unused stuff in their games for some reason). Anyways, thank you so much for your effort, I really appreciate it. Really nice to see one of those really old forums still being active!