Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 28-12-2021, 12:14
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 744
Thanks: 168
Thanked 786 Times in 391 Posts
Masquerade is on a distinguished road
UBT | Unity Bundle Tool

UBT | Unity Bundle Tool

Unity Bundle Tool is a software made by my friend, SowwyItsAnAlt, which I have been using in my repacks for a few months. With her permission, I have rewritten and polished the code and made a new executable which I am sharing here.

The function of this tool is the ability to decompress compressed Unity Asset Bundles and then recompress them to a close enough point in which a patch is possible (& viable!). I like to use HDiffZ because it gives the smallest patches. XDelta should work just fine (patch creation is significantly quicker than with HDiffZ although the patch file will be larger).

UBT is based on AssetTools.NET by nesrak1 and has compression support for both LZ4 and LZMA compression.

Code:
 █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
 █ Unity Bundle Tool | 10/02/21 █
 █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█

 Usage: UBT.EXE <options> <infile> <outfile>

 Options:

     -i       : List information about bundle file (only specify <infile>).
     -d       : Decompress bundle file.
     -c       : Compress bundle file (must specifiy use of LZ4 or LZMA).
     -credits : View credits.

 Example usage:

 UBT.EXE -i data.unity3d
 UBT.EXE -d data.unity3d decompressed_data.unity3d
 UBT.EXE -c lz4 decompressed_data.unity3d data.unity3d
 UBT.EXE -c lzma decompressed_data.unity3d data.unity3d
To prove just how well this tool works, I will demonstrate on the game "Poly Bridge 2" (which I do recommend you all try if you enjoy a good puzzle like myself). This game contains "data.unity3d" which is compressed via LZ4. The steps are:
  1. Decompress the bundle
  2. Compress the decompressed file using the same compression algo as what the original bundle was compressed with
  3. Use your patch program of choice to create a patch file between the new compressed file and the original compressed bundle.



    As we can see from the above image, the new file is so similar that our HDiffZ patch is less than 1mb in size! Now, in your repack installation, you simply include the decompressed file and compress it then patch it using the patch file after the archive is extracted. Easy!

    Of course, you don't need to patch the file, since Unity will read the file regardless - compressed or decompressed. The patch is simply for a 100% CRC perfect repack.

    Highlighted above is the function of the -d and -c option. Using -i will give the file size in bytes, MD5 and compression type used on the input file.

    This is a standalone tool and NOT for use with FreeArc.
Have fun and enjoy. Happy New Year.
Attached Files
File Type: 7z UBT.7z (1.00 MB, 124 views)

Last edited by Masquerade; 10-02-2022 at 08:14.
Reply With Quote
The Following 16 Users Say Thank You to Masquerade For This Useful Post:
COPyCAT (12-01-2022), danthespal (28-12-2021), FIFA_LOVER (28-12-2021), Gehrman (09-03-2022), Grumpy (28-12-2021), Hexagon123 (30-12-2021), kj911 (29-12-2021), L0v3craft (01-04-2022), panker1992 (29-12-2021), Pantsi (29-12-2021), prince55 (08-01-2022), ramydarkness (19-03-2022), Razor12911 (29-12-2021), ScOOt3r (29-12-2021), st0rm (02-01-2022), ZAZA4EVER (03-01-2022)
Sponsored Links
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful programs Joe Forster/STA Conversion Tutorials 72 Yesterday 17:40
Multiple Text/String Replacer Tool vollachr Conversion Tutorials 7 07-01-2018 04:12
Preview: Conversion Tool for Advanced Setup Creator Razor12911 Conversion Tutorials 6 10-05-2017 00:30
New Chinese SecuROM tool EMPiRE PC Games 5 01-11-2005 13:49
UT2004 tool dflash PC Games 2 28-03-2004 06:16



All times are GMT -7. The time now is 09:32.


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