Plants VS. Zombies 1 (Android, RSB extraction duplicates)

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

Plants VS. Zombies 1 (Android, RSB extraction duplicates)

Post by LolHacksRule »

When I extract the RSB file using the 1bgr script, QuickBMS says LoadingSounds_Sounds\SOUNDS\LOADINGSOUNDS\2.SNR, LoadingSounds_Sounds\SOUNDS\LOADINGSOUNDS\3.SNR, LoadingSounds_Sounds\SOUNDS\LOADINGSOUNDS\EXPLOSION.SNR, LoadingSounds_Sounds\SOUNDS\LOADINGSOUNDS\SCREAM.SNR and LoadingSounds_Sounds\SOUNDS\LOADINGSOUNDS\5.SNR, LoadingSounds_Sounds\SOUNDS\LOADINGSOUNDS\6.SNR already exist, any way to fix or bypass this? Here's the current RSB as of v2.3.30: http://www.filedropper.com/main_15.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants VS. Zombies 1 (Android, RSB extraction duplicates)

Post by aluigi »

The section here is correct, already exist other open topic about this format (viewtopic.php?t=1099) but it's ok.

The problem is that the format uses a weird way for storing the filenames.
Basically at offset 0x20df130 you have "BALLOONINFLATE.SNR" with some numbers after the first 3 letters.
At offset 0x20df1b8 you have "SKETBALL.SNR" so I suspect that it wants the "BA" prefix from the previous string.

Code: Select all

  00 00 00 00 00 00 00 00 00 00 00 00 53 00 00 00   ............S...
  4f 00 00 00 55 00 00 00 4e 00 00 00 44 00 00 00   O...U...N...D...
  53 00 00 00 5c 00 00 00 4c 00 00 00 4f 00 00 00   S...\...L...O...
  41 00 00 00 44 00 00 00 49 00 00 00 4e 00 00 00   A...D...I...N...
  47 00 00 00 53 00 00 00 4f 00 00 00 55 00 00 00   G...S...O...U...
  4e 00 00 00 44 00 00 00 53 00 00 00 5c 00 00 00   N...D...S...\...
  41 35 00 00 43 28 00 00 48 00 00 00 49 00 00 00   A5..C(..H...I...
  45 00 00 00 56 00 00 00 45 00 00 00 4d 00 00 00   E...V...E...M...
  45 00 00 00 4e 00 00 00 54 00 00 00 2e 00 00 00   E...N...T.......
  53 00 00 00 4e 00 00 00 52 00 00 00 00 00 00 00   S...N...R.......
  00 00 00 00 00 00 00 00 98 52 00 00 57 00 00 00   .........R..W...
  4f 00 00 00 4f 00 00 00 47 00 00 00 41 00 00 00   O...O...G...A...
  2e 00 00 00 53 00 00 00 4e 00 00 00 52 00 00 00   ....S...N...R...
  00 00 00 00 00 00 00 00 00 60 00 00 8c bf 00 00   .........`......
  42 3c 01 00 41 67 00 00 4c 57 00 00 4c 00 00 00   B<..Ag..LW..L...
  4f 00 00 00 4f 00 00 00 4e 00 00 00 49 4b 00 00   O...O...N...IK..
  4e 00 00 00 46 00 00 00 4c 00 00 00 41 00 00 00   N...F...L...A...
  54 00 00 00 45 00 00 00 2e 00 00 00 53 00 00 00   T...E.......S...
  4e 00 00 00 52 00 00 00 00 00 00 00 00 00 00 00   N...R...........
  00 40 01 00 84 50 00 00 5f 00 00 00 50 00 00 00   .@...P.._...P...
  4f 00 00 00 50 00 00 00 2e 00 00 00 53 00 00 00   O...P.......S...
  4e 00 00 00 52 00 00 00 00 00 00 00 00 00 00 00   N...R...........
  00 20 01 00 14 1b 00 00 53 00 00 00 4b 00 00 00   . ......S...K...
  45 00 00 00 54 00 00 00 42 00 00 00 41 00 00 00   E...T...B...A...
  4c 00 00 00 4c 00 00 00 2e 00 00 00 53 00 00 00   L...L.......S...
  4e 00 00 00 52 00 00 00 00 00 00 00 00 00 00 00   N...R...........
  00 a0 01 00 30 1a 00 00 49 76 00 00 47 00 00 00   ....0...Iv..G...
  43 00 00 00 48 00 00 00 4f 00 00 00 4d 00 00 00   C...H...O...M...
  50 00 00 00 2e 00 00 00 53 00 00 00 4e 00 00 00   P.......S...N...
  52 00 00 00 00 00 00 00 00 00 00 00 00 c0 01 00   R...............
  14 1b 00 00 4c 8e 00 00 45 82 00 00 45 00 00 00   ....L...E...E...
  50 00 00 00 2e 00 00 00 53 00 00 00 4e 00 00 00   P.......S...N...
  52 00 00 00 00 00 00 00 00 00 00 00 00 e0 01 00   R...............

Anyway I don't have the algorithm and, so, I can't fix the script.
When you have duplicates just select 'r'.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Plants VS. Zombies 1 (Android, RSB extraction duplicates)

Post by LolHacksRule »

Oh ok.