Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by LolHacksRule »

The script for Resource Binary format from PopCap's modern internal framework was used fine in games like Peggle 2, while having to modify the script to support big endian variants, the format is also used in Bejeweled Blitz, it worked fine on the base game's Resource Binary and Resource Group files as well as Classic's, but the file from the CDN, errors out the script. Any plans on fixing the script? Thanks.

Code: Select all

- open input file Android\Apps\BejBlitz\cdn\.\com.ea.bejeweledblitz_row\filesNo_Backup\content\main.rsb
- open script Software\quickbms\Scripts/PopCapResourceBinary.bms
- set output folder cdn_ext

  offset   filesize   filename
--------------------------------------
  001a9000 90112      APPLEPIE_1X

Error: incomplete input file 0: Android\Apps\BejBlitz\cdn\com.ea.bejeweledblitz_row\filesNo_Backup\content\main.rsb
       Can't read 90112 bytes from offset 001a9000.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0     0%   220        1740800    . offset 001a9000

Last script line before the error or that produced the error:
  49  clog NAME OFFSET SIZE SIZE

- OFFSET       0x001a9000
- ZSIZE        0x00016000
- SIZE         0x00016000
  coverage file 0     0%   220        1740800    . offset 001a9000
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by aluigi »

The archive says that there is a file at offset 0x001a9000 of 0x00016000 but the archive itself is 0x001a9000 bytes, basically it's not a fault of the script.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by aluigi »

The archive has references to 928 files with offsets from 0x001a9000 to 13b43000.
I suppose there are other main*.rsb* files there, correct?
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by LolHacksRule »

I have the base RSB file if you need a sample, it also fails to extract on my end. There are RSG files however which are the same as RSGP/PGSR, but they extract completely fine. Interestingly, Taiji (despite used primarily for PVZ2) and other tools for PopCap's RSx files also fail to extract this sample.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by aluigi »

Those 350 Mb of data are stored somewhere.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by LolHacksRule »

That's my assumption as of yesterday when looking in the file, I guess this game uses it as a pointer to the content in the RSG files instead?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Bejeweled Blitz (Mobile, *.RSB, ReSource Binary)

Post by aluigi »

Maybe.
Have you found any of these RSG files that may match the exepcted size?