View Single Post
  #1  
Old 06-01-2020, 19:29
panker1992's Avatar
panker1992 panker1992 is offline
Registered User
 
Join Date: Oct 2015
Location: Always Somewhere
Posts: 564
Thanks: 116
Thanked 881 Times in 319 Posts
panker1992 is on a distinguished road
Very Advanced Tutorial on Packing 'Part 1'

Hello and Happy New Year.

Well, a lot has happened last year. but i decided to finally expose some well hidden secrets i collected over the past years on packing data and games.

This tutorial is 'Part 1', Part 2 'Very Advanced Packing techniques - SFK Live Patch.' can be found HERE

The Game i decided to play with this tutorial is Sekiro Shadows Die Twice, its a favourite game and also GOTY.

The main focus of this tutorial will be to give Fitgirl a bit of a challenge!!!

Primarily get Notepad++, Hex editor from their free sites.

Spoilers Alert: keep a second back up of the game. we will manipulate data which is compressed and at some cases encrypted.

Step 1.

Whatever the game you decide to "destroy" first you need to unpack it.

Check for the data which you will be eliminating.

Sekiro, we know that the sound data are also included in "Data1.bdt"
so even if you delete all soundfiles from the sound folder, you will be left with a copy of them inside the pack itself.

Unpacking the files will give you the duplicated files which we will manipulate.

Other Example. Resident Evil 2 has movie files inside the gigantic pack.

Step 2.

Hex Editor Check Photos.

Find as many files as you wish for them to be replaced and proceed to part 3.

Tips: in Sekiro you won't be needing to patching back those files whatsoever.
So leaving them blank is OK.

HOWEVER there are several games, what will require to keep track of the offset or even show offset in normal numerical value.
This will help later to use SFK partcopy function to patch back the files. Videos or Sounds.

More Tips: Save the file each and everytime you do this, by doing so it will even create a back up of the previous replacement. you wont be needing to start all
over.

Step 3.

Compression Selection.

Split the game into reasonable Data. you won't be needing to pack movies with textures.

i have splitted sekiro as follows:

Pack1: sound folder with all sounds expect voices. and all bdt files. oo2reck+srep+lolz2
Pack2: movies = bpk+srep+razor
Pack3: sound folder with only jap voices = srep+razor
pack4: all executables, DLLs and other various small files along with bdh files srep+exe+razor

Overall Packed Size = 7.11 GB


If you want to pack sekiro like i did here are the blocks that you can delete safely with hex editor

offset (hex)

Block 1
17f332aa to 1b898ca9

Block 2
28c02dba to 53ae4699

Block 3
55e2a35a to 59987939

Block 4
5d37301a to 622e4cf9

Block 5
647e7c6a to 66b999a9

Block 6
6acdb9ba to 754c22d9

Block 7
79eb250a to 7c00e649


PS: I am making a video out of this
Attached Images
File Type: png Part2_Photo1.png (1.06 MB, 446 views)
File Type: png Part2_Photo2 .png (1.03 MB, 445 views)
File Type: png Part2_Photo3.png (1.02 MB, 439 views)
File Type: png Part2_Photo4.png (1.08 MB, 437 views)
File Type: png Part2_Photo5.png (1.06 MB, 438 views)
File Type: png Part2_Photo6.png (997.0 KB, 432 views)
File Type: png Part2_Photo7.png (1.05 MB, 433 views)
Attached Files
File Type: txt Blocks.txt (303 Bytes, 27 views)
__________________
My projects : Masked Compression, lzma2(xz) on Freearc, Zstd compressor for windows
My optimizations : packjpg.exe, zstd, lzham, precomp-dev-0.45.

Last edited by Grumpy; 12-01-2020 at 04:23.
Reply With Quote
The Following 14 Users Say Thank You to panker1992 For This Useful Post:
78372 (07-01-2020), 8086K (06-06-2020), Carldric Clement (08-01-2020), DedSec (09-01-2020), DiCaPrIo (08-01-2020), Entai44 (06-01-2020), Gehrman (23-01-2022), Grumpy (07-01-2020), Harsh ojha (06-01-2020), KaktoR (08-01-2020), PsYcHo_RaGE (07-01-2020), rambohazard (07-01-2020), shazzla (07-01-2020), ShivShubh (07-01-2020)
Sponsored Links