PDA

View Full Version : CLS for Razor Archiver(cls-rz)


78372
14-11-2017, 02:10
RAZOR Archiver has became a popular compressor here but unfortunately there is no public cls/wrapper for this so it can be used with freearc, so I decided to create a cls for it.

Drawbacks:
Using this cls will inflict final size as it chunks data. You can change chunk size but that may inflict smooth progressbar and create bigger temps, but as longer as you use small chunks or don't care about temps, this cls is fine for using.


You must use this on compression if you wish to use it with decompression.

Enjoy ;)

Update 1.0.1.1

1.Decompression crash fixed
2. Default ini changed to cls.ini instead of cls-rz.ini
3.Temp dirs created by the cls should be deleted now in decompression

danswano
14-11-2017, 02:55
Thanks for the effort.
can you provide compressor example cause i tried it and it's crashing arc.exe at the end.

78372
14-11-2017, 03:17
Crash bug fixed. Fixed cls uploaded in first post

danswano
14-11-2017, 04:16
Seems like RZ is painfully slow, is there any switches i can use in cls-rz.ini to speed things up?

78372
14-11-2017, 04:44
I don't know any. Maybe smaller window size may speed it up.

Andu21
14-11-2017, 04:53
Any chances of making the cls read from CLS.ini instead of cls-rz.ini?

78372
14-11-2017, 06:33
Any chances of making the cls read from CLS.ini instead of cls-rz.ini?

Hmm, Ok, here is an alternative build for you and also for others who wants this feature

Removed, as current version already has this feature

danswano
14-11-2017, 06:44
Appreciate the hard work, any chance to see a cls for mcm please?

78372
14-11-2017, 06:47
Well as my signature says, I am busy in exams, but I will try to give it a look if I have time :)

Simorq
14-11-2017, 08:53
Well as my signature says, I am busy in exams, but I will try to give it a look if I have time :)

I hope good luck in your exams.:)

78372
14-11-2017, 20:32
Update Available

A common decompression crash fixed. Sorry for the inconvenience. Also changed the ini name from cls-rz.ini to cls.ini. Temp dirs should be deleted now by the cls.

Randy2
18-11-2017, 00:58
Great !
@78372 can you please give source codes ?
and is there source code is available for cls-srep by ProFeger or Razor ?
Thanks

Jiva newstone
18-11-2017, 01:24
Yes iam also looking for that to modify

doofoo24
18-11-2017, 01:26
@78372
is there CLS-zstd for ver 1.3.2

78372
18-11-2017, 07:22
Great !
@78372 can you please give source codes ?
and is there source code is available for cls-srep by ProFeger or Razor ?
Thanks

I can't (read that I won't :p )

I don't know if cls-srep source by profager is available or not, better ask profager.

If you want a cls example, read the reflate threads of Razor

Yes iam also looking for that to modify

If you want to work like that, you will obviously have troubles, not all compressors work in the same way, if you just use Ctrl+C and Ctrl+V, you will end up with a not working or somehow partially working cls.

@78372
is there CLS-zstd for ver 1.3.2

Razor12911s cls should work, just replace the library of zstd and test. Plus you can use 7zip zstd version which supports stdio, so no cls needed

KaktoR
18-11-2017, 10:36
Yeah keep it in your secret pocket
Fuck you guys.
Your all are shit.
Not helping at all.
Just nothing.

And that's the reason why nobody want to make sources public anymore. Just because of ungratefull guys who not to be able to get enough. And because of bloodsucking vultures

ravencrow
19-11-2017, 03:39
I don't know if cls-srep source by profager is available or not, better ask profager.

Download srep's source and CLS example in CPP, add all the libraries in cls project, instead of creating file use clsstream to process, remove executable part codes like detecting params and stuff. Change default value of mem cause CLS can't use more than 2 GB, and you're done.

Of course you can do all that if you have knowledge else it'd turn up to be a disaster.

78372
19-11-2017, 03:45
rz.exe has no libraries or dlls, and I don't program in C++ :P

ravencrow
19-11-2017, 03:47
rz.exe has no libraries or dlls, and I don't program in C++ :P

Razor can be made to work with stdio if ya know how to make splash screen easily ;)

78372
19-11-2017, 03:49
You are talking about creating a decoy dll, right?

ravencrow
19-11-2017, 03:52
You are talking about creating a decoy dll, right?

Nopes, decoy DLL won't work in its case cause it doesn't use loadlibrary

78372
19-11-2017, 04:29
Nopes, decoy DLL won't work in its case cause it doesn't use loadlibrary

Sure? Because rz somehow loads a windows dll afaik

ravencrow
19-11-2017, 04:33
Sure? Because rz somehow loads a windows dll afaik

When we use decoy DLL, we exploit the fact that loadlibrary first looks for the DLL in the directory where the exe is and then looks up in windows index, but in razor's case it different.

Razor12911
23-11-2017, 17:13
When we use decoy DLL, we exploit the fact that loadlibrary first looks for the DLL in the directory where the exe is and then looks up in windows index, but in razor's case it different.

I tested this a few days ago and it works and I don't think it matters whether implicit or explicit method of linking a library was used, might be wrong but method works.

ravencrow
24-11-2017, 12:27
I tested this a few days ago and it works and I don't think it matters whether implicit or explicit method of linking a library was used, might be wrong but method works.

Would be nice if it worked, will save the trouble of using asm to patch it, did you try it for the library which exports CreatefileW? (Or whichever one it uses)

Razor12911
24-11-2017, 14:10
Well it worked alright and asm is not for all of us, I'm pascal based.

C:\Users\Zee\Desktop\razor>arc.exe x -w.\ -dpunpacked\ data.arc
FreeArc 0.67 (March 15 2014) extracting archive: data.arc
Extracting 1 file, 86,347,072 bytes. Processed 0%
Overwrite unpacked\UI.sb?
(Y)es / (N)o / (A)lways / (S)kip all / (U)pdate all / (Q)uit? a
Extracted 1 file, 13,722,028 => 86,347,072 bytes. Ratio 15.89%
Extraction time: cpu 0.30 sec/real 1.07 sec = 28%. Speed 80.35 mB/s
All OK


C:\Users\Zee\Desktop\razor>pause
Press any key to continue . . .

[External compressor:razor]
header = 0
packcmd = rz a -y -d {option} $stdio$ <stdin> <stdout>
unpackcmd = rz e -y $stdio$ <stdin> <stdout>

shazzla
25-11-2017, 01:24
[External compressor:razor]
header = 0
packcmd = rz a -y -d {option} $stdio$ <stdin> <stdout>
unpackcmd = rz e -y $stdio$ <stdin> <stdout>

what version of rz.exe can be used like this ? :eek:
am i missed something ?

78372
25-11-2017, 05:53
what version of rz.exe can be used like this ? :eek:
am i missed something ?

This only works when you managed to create a decoy dll for rz, else not.

shazzla
25-11-2017, 06:08
ok ,thanks ,but how can i create/use one ?
im totally noob for this. :/

78372
25-11-2017, 06:09
Not much easy :D only programmers like Razor12911 can do it :p

shazzla
25-11-2017, 06:17
very sadly hear that. :(
it would be nice to use rz-stdio with arc.

ffmla
02-12-2017, 08:58
hi, thanks for the cls.
ill use this{both comp & decomp} with srep+delta+rz method.
but while extracting with inno crc error shows(unarc code-12).
but cmd method extract sucessfully.
arc.exe x -w.\ -dpunpacked\ "E:\Testing\Data\Data1.pkg"

is it problem with cls ?. Or :confused:

shazzla
02-12-2017, 11:55
i had the same issue with different algo and files -wav/TTA- and i dont know why...

78372
03-12-2017, 03:38
Not from cls. Either from incompatible arc.exe and unarc.dll use or something else, I am not sure

ffmla
03-12-2017, 04:10
Not from cls. Either from incompatible arc.exe and unarc.dll use or something else, I am not sure
ill try with same unarc.exe and unarc.dll.but till crc error in inno extraction:confused: