FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Tools for Repacking (https://fileforums.com/showthread.php?t=104866)

Masquerade 08-01-2022 01:05

Tools for Repacking
 
An index for all things compression related. Tools for FreeArc and tools to take you beyond FreeArc. Modding tools to help you decrypt and unpack game archives.

########
ATTENTION
########
Do not request resources from Krinkels.org forum to be uploaded here since it is against their forum rules and most certainly DO NOT MESSAGE ME ASKING ME TO SEND YOU KRINKELS RESOURCES - please read this forum post.
Quote:

Внимание! Если вы получили статус "Пользователи " и будете Ð¿Ñ€ÐµÐ´Ð¾ÑÑ‚Ð°Ð²Ð»ÑÑ ÑŒ материал тем, кто его ещё не получил (по их просьбам через ЛС), то тут же будете лишены данного статуса навсегда.

Attention! If you received the status of "Users" and will provide material to those who have not yet received it (at their request via PM), then you will immediately lose this status forever.
FreeArc Tools
Non-FreeArc Tools
Misc.
Data Sheets

Masquerade 08-01-2022 01:11

sakunaTool
  • Used for Sakuna: Of Rice and Ruin
  • Extract arc files with sakunaTool.exe to remove LZ4 compression
  • Rebuild arc file with sakunaTool then use patch program like XDelta to restore it to the original arc file
https://github.com/LinkOFF7/sakunaTool

By LinkOFF7 & Visntse

Masquerade 08-01-2022 01:24

HDiffPatch [Also known as HDiffZ]
  • Make a patch between two files (convert an old file to a new file).
  • HDiffZ is slower at patch creating than XDelta, however the patches made by this program are smaller than XDelta and apply in a similar time.

    Example Usage
    Code:

    hdiffz-x64 -c-lzma2-9 -C-no <old file> <new file> <patch file>

    to make a patch

    Code:

    hpatchz-x64 <old file> <patch file> <newfile>

    to apply a patch to the old file, making a new file

https://github.com/sisong/HDiffPatch

By sisong

Masquerade 08-01-2022 01:28

Unity Assets Bundle Extractor Avalonia
  • Useful because it can decompress Unity Asset Bundles.
https://github.com/nesrak1/UABEA

By nesrak1

Masquerade 08-01-2022 02:09

1 Attachment(s)
Brunsli
  • You can use brunsli with FreeArc to compress JPEG images.

    Example Usage:
    Code:

    [External compressor:brunsli]
    header    = 0
    solid    = 0
    packcmd  = cbrunsli $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
    unpackcmd = dbrunsli $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

https://github.com/google/brunsli

By Google - compiled version attached to this post was compiled by me.

Masquerade 08-01-2022 02:17

1 Attachment(s)
MPZ [Also known as MPZAPI]
  • Compressor for MP3 audio files.
  • You can use MPZ in $$arc$$ mode or as an STDIO compressor.

    Example Usage:
    Code:

    [External compressor:mpz]
    header    = 0
    packcmd  = {compressor} c <stdin> <stdout>
    unpackcmd = {compressor} d <stdin> <stdout>

    Code:

    [External compressor:mpz]
    header    = 0
    packcmd  = {compressor} c $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
    unpackcmd = {compressor} d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

By Eugene Shelwein

Masquerade 08-01-2022 02:30

MCM
  • General compressor. Good on binary files (exe/dll).

    Example Usage:
    Code:

    [External compressor:mcm]
    header    = 0
    packcmd  = {compressor} -x7 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
    unpackcmd = {compressor} d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

https://encode.su/threads/2127-MCM-LZP
https://github.com/mathieuchartier/mcm

By Mat Chartier

Masquerade 08-01-2022 06:56

1 Attachment(s)
Razor Compressor [v1.03.7 Patched for STDIO usage]
  • Original version shared by Razor12911 was patched for RZ v1.01. It's possible to import the library to RZ v1.03.7 with CFF explorer and everything works.

    Example Usage:
    Code:

    [External compressor:rzs]
    header    = 0
    packcmd  = rz-1.03.7-stdio.exe a -y -d 128m $stdio$ <stdin> <stdout>
    unpackcmd = rz-1.03.7-stdio.exe e -y $stdio$ <stdin> <stdout>

Razor Archiver by Christian Martelock
RZ STDIO patch by Razor12911

Masquerade 08-01-2022 08:11

7-Zip
  • Open source archiver with support for multiple compression algorithms (deflate, LZMA2 etc...)

    Example Usage:
    Code:

    [External compressor:7z]
    header    = 0
    packcmd  = {compressor} a -txz -an -mcrc=0 -m1=lzma2:d64m:mf=bt4:mc=1000000:lc=4:lp=0 -mmt=4 -mx9 -si -so <stdin> <stdout>
    unpackcmd = {compressor} x -txz -mmt2 -an -y -si -so <stdin> <stdout>

By Igor Pavlov
7-Zip Website

Masquerade 08-01-2022 08:17

1 Attachment(s)
LZMA
  • Open source LZMA archiver from the LZMA SDK.

    Example Usage:
    Code:

    [External compressor:LZMA]
    header    = 0
    packcmd  = {compressor} e -a1 -si -so <stdin> <stdout>
    unpackcmd = {compressor} d -si -so <stdin> <stdout>

By Igor Pavlov

Masquerade 08-01-2022 08:45

1 Attachment(s)
XDelta
  • Make a patch between two files (convert an old file to a new file).
  • Extremely fast and makes small patches. Quick to apply patches too.
  • Open source.

    Example Usage:
    Code:

    xdelta-x64.exe -v2 -S lzma -9 -e -s <old file> <new file> <patch file>

    xdelta-x64.exe -v2 -d -f -s <old file> <patch file> <newfile>

https://github.com/jmacd/xdelta

By Joshua MacDonald

Masquerade 08-01-2022 08:52

JojoDiff [Also known as JDiff / Jojo's Binary Diff]
  • Patcher just like XDelta and HDiffZ. Also, open source.

    Example Usage:
    Code:

    jdiff.exe -j -vvv <old file> <new file> <patch file>

    jdiff.exe -u -vvv <old file> <patch file> <newfile>

http://jojodiff.sourceforge.net/

By Joris Heirbaut

Masquerade 08-01-2022 08:57

Atelier PAK Decrypt
  • Utility to decrypt and unpack PAK files from the GUST engine.
  • Note that some of the Koei Tecmo games that use the encrypted GUST engine contain Japanese filenames. In this case, you can't just run the games extracted. Other games such as Atelier Ryza 2 can be run extracted because all file paths and names in the archives are in English.

    Example Usage:
    Code:

    a17_decrypt.exe <input pak file>

    a18_decrypt.exe <input pak file>

https://github.com/shizukachan/atelier_pak_decrypt

By shizukachan

Masquerade 08-01-2022 09:04

QuickBMS
  • One of the most powerful tools anyone has made. This can be used for all kinds of purposes including extracting game archives, replacing data in archives with null bytes and decryption.
  • You need the correct BMS script for the game in question to parse the game files.
http://aluigi.altervista.org/quickbms.htm
http://aluigi.altervista.org/quickbms_list.php

By Luigi Auriemma

Masquerade 08-01-2022 09:11

1 Attachment(s)
TTGames BMS Script [Modified]
  • Modified version of TTGames BMS script by Luigi Auriemma for compatibility with some LEGO games that the public script struggles with.
  • You will still need a patched EXE to run the games in an extracted state. Older games do not need an EXE patch.

Masquerade 08-01-2022 09:15

1 Attachment(s)
WWise PCK BMS Script
  • Unpack WWise PCK archives with QuickBMS. This script extracts with file names and folder paths.
By Nicknine / bnnm

Masquerade 08-01-2022 10:58

1 Attachment(s)
Northlight Tool
  • Extraction utility for the following games:
    • Alan Wake (PC/X360)
    • Alan Wake American Nightmare (PC/X360)
    • Quantum Break (PC, possible XOne)
    • Control (PC, possible XOne/PS4)
    • Alan Wake Remastered (PC, possible XOne/PS4)
  • Useful because you can extract Bink videos. For example, I extracted Bink videos from CONTROL and then you can compress them with BPK afair.

https://forum.xentax.com/viewtopic.php?t=21047
By Evin

Masquerade 08-01-2022 11:05

WolvenKit CLI
  • Command line extraction utility for REDEngine games (e.g. The Witcher 3: The Wild Hunt, Cyberpunk 2077).
  • Example usage, extracting Bink videos from Cyberpunk 2077 - BPK doesn't work for them, but this way you can extract the credits video. Gives file names and paths unlike Aluigi's BMS script.
  • CLI version works significantly easier than GUI version.
https://github.com/WolvenKit/Wolvenkit

Masquerade 09-01-2022 03:00

HPK Archiver
  • HPK Archiver for Haemimont Engine game files.
  • Unpacking the archives will remove LZ4 compression and you can make new archives with the ability to XDelta from old ones.
https://github.com/nickelc/hpk

By nickelc

Masquerade 09-01-2022 03:03

SOS-FoMT-LZS
  • You can use this tool to remove compression from LZS archives, such as game files from Soul Nomad and the World Eaters.
https://github.com/JokerDKha/SOS-FoMT-LZS

By JokerD

Masquerade 09-01-2022 06:08

Bincat
  • Bincat is a simple tool to join together files in a directory into a single file.
  • Limited in some respects because it does not run recursively so you can only concatenate files if they are all in the same folder.
  • Very niche tool with very interesting uses. In my repacks, I have used this to join together several decompressed LZ4 streams in the engine used by the WRC games (PPKG files) into one big file. You can then compress the big file with LZ4 and HDiffZ it. Hopefully I will explain here one day the process of extracting the streams, decompressing them and then building the new file with Bincat.
http://aluigi.altervista.org/mytoolz/bincat.zip

By Aluigi

Masquerade 09-01-2022 06:14

Gust Tools
  • Various tools for modding of Gust engine games (think Koei Tecmo).
  • You will be particularly interested in gust_pak.exe because it can extract ecnrypted Koei Tecmo PAK archives leaving a JSON file and decrypted files. You can then use gust_pak.exe to rebuild the archive from the JSON file. They are so similar you can XDelta the new file to make it the old file and have a 100% CRC perfect repack. The delta files are only a few kb in size, so I didn't even bother using HDiffZ in this case. It's not worth the long patch generation time.
https://github.com/VitaSmith/gust_tools

By VitaSmith

Masquerade 09-01-2022 06:18

1 Attachment(s)
Crysis 3 PAK Decryption Tool
  • Decrypt PAK archives for Crysis 3 to Zip files. Please note the game does not run in a decrypted state.

Masquerade 09-01-2022 06:27

Dunia Tools
  • You can use this to unpack FAT/DAT files from Dunia engine games. The following games are supported:
    • Far Cry 2
    • Far Cry 3
    • Far Cry 3 Blood Dragon
    • Far Cry 4
    • Far Cry Primal
    • Watch_Dogs
    • Watch_Dogs 2
  • Useful if you want to extract audio or Bink videos to compress them better.
https://www.nexusmods.com/farcryprimal/mods/5/
https://mega.nz/file/M5IgRJLJ#3aOH8_...EFJzOvERhJe7Tw

By L Fino

Masquerade 09-01-2022 06:35

Watch Dogs [disrupt-r49_b38_2]
  • Tool by Rick Gibbed to unpack and decompress Watch Dogs game archives.
https://mega.nz/file/dhQGUbqB#Y4SEYx...U9RaCIFvigNhms

By Rick Gibbed

Masquerade 09-01-2022 07:59

arc_unpacker v0.11-0-gff3b9d9
  • Unpacker for all kinds of Visual Novels.

https://github.com/vn-tools/arc_unpacker
https://rawgit.com/vn-tools/arc_unpa...r/GAMELIST.htm

Masquerade 09-01-2022 08:03

MagesPack
  • Unpacker + repacker for games made in the Mages Engine (Steins;Gate, Chaos;Child).
https://github.com/DanOl98/MagesPack

By DanOl98

Masquerade 09-01-2022 08:07

1 Attachment(s)
The Duper v1.4.01
  • You can use this to remove duplicate files from your game. This means there is less to compress. Makes a handy batch file to re-copy all of the duplicated files.
    Code:

    THE DUPER v 1.4.01
    ===================
    This app it's used to compare files and the result it's a 2 .bat files
    -Dupe.bat y remove.bat

    How to use:
    -------------
    Unpack this zip in a folder and copy the 3 .exe where you want analiyze the files, and execute dcmp.exe and wait, when the program finish you found 2 .bat files

    If you Execute remove.bat, in this case you delete the duped files
    When you removed the duped files in the installation program make a "call" to the file dupe.bat and you recover the files

    Don't forgett to delete the files list_tmp.txt ref_tmp.txt, both are a temps from the analisys


    This program it's under license FREEWARE. DON'T PAY FOR THAT
    AT NO MOMENT ONE TAKES RESPONSIBILITY OF ANY DAMAGE TO YOUR COMPUTER, OR HARDWARE OR SOFTWARE, LIKE ANY LOST ONE OF DATA

By KapitalSin

:( Sad8669 16-01-2022 03:06

Tools for Yakuza PAR archives
  • Used to unpack .par files.
  • Creation of .par files with specifed files.
  • Supports SLLZ compression (Including SLLZ V2 used in Yakuza Kiwami 2).

https://github.com/Kaplas80/ParManager

By Kaplas80 &
SutandoTsukai181


I don't know if i can post too, delete this if not.

Masquerade 16-01-2022 04:02

All contributions are appreciated :D

I held off on posting this because the par structure of Yakuza games is slightly complex in that there's par archives within par archives so it's not an easy one to recompress.

@all Please feel free to add anything to this thread you think is useful, the whole purpose of this thread is to encourage everyone to learn a bit more about how to compress even smaller.

KaktoR 20-01-2022 11:34

RPKG Tool for HITMAN 1/2/3
  • With this you can unpack and rebuild game archives for HITMAN 1/2/3
  • Rebuilding game archives is CRC perfect (from what I tested out of 5 archives from Hitman 3 v3.70).
  • Possibility to merge patch files into main archives to save several gigs of space (not tested and not crc perfect ofcourse)

Usage:
Code:

Unpack rpkg file
rpkg-cli.exe -extract_from_rpkg "<path>\<filename>"

Unpack all rpkg files
rpkg-cli.exe -extract_from_rpkgs "<path to folder containing RPKGs>"

Repack rpkg file
rpkg-cli.exe -generate_rpkg_from <foldername>

https://github.com/glacier-modding/RPKG-Tool
Latest hash lists: hitmandb.notex.app/latest-hashes.7z

Masquerade 20-01-2022 21:53

@KaktoR
What are the speeds like for this tool now? I recall it being very slow at extracting and packing files.

KaktoR 21-01-2022 00:39

HDD speeds (my m2 SSD is nearly full, so can't test)
chunk0.rpg (13.5 GB)
Unpack: 100% Done in 1181.58s
Repack: Scanning folder time 10min + 100% Done in 1141.25s

Edit:
Code:

Note: Disabled AV (Windows Defender) to speed up the whole process (it will give you a good speed boost).

M2 SSD
11:03:10 - Start
G:\test>rpkg-cli.exe -extract_from_rpkg "G:\chunk0.rpkg"
Extract from RPKG file: G:\chunk0.rpkg
Extract: All hash files with filter ""
Valid RPKGv2 file magic signature found.
RPKGv2 file chunk0.rpkg is not a patch file.
Importing index from RPKGv2 file: chunk0.rpkg
Importing RPKG file data: 100% Done in 2.5325s
Extracting from RPKG: 100% Done in 227.422s
11:07:01 - Stop

11:07:45 - Start
G:\test>rpkg-cli.exe -generate_rpkg_from "G:\Test\chunk0"
Using RPKG meta file: G:\Test\chunk0\chunk0.meta
Valid RPKGv2 file magic signature found.
RPKGv2 file G:\Test\chunk0\chunk0.meta is not a patch file.
Scanning folder: Done
Writing to temporary RPKG file: chunk0.rpkg.tmp
Generating RPKG file: 100% Done in 427.501s
Writing RPKGv2 offset index: 100% Done in 0.245895s
Writing RPKGv2 info index: 100% Done in 0.444143s
Merging RPKGv2 file and temporary RPKG files...
Merged RPKGv2 file and temporary RPKGv2 file in 130.196s
Successfully generated RPKGv2 file: chunk0.rpkg
11:17:34 - Stop

CRC Checks
Original CD516CCC
Repacked CD516CCC


Masquerade 22-01-2022 13:14

Collection of Gibbed Tools: http://svn.gib.me/builds/

Masquerade 22-01-2022 14:42

Data Sheet for Mad Max [GOG v1.0.3]
  • Use this BMS script to unpack the game archives specified below then you can patch out the flagged files using SFK.
  • http://aluigi.altervista.org/bms/justcause2.bms
  • KB2i files are Bink videos and can be compressed with BPK
  • FSB5 files are FMOD banks that contain vorbis audio. These don't compress well so you can patch these out to speed up lolz a bit since there's less data for it to compress.
  • 853ad14e.KB2i is unneeded by the game so you can rip it if you want. The other two videos are needed and the game will crash if those videos are not available. They are intro videos.
Code:

MAD MAX - Offsets in Decimal

game2.arc

143560704 - 206051659 - def0d575.KB2i

643588096 - 766688731 - 39844701.KB2i

game37.arc

325599232 - 531816827 - 853ad14e.KB2i

game0.arc

42659840 - 862431583 - 03fc1a91.FSB5

game3.arc

580550656 - 605097151 - 9925af7e.FSB5

200591360 - 484501599 - 89bd0bdc.FSB5

game1.arc

152014848 - 419433599 - ef5ed197.FSB5

0 - 102791775 - 692d0738.FSB5

105039872 - 150999199 - 9cbf649e.FSB5


Masquerade 22-01-2022 14:49

Data Sheet for Sekiro: Shadows Die Twice [Steam Build 5794815]
  • All the files below are present inside Data1.bdt and are duplicates of everything within the sound folder.
  • You can cut the size of your repack by several GBs just by patching out the duplicated files and then using SFK to patch all of these files back in using the existing sound files.
  • This is an improvement over the method shown by Panker1992 - his method involved patching out entire blocks of audio whereas here, each individual file get patched out so that you can separate language audio and remove duplicate data.

Code:

Data1.bdt - Offsets in Decimal

SPANISH

2056686058 - 2062779625 - vm25_ese

1698264554 - 1704638281 - vm17_ese

1460658010 - 1470921785 - vm13_ese

421122474 - 431546121 - vm10_ese

1590043290 - 1604286969 - vm15_ese

1848422746 - 1877408601 - vm20_ese

913828218 - 1033695257 - vm11_ese

JAPANESE

1264734490 - 1403977305 - vm11_jaj

1933972634 - 1967974169 - vm20_jaj

1631120666 - 1647248569 - vm15_jaj

1491509082 - 1503211769 - vm13_jaj

451123018 - 461999273 - vm10_jaj

2073733546 - 2080483977 vm25_jaj

1716761674 - 1723486569 - vm17_jaj

ITALIAN

1156029210 - 1264734489 - vm11_iti

1907205562 - 1933972633 - vm20_iti

1618851610 - 1631120665 - vm15_iti

1481838010 - 1491509081 - vm13_iti

441860042 - 451123017 - vm10_iti

1710847146 - 1716761673 - vm17_iti

2068629770 - 2073733545 - vm25_iti

GERMAN

2045503818 - 2050799369 - vm25_ded

1686058026 - 1692775721 - vm17_ded

401814186 - 411867369 - vm10_ded

1440963354 - 1451168953 - vm13_ded

1563944922 - 1578159449 - vm15_ded

1791914362 - 1822154841 - vm20_ded

683703002 - 803188505 - vm11_ded

FRENCH

1033695258 - 1156029209 - vm11_frf

1877408602 - 1907205561 - vm20_frf

1604286970 - 1618851609 - vm15_frf

1470921786 - 1481838009 - vm13_frf

431546122 - 441860041 - vm10_frf

1704638282 - 1710847145 - vm17_frf

2062779626 - 2068629769 - vm25_frf

ENGLISH

803188506 - 913828217 - vm11_enu

1822154842 - 1848422745 - vm20_enu

1578159450 - 1590043289 - vm15_enu

1451168954 - 1460658009 - vm13_enu

411867370 - 421122473 - vm10_enu

2050799370 - 2056686057 - vm25_enu

1692775722 - 1698264553 - vm17_enu

MISC

484789978 - 588394585 - rm11

588443114 - 674049417 - sm11

2009624634 - 2045349689 - sm25

1967977706 - 1999163081 - xm20

1723490106 - 1754630297 - xm17

1536736730 - 1563711897 - sm15

374582266 - 400861241 - sm10

1503214762 - 1528145225 - xm13

1403980298 - 1410161641 - xm11

1661564874 - 1685963561 - sm17

1771126490 - 1790800185 - sm20

462001162 - 476119849 - xm10

361765642 - 374563017 - rm10

2080485930 - 2093097161 - xm25

1759064554 - 1771113481 - rm20

1647250458 - 1658755929 - xm15

1430398602 - 1440771625 - sm13

2001824282 - 2009604249 - rm25

676485146 - 683697369 - vm11

1530594410 - 1536710153 - rm15


panker1992 22-01-2022 17:52

Quote:

Originally Posted by Masquerade (Post 495514)
Data Sheet for Sekiro: Shadows Die Twice [Steam Build 5794815]

You dont need to patch files back in sekiro.exe can load them as lose files.

either keep the already extracked and remove with hex editor. or delete lose files and keep the compressed ones

dixen 22-01-2022 22:44

Quote:

Originally Posted by KaktoR (Post 495493)
RPKG Tool for HITMAN 1/2/3

This tool remove encrypt from RPKG?

Masquerade 22-01-2022 23:53

Quote:

Originally Posted by panker1992 (Post 495515)
You dont need to patch files back in sekiro.exe can load them as lose files.

either keep the already extracked and remove with hex editor. or delete lose files and keep the compressed ones

Patch back in for CRC perfection. :D

Masquerade 22-01-2022 23:54

Quote:

Originally Posted by dixen (Post 495516)
This tool remove encrypt from RPKG?

Yes, decrypts + decompresses. The intention of the tool is to enable people to mod the game.


All times are GMT -7. The time now is 21:55.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com