PDA

View Full Version : Universal CLS Generator


78372
17-12-2017, 02:22
Universal CLS Generator

Greetings everyone, here is an advance Christmas gift for you

Universal CLS Generator

Before using, grab some brains, read this tutorial and go.

Tutorial

1. Set a cls name. The name will be used for section name in cls.ini

2. Set a temporary directory name

3. Write encode command line

4. Write decode command line

5. Write input file name(output filename in decode)

6. Write output file name(input filename in decode)

Remember to use these input and output file names in encode and decode cmds

7. Write the name of exe to execute

8. Write chunksize in mb, remember that whether it is static or take from ini, you need to assign a value. For ini, the structure is like this:

[CLSNAME]
Chunk=

The ini file is cls.ini

9. Generate. The file name will be cls-*.dll

Thanks to unarc125 for his design and Razor12911 for resupdate unit

A real world example is given on the picture

Enjoy!




CLS Generator MT beta(test) version uploaded.

To make a cls, just drag and drop the script on generate.exe.

See the uclsgmt.txt for an example.


CLS Generator MT beta 2 uploaded
- Some bugs were fixed

CLS Generator MT beta 3 uploaded
- (De)Compression freeze fixed
- Custom Threads available now. Set Threads to 0 to use defaultthreads or 1 to take threadcount from an ini file.

Jiva newstone
17-12-2017, 02:24
Thanks for that !

Jiva newstone
17-12-2017, 03:09
Is there any src for this , because want to run cls depend on x64 and x86 , eg if 64bit then srep64 else srep32

78372
17-12-2017, 03:38
Is there any src for this , because want to run cls depend on x64 and x86 , eg if 64bit then srep64 else srep32

Source code is a bit of messed up now, can't release now so, will reorganize code and release then.

JRD!
17-12-2017, 13:11
Thank you for this work, if it works well and if you agree, I will implement it in my program, I will mention that you are the inventor.

I'm waiting to see the tests returns, well done for this idea and continue like that.

Mini
17-12-2017, 16:25
MT support?

78372
17-12-2017, 19:06
Thank you for this work, if it works well and if you agree, I will implement it in my program, I will mention that you are the inventor.

I'm waiting to see the tests returns, well done for this idea and continue like that.

Go on my friend

78372
17-12-2017, 19:08
MT support?

Not gonna add MT support :p

78372
19-12-2017, 03:56
Here is the source code of universal cls generator

JRD!
20-12-2017, 10:42
Are you the author of the unit "resupdate.pas" ?

78372
20-12-2017, 18:42
Are you the author of the unit "resupdate.pas" ?

No, that's taken from asc_003 source of Razor12911

JRD!
20-12-2017, 19:42
Okay, thank you for clarifying that. I look at the operation of the code is it is quite technical, I wanted to know if you were the author... This does not erase your work of course.

unarc 125
21-12-2017, 03:22
;)

78372
21-12-2017, 03:38
;)

cool design dude

78372
21-12-2017, 08:39
Is MT will be added in the future?

No, I have no plans to add mt

78372
24-12-2017, 09:14
Update coming tomorrow.
Changes:
1. Import/Export Config
2. More optimized cls
3. Some minor changes


Merry Christmas to all :)

doofoo24
24-12-2017, 21:16
can i use it for zstd without the exe for decompression ?

78372
24-12-2017, 21:21
You already have razor's cls-zstd which doesn't need zstd.exe

fileforums.com/showthread.php?t=98121

See this

doofoo24
24-12-2017, 21:27
newer version of zstd has new setting like --ultra which improve compression ratio...
the one from razor gives worst ratio than if i use zstd with

[External compressor:zstd]
header = 0
packcmd = zstd -22 --ultra <stdin> <stdout>

78372
24-12-2017, 21:28
Well this CLS Generator works only with programs that doesn't support stdio in general.

doofoo24
24-12-2017, 21:32
so i can't use your program to import the setting :

[External compressor:zstd]
header = 0
packcmd = zstd -22 --ultra <stdin> <stdout>

into cls without the need for exe file ?

78372
24-12-2017, 21:36
Nope

doofoo24
24-12-2017, 22:10
:rolleyes:

78372
25-12-2017, 00:40
Generator 1.1 Uploaded

78372
25-12-2017, 20:17
The biggest update coming, I will take a few days , but it's gonna be a big update. MT will be available, more optimizations and others.

mikey26
27-12-2017, 00:34
Elloz 78372

just a heads up i could not get this to run on the new 8700k processor.Application just runs in task manager at 0% cpu usage.


NVM : its working now it seem windows updates was working in the background after a reboot and updates completed its loading perfectly

78372
27-12-2017, 01:23
Elloz 78372

just a heads up i could not get this to run on the new 8700k processor.Application just runs in task manager at 0% cpu usage.

Export config and upload the exported file here

78372
27-12-2017, 08:00
Just to make you know, I want to inform you that CLS MT Generator will have a scripting system like Inno Setup, you must know how to Write INI files because the script is basically an INI. You can open, save and build anytime any script, build ST or MT, switch between x86 exe and x64 exe according to the OS build and also build cls which doesn't need any exe. Compression(UPX) will be available to make small size cls and you can also change version info of cls to clarify that you generated the cls.

I hope you don't mind waiting a few more days for the generator :)

78372
31-12-2017, 10:02
Gonna post test version soon, Happy New Year to all

78372
01-01-2018, 23:39
Generator MT beta(test) uploaded. See first post.

Jiva newstone
02-01-2018, 01:40
Generator MT beta(test) uploaded. See first post.

Good job mates , thanks for MT Update

ZakirAhmad
03-01-2018, 08:51
is it possible to create CLS for nanozip using universal CLS Generator?

78372
03-01-2018, 08:53
is it possible to create CLS for nanozip using universal CLS Generator?

Ofc, see the example given on the pic(in first post) that's nz

doofoo24
04-01-2018, 10:04
the setup reamin running at the proccess after it finishes only end task fix it the checksum of the files are ok...
i used the setting
[CLS]
Name=RZ
Chunk=0
ChunkSize=64m
InputFile=rz.in
OutputFile=rz.out
EXE=rz.exe
EXE64=rz.exe
Threads=2
TempDir=rztmp
Encode=a -d 64m rz.out rz.in
Decode=e -y -o .\ rz.out rz.in
CLSFileName=cls-rzmt.dll
CompanyName=
Description=
Version=
LegalCopyRight=
LegalTrademarks=
OriginalFileName=
ProductName=
ProductVersion=
Comments=

ZakirAhmad
06-01-2018, 00:33
Itried to generate Cls for nanozip 64 with Cls generator but as i am using it, after showing the message "cls has been generating using cls generator by 78377", i am getting arc.exe has stopped working.
please help

78372
06-01-2018, 00:40
Gimme screenshot of settings you used to generate the cls

ZakirAhmad
06-01-2018, 00:49
Bro, I am using 2g on mobile as we have no broadband connectivity. it would be nice if u can PM me ur whatsapp no. or anyother way to connect. Btw i am browsing this site through Opera mini

ZakirAhmad
06-01-2018, 00:50
Bro, I am using 2g on mobile as we have no broadband connectivity. it would be nice if u can PM me ur whatsapp no. or anyother way to connect. Btw i am browsing this site through Opera mini.
if possible, otherwise if u wish i can post screen shot here but it will take 2-5 minutes.

78372
10-01-2018, 10:29
Bro, I am using 2g on mobile as we have no broadband connectivity. it would be nice if u can PM me ur whatsapp no. or anyother way to connect. Btw i am browsing this site through Opera mini.
if possible, otherwise if u wish i can post screen shot here but it will take 2-5 minutes.

PM me

oltjon
11-01-2018, 11:55
it does not work anymore (generatemt)

78372
11-01-2018, 19:20
it does not work anymore (generatemt)

Did you dragged and dropped the script on generatemt.exe?

oltjon
11-01-2018, 23:17
sorry I did not read the instructions well. thank you

ZakirAhmad
15-01-2018, 19:51
Gimme screenshot of settings you used to generate the cls

Can u please make a multithreaded cls for uelr by Profrager using cls generator or something.

78372
18-01-2018, 08:32
Can u please make a multithreaded cls for uelr by Profrager using cls generator or something.

Will check

78372
27-01-2018, 23:23
Extracting generatemt no work
Test Razor
Compression OK
Extracting 0%:(
When extracting RZ.exe not run.

show script

ramazan19833
28-01-2018, 01:43
CLS show script nz/nz64 ?

oltjon
28-01-2018, 02:57
try chunksize=64m or 128m

78372
28-01-2018, 03:55
Weird, will check

78372
29-01-2018, 01:20
Beta 2 uploaded.


I don't know that decompression bug was fixed or not, I haven't faced that bug, but you may have a try.


Chunksize should be at least 2*Dictionary size/window size for compressors if you want a better ratio.

oltjon
29-01-2018, 08:52
@78372 you caught the attention of @simorq. @simorq is a good tester;)

KaktoR
29-01-2018, 11:32
@Simorq: Could you share rz cls? :)

78372
30-01-2018, 01:17
Beta 3 uploaded, see first post for changes.

doofoo24
30-01-2018, 01:40
@78372 can i use different cls for compression using 8 core and for decompression 2 core ???

78372
30-01-2018, 01:51
Yes.

Set threads=1 in script. Default threads should be 8/2. Then create cls.ini with this settings for compression :

[Your CLS Name]
Threads=8

And for decompression :

[Your CLS Name]
Threads=2


For example:

[RZ]
Threads=8

Here the cls will use 8 threads. CLS name was RZ and used for ini section.

doofoo24
30-01-2018, 01:56
ok seem to work, but when cancel unpacking i get error the setup it self canceled but didn't uninstall...

78372
30-01-2018, 02:40
Hello there 78372
nz/nz64 please help
is it possible to create CLS for nanozip using universal CLS Generator?

NZ is already mt, just use Generator1.1, there is no need for MT Generator.


ok seem to work, but when cancel unpacking i get error the setup it self canceled but didn't uninstall...

Will see

ZakirAhmad
30-01-2018, 03:57
we can achieve same objective if we use -s1024m in arc command without cls generator.

78372
30-01-2018, 04:04
we can achieve same objective if we use -s1024m in arc command without cls generator.

Yes and no.

It may work if you are using only one compression method. But we use srep before everything and if you chunk by -s command, you will loose a lot of ratio. But with cls, only one compressor is chunked so you may (or may not) loose ratio by a few %