ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Dec 18, 2017 10:12 pm

All times are UTC




Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Sun Jun 26, 2016 11:31 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7267
Ok.
First you extract all the files from the original archive (in case you have not done yet, obviously).

Then you run quickbms from command-line with the -V option and the redirect to an output text file:
Code:
quickbms.exe -l -V witcher3.bms blob.bundle > info.txt

Open info.txt and search the name of the file you want to import using zlib, for example animations\animals\wolf\wolf_animation.w2anims
Code:
. 00061320 getdstr NAME       "animations\animals\wolf\wolf_animation.w2anims" 256
    61 6e 69 6d 61 74 69 6f 6e 73 5c 61 6e 69 6d 61   animations\anima
    6c 73 5c 77 6f 6c 66 5c 77 6f 6c 66 5f 61 6e 69   ls\wolf\wolf_ani
    6d 61 74 69 6f 6e 2e 77 32 61 6e 69 6d 73 00 00   mation.w2anims..
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
. 00061420 getdstr HASH       "" 16
    6d 82 34 0d 40 c7 39 c4 6a af 5e bf 05 84 a0 37   m.4.@.9.j.^....7
. 00061430 get     ZERO       0x00000000 4
. 00061434 get     SIZE       0x00234014 4
. 00061438 get     ZSIZE      0x000b646f 4
. 0006143c get     OFFSET     0x0090e000 4
. 00061440 get     TSTAMP     0x7df46c00 8
. 00061448 getdstr ZERO       "" 16
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
. 00061458 get     DUMMY      0x5d02e792 4
. 0006145c get     ZIP        0x00000003 4
  0090e000 2310164    animations\animals\wolf\wolf_animation.w2anims
Do you see the ZIP field?
The hexadecimal number on its left (0006145c) is the offset of the field in the archive.

Open the archive with a hex editor and go at offset 0x0006145c.

Replace the byte 03 with 01 and save it.

Now delete all the extracted files except animations\animals\wolf\wolf_animation.w2anims for testing the reimporting.

Run reimport.bat

That's all


Top
   
PostPosted: Sun Jun 26, 2016 12:14 pm 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 148
Great ! it worked

Original:
13561 files found in 43 seconds
coverage file 0 91% 285810403 312074704

Modified:
13561 files found in 58 seconds
coverage file 0 91% 285810403 312074704

Offset 61450
Original
00 00 00 00 00 00 00 00 92 E7 02 5D 03 00 00 00

Now
00 00 00 00 00 00 00 00 92 E7 02 5D 01 00 00 00

Thanks! :D


Top
   
PostPosted: Fri Jul 21, 2017 2:31 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 160
Savage wrote:
Great ! it worked

Original:
13561 files found in 43 seconds
coverage file 0 91% 285810403 312074704

Modified:
13561 files found in 58 seconds
coverage file 0 91% 285810403 312074704

Offset 61450
Original
00 00 00 00 00 00 00 00 92 E7 02 5D 03 00 00 00

Now
00 00 00 00 00 00 00 00 92 E7 02 5D 01 00 00 00

Thanks! :D


Hi, you can reimport text.csv Lego Avenger? Thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited