Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #166  
Old 04-05-2026, 11:16
newfolder newfolder is offline
Registered User
 
Join Date: Dec 2016
Location: Austria
Posts: 2
Thanks: 8
Thanked 9 Times in 2 Posts
newfolder is on a distinguished road
Unity Precomp, the open source tool to precompress unity3d/bundle files, includes the binary and the source code in c
Attached Files
File Type: 7z unity_precompressor_v_2_0.7z (97.9 KB, 25 views)
Reply With Quote
The Following 7 Users Say Thank You to newfolder For This Useful Post:
dixen (05-05-2026), DomoVoi_96 (05-05-2026), Dunnowho69 (05-05-2026), kj911 (04-05-2026), ScOOt3r (04-05-2026), wareck (04-05-2026), wrathma (04-05-2026)
Sponsored Links
  #167  
Old 08-05-2026, 13:51
newfolder newfolder is offline
Registered User
 
Join Date: Dec 2016
Location: Austria
Posts: 2
Thanks: 8
Thanked 9 Times in 2 Posts
newfolder is on a distinguished road
Unity Decomp is a program that decompresses Unity bundle files, essentially expanding them so the expanded file is compatible with the Unity engine. This is ideal for people who want to optimize compression, since removing the lz4/lz4hc data allows you to use better compressors like 7-Zip, LOLZ, or FreeARC.

Includes the binary and the source code in c
Attached Files
File Type: 7z unity_decomp.7z (56.9 KB, 13 views)
Reply With Quote
The Following 2 Users Say Thank You to newfolder For This Useful Post:
kj911 (09-05-2026), ScOOt3r (09-05-2026)
  #168  
Old 09-05-2026, 11:37
wrathma wrathma is offline
Registered User
 
Join Date: Apr 2024
Location: Dhaka
Posts: 59
Thanks: 46
Thanked 40 Times in 23 Posts
wrathma is on a distinguished road
bunzip3

this is a standalone bz3 decompressor. based on latest iczelia/bzip3
commit 97a6da2. use bzip3 v1.5.3 to compress. decompression
speed same as official bzip3 release.

tried to build with winxp support but failed. i dont think bzip3 source
codes support winxp at all. eventually got the standalone compiled
x86 exe down to 35kb (no ucrt/msvcrt dll dependency) but it wouldnt
work on win7 without ucrt. worked fine on 10+ tho. so had to add
ucrt. works on all win7+ systems even without any msvcrt installation.

attachment includes source code. to compile make a decompress/ dir
inside bzip3/ git repo and copy the attached CMakeLists.txt and
main_decompress.c and then build the project using cmake.

Code:
> bunzip3_x86.exe

 bz3 decompressor by SYMM

 usage: bunzip3 input output
 replace input and/or output with - to use stdin/stdout
Code:
> bunzip3_x86.exe input.bz3 output.exe
output.exe : 824130 bytes
Code:
> bunzip3_x86.exe - - < input.bz3 > output.exe
<stdin>: 824130 bytes
Attached Files
File Type: 7z bunzip.7z (92.4 KB, 8 views)

Last edited by wrathma; 09-05-2026 at 11:47. Reason: added build instructions
Reply With Quote
The Following 3 Users Say Thank You to wrathma For This Useful Post:
Dunnowho69 (17-05-2026), kj911 (09-05-2026), ScOOt3r (10-05-2026)
  #169  
Old 12-05-2026, 09:30
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
BUNZIP3: A question arose, how can it not get an error if the "libsais" library is not included?

Please note that if you are unpacking these *.bz3 archives on a 32-bit machine, do not use a large block size and/or multiple threads, otherwise it will crash and/or exit silently, resulting in a 0-byte file.

Packed in "-b 511" switches:
x64 exe only one capable it! x86 version (include my XP-versions) still crashing!

Packed in 320MB's block size:
x64 exe: works.
x86: silently exit and will get 0 byte file.
x86_laa: only one capable ~2 million KB memory allocation from x64 Windows host, perfectly decompress.

Packed in 255MB's block size:
all x86 exe hopefully works, included all x32 systems.

Recommendedly use max. 255MB's block size or failsafely smaller values from targeting real 32bit systems. (ex: 64/128/192/224MB.)
These "-b 255" packed archives, I need ~1 600 000KB free memory allocation.
Tested from "enwik9" file.
Attached Files
File Type: 7z bunzip_xp_x86.7z (31.3 KB, 1 views)
Reply With Quote
The Following User Says Thank You to kj911 For This Useful Post:
wrathma (17-05-2026)
  #170  
Old 12-05-2026, 10:12
wrathma wrathma is offline
Registered User
 
Join Date: Apr 2024
Location: Dhaka
Posts: 59
Thanks: 46
Thanked 40 Times in 23 Posts
wrathma is on a distinguished road
Quote:
Originally Posted by kj911 View Post
BUNZIP3: A question arose, how can it not get an error if the "libsais" library is not included?
if you see at the top of CMakeLists.txt youll find that it includes src/libbz3.c in the build command which imports libsais.h
btw i tried your winxp builds and it works fine on my vm, can you share how you did that ? did you use very old visual studio ?
Reply With Quote
  #171  
Old 12-05-2026, 14:02
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
The source code wouldn't compile by hand... (Neither with MinGW nor with w64devkit.)

The main solution was (if all files are in the correct right place), that I had to generate a MinGW-compatible "Makefile" from the "CMakeLists.txt" file using "cmake" in "w64devkit". (last v2.6.0 or 2.7.0 with GCC15.2.0. I'm looking now, v2.8.0 has already been released.)

In principle it was this: cmake -G "MinGW Makefiles" "CMakeLists.txt"

After that, I just had to run "mingw32-make.exe" and the binary file was ready. (After that, I cut out the excess with "strip.exe".)
"*_laa.exe" was created by patching the original file with a small program called "4gb_patch".

w64devkit can also build XP-compatible EXEs. (With some luck.)

These lines changed to:
/SUBSYSTEM:CONSOLE,6.01 --> 5.01
not resolve and generate XP-compatible binaries?

Visual Studio?? As far as I know, it's very difficult to get this nowadays (let alone install it offline), not to mention the many GB of storage space required...

By any chance, you don't have the xp v141 package on your machine? There might be a couple of CAB compression sources. What does it actually do, compared to makecab? Rust, you don't have it installed by any chance?

Last edited by kj911; 12-05-2026 at 14:17. Reason: links added
Reply With Quote
The Following User Says Thank You to kj911 For This Useful Post:
wrathma (12-05-2026)
  #172  
Old 12-05-2026, 14:55
wrathma wrathma is offline
Registered User
 
Join Date: Apr 2024
Location: Dhaka
Posts: 59
Thanks: 46
Thanked 40 Times in 23 Posts
wrathma is on a distinguished road
Quote:
Originally Posted by kj911 View Post
These lines changed to:
/SUBSYSTEM:CONSOLE,6.01 --> 5.01
not resolve and generate XP-compatible binaries?

By any chance, you don't have the xp v141 package on your machine? There might be a couple of CAB compression sources. What does it actually do, compared to makecab? Rust, you don't have it installed by any chance?
i have v141_xp msvc toolset. i tried atleast 20 times with different compiler/linker
args to try to add xp support. yes i also tried /SUBSYSTEM:CONSOLE,5.01 it doesnt
help much. as i have seen using it and not using it is the same. if it were to run on
winxp it would run without this. btw even if you have v141_xp toolset, cmake will
try to target latest toolset. you have to specify it before building like this.
Code:
cmake -G "Visual Studio 18 2026" -A Win32 -T v141_xp -B build
yeah it is heavy. visual studio is taking up almost 50gb on my system drive.
but thanks for the tip, i never knew using non msvc compiler could fix it.

Last edited by wrathma; 12-05-2026 at 14:58.
Reply With Quote
  #173  
Old 12-05-2026, 16:25
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
CMake can, in principle, be configured to always use the given "toolkit" to compile the given source code. (ex: Ninja, MinGW, VisualStudio, etc...)

To be honest, I don't have much experience with these programs,.. If, the package is put together well, the desired/tested program can usually be produced, if there is source code for it.

Manual patching of EXEs does not always solve the problem of whether they can be run on XP? (If, Vista+ compatible EXEs are released after compilation.) If there are no significant number of Vista/7 kernel-specific calls in the binary file, then they usually work on XP as well.
Reply With Quote
  #174  
Old 17-05-2026, 02:23
wrathma wrathma is offline
Registered User
 
Join Date: Apr 2024
Location: Dhaka
Posts: 59
Thanks: 46
Thanked 40 Times in 23 Posts
wrathma is on a distinguished road
RAZOR "true" stdio patch

so this patched dll uses true stdio (no fileio) compression. directly
from ram to ram. it doesnt write anything to disk by itself.
as it is ram to ram, it will use more memory compared to fileio.

maximum memory usage during compression - input filesize +
output file size + compression memory. maximum memory
usage during decompression - decompression memory + ~4mb.

notes:
  1. as i hooked multiple fileio functions of win32api, normal fileio
    compression/decompression through razor is not possible (with
    my patch). using fileio with my patch may lead to bsod. so i have
    added some checks to prevent accidental fileio operations. to do
    fileio operations use the original rz.exe.
  2. you might see my patch reading/writing V_IN.SYMM or
    V_OUT.SYMM files, those are just my handles for virtual memory
    address. not actual files on disk.
  3. its NOT interchangeable with Razor12911's patch or my old
    "fake" stdio patch.

compiled with mingw-clang. will add the source code after some
cleaning. works fine with arc. added sample arc.ini. for usage
instructions see test.bat/arc.ini.

edit:
fixed a memory leak issue (idk how it slipped past me). removed
debug-specific checks that are not required now. some cosmetic
changes and removed unused debug code. also fixed a bug where
it would fail with freearc decompression.
during testing i found out that razor decompressor is sequential so
made this patch do sequential streamed decompression. so memory
usage is same as (+ ~4 mb) non stdio operations. optimized dll
size (115kb to 14 kb).
Attached Files
File Type: 7z RZ_patch.7z (80.6 KB, 5 views)

Last edited by wrathma; 18-05-2026 at 13:19.
Reply With Quote
The Following 3 Users Say Thank You to wrathma For This Useful Post:
Dunnowho69 (17-05-2026), KaktoR (17-05-2026), kj911 (17-05-2026)
  #175  
Old 17-05-2026, 03:13
Dunnowho69 Dunnowho69 is offline
Registered User
 
Join Date: Mar 2025
Location: Hawaii
Posts: 71
Thanks: 182
Thanked 5 Times in 4 Posts
Dunnowho69 is on a distinguished road
Quote:
Originally Posted by wrathma View Post
so this patched dll uses true stdio (no fileio) compression. directly
from ram to ram. it doesnt write anything to disk by itself.
as it is ram to ram, it will use more memory compared to fileio.

maximum memory usage during compression - input filesize +
output file size + compression memory. maximum memory
usage during decompression - input filesize + 8mb output chunks
+ decompression memory.

i had to hook multiple win32api system calls to fool razor archiver
to use a memory address instead of a file.

compiled with msvc. will add the source code after some cleaning.
works fine with arc. added sample arc.ini. for usage instructions
see test.bat/arc.ini.
If you don't mind, what's the difference between this and https://www.fileforums.com/showpost....81&postcount=8 ? I use razor all the time that's why just asking if i should use this from now on
Reply With Quote
  #176  
Old 17-05-2026, 03:24
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
The difference is no temp file copy which simply means it is faster. Not compression itself but it simply doesn't make any temp files. If you use this to compress files on HDD it should make a clear difference in overall compression times. With the old stdio patch rz.exe will copy temp from HDD to HDD (same as lolz does). This step is obsolete. There is nothing faster than RAM copy.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Dunnowho69 (17-05-2026)
  #177  
Old 17-05-2026, 04:05
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
The other day I noticed that the original Razor compressor (rz.exe) created a 32MB temporary file in the %TEMP% folder while testing a 7+ GB archive. Maybe because it would have run faster, testing/unpacking the compressed data, than the HDD speed.

Could someone port Razor to WinXP?? There is an early, v0-1 "draft" source code, heaven knows where it came from. The point is that the program can be compiled for XP, but it doesn't matter what kind of compiler. The MinGW version compresses EXEs worse than the "draft" EXE. This one runs on XP with a little patching. It only handles one file, it's not "fuzzsafe" or whatever they call it. The compression difference is 3-4% worse in favor of the v1.0x series, with a dictionary size of 64MB. There is also a decoder/decompressor compatible with the original RZ, but whether this can be ported to WinXP is a good question.
Reply With Quote
  #178  
Old 17-05-2026, 05:33
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
^^
Maybe you'd get a better answer asking on encode's forum.
Reply With Quote
  #179  
Old 18-05-2026, 13:29
wrathma wrathma is offline
Registered User
 
Join Date: Apr 2024
Location: Dhaka
Posts: 59
Thanks: 46
Thanked 40 Times in 23 Posts
wrathma is on a distinguished road
Quote:
Originally Posted by wrathma View Post
fixed a memory leak issue (idk how it slipped past me). removed
debug-specific checks that are not required now. some cosmetic
changes and removed unused debug code. also fixed a bug where
it would fail with freearc decompression.
during testing i found out that razor decompressor is sequential so
made this patch do sequential streamed decompression. so memory
usage is same as (+ ~4 mb) non stdio operations. optimized dll
size (115kb to 14 kb).
if anyone is using my patch i will highly suggest to update it
as some bugs and dead code unfortunately slipped past me
on my last build. a bsod-level issue was fixed. and overall
dll size dropped by almost 90%. will try to be more careful
from now.

Quote:
Originally Posted by Dunnowho69 View Post
If you don't mind, what's the difference between this and https://www.fileforums.com/showpost....81&postcount=8 ? I use razor all the time that's why just asking if i should use this from now on
as KaktoR said, all it does is compress from ram to ram
eliminating the need to copy stdin to a temp file. if you
try using it on a hdd you will understand the difference.
decompression is same as Razor12911's build.
also a smaller dll wouldnt hurt i think (1.6mb vs 14kb)

Quote:
Originally Posted by kj911 View Post
Could someone port Razor to WinXP??
out of my skillset
Reply With Quote
The Following User Says Thank You to wrathma For This Useful Post:
Dunnowho69 (19-05-2026)
Reply


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
Support and Help on Game Compression Tools and Methods Snake288 Conversion Tutorials 4 18-04-2020 06:30
Help choosing an mp3 player ikermalli Media Players 8 22-08-2010 23:15
[REQ] Pac-Man World 2 Starforce 3 Crack (RLD Tools inside) newone111 PC Games 48 21-03-2010 00:22
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48
Daemon Tools Question Overthere PC Games 11 16-06-2003 17:02



All times are GMT -7. The time now is 16:37.


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