Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
kvn
Posts: 21
Joined: Sat Aug 29, 2015 11:43 pm

Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by kvn »

Hello,
I need to extract all the resources in the Chinese version of Plants vs. Zombies 2
here is sample file https://www.dropbox.com/s/kopg89vvwd7u5 ... b.smf?dl=0
Last edited by kvn on Sat Oct 17, 2015 3:03 pm, edited 1 time in total.
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by puggsoy »

kvn
Posts: 21
Joined: Sat Aug 29, 2015 11:43 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by kvn »

failed
Last edited by kvn on Sat Oct 17, 2015 3:04 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by aluigi »

Here it works perfectly because I get a 99% of coverage.
kvn
Posts: 21
Joined: Sat Aug 29, 2015 11:43 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by kvn »

no
Last edited by kvn on Sat Oct 17, 2015 3:05 pm, edited 1 time in total.
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by puggsoy »

Can you please show a screenshot of what QuickBMS says at the end of unpacking?
kvn
Posts: 21
Joined: Sat Aug 29, 2015 11:43 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by kvn »

I had finished unpacking , but when I opened the package file, i can not edit
http://postimg.org/image/615xy5c0z/
Last edited by kvn on Sat Oct 17, 2015 3:07 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by aluigi »

Ok, I have fixed the script by parsing also type 0 as type 1.
It may cause problems with other files, I don't know.
The current script is 0.2.1a.

Note that these extracted files start with a 0x10 0x00 magic but they are not compressed with deflate.
kvn
Posts: 21
Joined: Sat Aug 29, 2015 11:43 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by kvn »

Thanks, it works :D
rusbaron
Posts: 14
Joined: Thu Jul 14, 2016 1:34 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by rusbaron »

How you can get it work?
http://imgur.com/XpbaBeB when i try to open file from chinese version
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by aluigi »

Can you upload kongfu.rsb.smf?
rusbaron
Posts: 14
Joined: Thu Jul 14, 2016 1:34 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by rusbaron »

https://drive.google.com/open?id=0B1y0o ... HlYU0xIREE
There is files that i want to extract.I tryed to extract on kongfu.rsb.smf and skycity.rsb.smf , the same error on both files
Thx for helping!!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by aluigi »

Script 0.2.2

I opted for the decompression of the file and the automatic extraction so, in the output folder, you will have both the files and the decompressed file.
If you want to reimport the files (and I bet you want or someone wants it) it's enough to use reimport.bat on the generated rsb file without the smf extension.

If it's not confortable I can simply force the script to just decompress the smf file and then you have to manually use the script on the generated new file.
rusbaron
Posts: 14
Joined: Thu Jul 14, 2016 1:34 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by rusbaron »

Thks,i will try
i need only to get this resource from game, i don't need reimport.
rusbaron
Posts: 14
Joined: Thu Jul 14, 2016 1:34 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by rusbaron »

Thanks, that works!!!
Time to next turn - strange unpacked formats))))
khong_co_ten
Posts: 7
Joined: Fri Sep 18, 2020 9:36 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by khong_co_ten »

Hello,
I need to pack all resources in Plants vs. Zombies 2(Chinese version)
khong_co_ten
Posts: 7
Joined: Fri Sep 18, 2020 9:36 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by khong_co_ten »

there is an error with it

Code: Select all

C: \ Users \ Admin \ Desktop \ quickbms> quickbms.exe -G -w -r

QuickBMS generic files extractor and reimporter 0.10.1
by Luigi Auriemma
e-mail: me@aluigi.org
web: aluigi.org
        (Oct 20 2019 - 14:53:23)

                          quickbms.com Homepage
                            zenhax.com ZenHAX Forum
                     @zenhax @quickbms Twitter & Scripts

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select BMS script. type? for using the content of clipboard like a script
- select input archives / files, type * for the whole folder and subfolders
- select output folder where extracting files

- REIMPORT mode enabled!
  - remember to select the SAME script, file and folder you selected during
    the previous extraction
  - it's highly suggested to leave only the edited files in the folder, it's
    faster and less prone to errors with compressed files

- open input file C: \ Users \ Admin \ Desktop \ quickbms \ dynamic.rsb
- open script C: \ Users \ Admin \ Desktop \ quickbms \ 1bsr_pgsr.bms
- set output folder C: \ Users \ Admin \ Desktop \ quickbms

  offset filesize filename
--------------------------------------
/
- 0 files reimported in 1 seconds
- 1638 files or logs left original, not available in the folder
  coverage file 0 0% 98476 21000192. offset 0001b5dc

Press ENTER or close the window to quit
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by aluigi »

Can you upload that dynamic.rsb file?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Plants vs Zombies 2 (Chinese version) *rsb.smf archive

Post by aluigi »

Everything works well here:

Code: Select all

  offset   filesize   filename
--------------------------------------
< 00020000 266240     Credits_640\ATLASES\CREDITS_640_00.PTX
< 001b7000 17345      Credits_Common\PROPERTIES\CONFIGUI\HEADSHOTDATA.INI
< 001bd000 3399       Credits_Common\PROPERTIES\CONFIGUI\UIBUYCRYSTAL.INI
< 001be000 2371       Credits_Common\PROPERTIES\CONFIGUI\DUMPLING.INI
< 001bf000 2355       Credits_Common\PROPERTIES\CONFIGUI\REDPACKET.INI
...

I guess you selected the wrong folder and therefore quickbms wasn't able to find the files to reimport.