FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   3 Way Compression, Masked Compression (https://fileforums.com/showthread.php?t=102689)

Ele 01-02-2021 22:50

Quote:

Originally Posted by github (Post 490200)
tested the Multithreaded Precomp V 0.48,
when I have setup this


The multi thread works, but it will call the cls-precomp.exe instead of cls-precomp_x64.exe

The compressing time reduced a little bit, and the result is 4% smaller?
Which doesn't seem to be right, multi thread should only reduce time not result size.
When try to unpack the result, it says
ERROR: archive structure corrupted (decompression of control block failed)Press any key to continue . . . :(

Reproduce:


You've misunderstood it. There's no Precomp with multiple threads. The Magic is in the "cls-precomp.dll" file.

CLS file for FreeArc is something like a DLL file for Windows OS. Remember that when you use a CLS file, you shouldn't declare a method similar to CLS name in the arc.ini. In your case, it shouldn't be the method name of the "precomp" in your arc.ini for both compression and decompression.

It finally says that you don't need the configuration file (arc.ini) for CLS files (Some CLS files require their own configuration file (cls-precomp.ini). ;)

github 02-02-2021 00:32

Thanks for the quick response and explanation.

I read the readme.log in Masks_Additions_v1.7z and wasn't fully understand the difference that arc.exe will use cls- files without the need to declare a external compressor in arc.ini, but for FA Next, it has to be declared in fa.ini

I tried again with a clean extracting of Masked_Compression_v3.0_.7z
adding the cls- files from Masks_Additions_v1.7z to where arc.exe is.

And in the Advanced_Data_Arc.bat I changed the method to :

Quote:

arc\Arc a -ma9 -ds -lc4096 -ld4096 -di -i1 -ep1 -ed -r -w.\ Setup-1.arc -mprecomp+srep+xz "Pack\*"

This compressed fine.

I copied the srep and xz methods into the arc.ini in the folder of Arc_u.

Then I tried to decompress with Advanced_Data_Unarc.bat

but it gives error of

Quote:

Recompressing Data...
FreeArc 0.67 unpacker. Extracting archive: Setup-1.arc
Extracting test.bin (124 bytes)

ERROR: archive data corrupted (decompression fails)******************************************** ***********************************

Decompressing is Completed

************************************************** *****************************

Ele 02-02-2021 02:06

Quote:

Originally Posted by github (Post 490206)
Thanks for the quick response and explanation.

I read the readme.log in Masks_Additions_v1.7z and wasn't fully understand the difference that arc.exe will use cls- files without the need to declare a external compressor in arc.ini, but for FA Next, it has to be declared in fa.ini

I tried again with a clean extracting of Masked_Compression_v3.0_.7z
adding the cls- files from Masks_Additions_v1.7z to where arc.exe is.

And in the Advanced_Data_Arc.bat I changed the method to :



This compressed fine.

I copied the srep and xz methods into the arc.ini in the folder of Arc_u.

Then I tried to decompress with Advanced_Data_Unarc.bat

but it gives error of

I can see if you can show me your example. (both compression and decompression)

github 02-02-2021 07:33

Ok a simplier version to reproduce the problem:

Download Masked_Compression_v3.0_.7z and extract.

Put in a random file in pack folder for testing.

Try to run Advanced_Data_Arc.bat

with default packing command of

Quote:

arc\Arc a -ma9 -ds -lc4096 -ld4096 -di -i1 -ep1 -ed -r -w.\ Setup-1.arc ^
-msrep:m3f:a8:l256+exe+lolz:d128m:mt2 "pack\*"
Packing is fine.

Try to unpack.

problem 1:

Arc_u folder has cls-lolz.dll and cls-lolz_x64.exe but not in Arc folder.
Guess when unpacking cls-lolz will be called, this cause the following problem of:

cls-lolz: Can't create read mapping

while trying to unpacking.
I moved cls-lolz.dll,cls-lolz_x64.exe out temporary to solve this issue.

Problem 2:

Arc_u folder has CLS-srep.dll and cls-srep_x64.exe but not in Arc folder.
This also create problem of

CLS-srep:can't create read mapping

while trying to unpacking.
I moved CLS-srep.dll and cls-srep_x64.exe out temporary to solve this issue.

Try unpacking again,
report error of

Quote:

ERROR: archive data corrupted (decompression fails)******************************************** ***********************************

Decompressing is Completed

************************************************** *****************************
Upon checking the

Quote:

-msrep:m3f:a8:l256+exe+lolz:d128m:mt2
The srep64.exe in Arc and Arc_u folder is not the same.
Tried to unpacking with the srep64.exe from Arc folder, will not unpack.
Tried to packing with the srep64.exe from Arc_u folder, will not pack.

It's a dead end :(

github 02-02-2021 07:46

Also

Also Arc's arc.ini has
[External compressor:lolz]
header = 0
packcmd = "lz\lolz_x64.exe" {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = "lz\lolz_x64.exe" $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

Arc_u folder's arc.ini has:

[External compressor:delta,exe,mm,rep,tor,lolz,lolzi,lolz2,l zma]
header = 0
unpackcmd = fazip -i0 decompress:{compressor}{:option} <stdin> <stdout>

But even change to the same exe for lolz will not unpack.


Changed to xz

-msrep:m3f:a8:l256+exe+xz

will not unpack.

copied srep64.exe found in 'maksed data compressor 2.5' to both the arc and arc_u folder, it will still packing fine and not unpacking?

github 02-02-2021 08:08

From here
https://fileforums.com/showpost.php?...&postcount=637

srep+lolz might have problem.
But I tested srep+xz same issue.

Might be same issue here:
https://fileforums.com/showpost.php?...&postcount=582

Masquerade 03-02-2021 15:18

github
This error:
Code:

cls-lolz: Can't create read mapping
cls-srep: Can't create read mapping

Occurs when you are trying to run FreeArc decompression without administrator privileges.

github 04-02-2021 09:11

Thank you.
While running with administrator privileges those two errors are gone.
With the example command line to compress and decomperss works.

The next question is , what confused me for the last time, is
if I disable cls-lolz.dll and declare the method in arc_u\arc.ini:

Quote:

[External compressor:lolz]
header = 0
packcmd = "lz\lolz_x64.exe" {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = "lz\lolz_x64.exe" $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
This is the same definition in the compressing process. But the decompress will fail with


not an SREP compressed file.


Is it requied to use the cls-lolz.dll for any lolz compressed file?


Same thing happens to srep. If I disable cls-srep.dll and declare the method in arc_u\arc.ini:

Quote:

[External compressor:srep]
packcmd = srep64 {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep64 -d -s -mem3072mb - - <stdin> <stdout>
This is the same definition in the compressing process. But the decompress will fail with


ERROR: archive data corrupted (decompression fails)


Is it requied to use the cls-srep.dll for any srep processed file?

I thought cls dlls are optional to use, not mandatory? That's why last time when I moved out the cls files, it ends up with
ERROR: archive data corrupted (decompression fails)

Masquerade 04-02-2021 09:59

github
The CLS dll is actually the controller part of the decompressor, with the EXE doing the work.

For lolz and srep, you must use the cls.


All times are GMT -7. The time now is 19:30.

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