FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Universal Accelerator - cls-mtx.dll (https://fileforums.com/showthread.php?t=103664)

BLACKFIRE69 10-07-2020 02:54

Universal Accelerator - cls-mtx.dll
 
1 Attachment(s)
Universal Accelerator - cls-mtx 2.0.0.7



A CLS library for speeding up some kind of tool.

https://i.imgur.com/n1D4HE6.png


Usage:
mtx:<Chunk_size>:<# of Threads>:<Compression_Method>

Example:
Code:

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t4:precomp Packed\Data0.bf "Pack0\*"

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t4:precomp+srep Packed\Data1.bf "Pack1\*"

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t4:bcm Packed\Data2.bf "Pack2\*"

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t4:bsc Packed\Data3.bf "Pack3\*"

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t4:mpz Packed\Data4.bf "Pack4\*"

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t4:rz Packed\Data5.bf "Pack5\*"

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c128m:t4:mcm Packed\Data6.bf "Pack6\*"

or  Number of Threads as a percentage (v2.0.0.2)

arc.exe a -ep1 -r -ed -s; -w.\temp -mmtx:c64m:t75p:precomp Packed\Data0.bf "Pack0\*"

Arc.ini
Code:

[External compressor:rz64, mtxrz, mtx_rz]
header    = 0
packcmd  = "Res\Rz Compressor\rz64.exe" a -d 128m $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = "Res\Rz Compressor\rz64.exe" e -y $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:bcm, mtx_bcm, mtxbcm]
header    = 0
packcmd  = "Res\Bcm Compressor\bcm.exe" -9 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = "Res\Bcm Compressor\bcm.exe" -d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:bsc, mtxbsc, mtx_bsc]
header    = 0
packcmd  = Res\Bsc\bsc.exe e $$arcdatafile$$.tmp $$arcpackedfile$$.tmp -b64 -e2 -cf
unpackcmd = Res\Bsc\bsc.exe d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:precomp, mtxprecomp, mtx_precomp]
header    = 0
packcmd  = Res\Precomp\precomp.exe -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = Res\Precomp\precomp.exe -r -o$$arcdatafile$$.tmp $$arcpackedfile$$.tmp

[External compressor:mpz, mtxmpz, mtx_mpz]
header    = 0
packcmd  = Res\Mpz\mpz.exe c <stdin> <stdout>
unpackcmd = Res\Mpz\mpz.exe d <stdin> <stdout>

[External compressor:mcm, mtxmcm, mtx_mcm]
header = 0
packcmd  = Res\Mcm\mcm.exe -x6 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = Res\Mcm\mcm.exe d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

or
Code:

[External compressor:rz64, mtxrz, mtx_rz]
header    = 0
packcmd  = "Res\Rz Compressor\{compressor}" a -d 128m $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = "Res\Rz Compressor\{compressor}" e -y $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:bcm, mtx_bcm, mtxbcm]
header    = 0
packcmd  = "Res\Bcm Compressor\{compressor}" -9 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = "Res\Bcm Compressor\{compressor}" -d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:bsc, mtxbsc, mtx_bsc]
header    = 0
packcmd  = Res\Bsc\{compressor} e $$arcdatafile$$.tmp $$arcpackedfile$$.tmp -b64 -e2 -cf
unpackcmd = Res\Bsc\{compressor} d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:precomp, mtxprecomp, mtx_precomp]
header    = 0
packcmd  = Res\Precomp\{compressor} -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = Res\Precomp\{compressor} -r -o$$arcdatafile$$.tmp $$arcpackedfile$$.tmp

[External compressor:mpz, mtxmpz, mtx_mpz]
header    = 0
packcmd  = Res\Mpz\{compressor} c <stdin> <stdout>
unpackcmd = Res\Mpz\{compressor} d <stdin> <stdout>

[External compressor:mcm, mtxmcm, mtx_mcm]
header = 0
packcmd  = Res\Mcm\{compressor} -x6 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = Res\Mcm\{compressor} d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp


* cls-mtx supports two methods.

Code:

1: The simple way

[External compressor:precomp, mtxprecomp, mtx_precomp]
header    = 0
packcmd  = "Res\Precomp\precomp.exe" -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = "Res\Precomp\precomp.exe" -r -o$$arcdatafile$$.tmp $$arcpackedfile$$.tmp


Code:

2: Alternative method

[External compressor:precomp, mtxprecomp, mtx_precomp]
header    = 0
packcmd  = "Res\Precomp\{compressor}" -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
unpackcmd = "Res\Precomp\{compressor}" -r -o$$arcdatafile$$.tmp $$arcpackedfile$$.tmp


and the exe name must be "precomp.exe" (similar to the first one in section names.)



For Compression:
arc.ini
cls-mtx.dll


For Decompression:
cls.ini
arc.ini
cls-mtx.dll



More About cls-mtx.dll v.2.0.0.5 Update
More About cls-mtx.dll v.2.0.0.6 Update
More About cls-mtx.dll v.2.0.0.6 Update - New
More About cls-mtx.dll v.2.0.0.7 Update


Testing:

https://i.imgur.com/lR1WdaZ.png

Razor12911 10-07-2020 16:25

1 Attachment(s)
:cool:

Attachment 27385

darkwolves 10-07-2020 22:58

another one? lol

BLACKFIRE69 11-07-2020 07:51

Universal Accelerator - cls-mtx.dll 2
 
Universal Accelerator - cls-mtx.dll 2 - New Update

cls-mtx.dll - update 2

what's new:
  • cls-mtx is re-coded.
  • Fixed some bugs for Razor Archive.
  • Optimized some performance.


ckeck the first post....

BLACKFIRE69 13-07-2020 08:02

cls-mtx New Example Script
 
2 Attachment(s)
cls-mtx New Example Script

L0v3craft 15-07-2020 08:22

Hi BLACKFIRE69. For razor only is more stable this tools or razorx? I want use the more stable tool (and bug free), thanks.

BLACKFIRE69 15-07-2020 10:15

Quote:

Originally Posted by L0v3craft (Post 486829)
Hi BLACKFIRE69. For razor only is more stable this tools or razorx? I want use the more stable tool (and bug free), thanks.

@L0v3craft, both are stable. cls-mtx is the latest. you can use this instead of razorx. ;)

L0v3craft 16-07-2020 01:58

Quote:

Originally Posted by BLACKFIRE69 (Post 486830)
@L0v3craft, both are stable. cls-mtx is the latest. you can use this instead of razorx. ;)

This one has the same limitation of razorx that we can't use for decompression a number of threads higher that the threads used for compression?

BLACKFIRE69 16-07-2020 03:51

Quote:

Originally Posted by L0v3craft (Post 486836)
This one has the same limitation of razorx that we can't use for decompression a number of threads higher that the threads used for compression?

yes, the number of threads for decompression should be the same or less than that used in compression.

ex:
Compression: Threads = 8
Decompression: Threads = 8, 4 , 2 ….

BLACKFIRE69 16-07-2020 20:36

cls-mtx renaming
 
it's possible that rename "mtx" to another file name.

ex:
  • cls-mtx.dll --> cls-rzx.dll
  • cls-mtx.dll --> cls-precompx.dll

file renaming must have both compression and decompression. and Pack.bat should be changed as follows.

ex:
Code:

arc.exe a -ep1 -r -ed -s; -w.\temp -m=mtx:c64m:t4:precomp+srep _Packed0\Data1.bf "Pack1\*"

change to

arc.exe a -ep1 -r -ed -s; -w.\temp -m=precompx:c64m:t4:precomp+srep _Packed0\Data1.bf "Pack1\*"


Code:

arc.exe a -ep1 -r -ed -s; -w.\temp -m=mtx:c64m:t4:rz _Packed0\Data1.bf "Pack1\*"

change to

arc.exe a -ep1 -r -ed -s; -w.\temp -m=rzx:c64m:t4:rz _Packed0\Data1.bf "Pack1\*"


dixen 16-07-2020 22:10

Hmm..In my pack.bat

Quote:

Compressing 2 files, 178,957,280 bytes
Compressing road_beach_tracks_45_3_3.dds
0%cls-mtx
Unknown compression method: rz
0%

Compressing road_concrete_stripes_new_3_2.dds
Compressed 2 files, 178,957,280 => 40 bytes. Ratio 0.00%
Compression time: cpu 0.20 sec/real 8.28 sec = 2%. Speed 21.62 mB/s
All OK
rename cls not help
In .bat from topic - all work

Masquerade 16-07-2020 23:13

Quote:

Originally Posted by dixen (Post 486851)
Hmm..In my pack.bat

rename cls not help
In .bat from topic - all work

This happens for me too, the bat has to be executed from the same folder as arc.exe + cls-mtx.dll otherwise you get the unknown method error.

BLACKFIRE69 17-07-2020 00:09

cls-mtx explanation
 
guys, arc.exe and cls-mtx.dll must be in the same folder. it's not from me, it's from the FreeArc. :rolleyes:

BLACKFIRE69 17-07-2020 00:36

3 Attachment(s)
Quote:

Originally Posted by dixen (Post 486851)
Hmm..In my pack.bat

rename cls not help
In .bat from topic - all work

@dixen, no you can rename it and, just rename only the cls-mtx.dll file. don't put it in another folder.

Masquerade 18-07-2020 01:23

Quote:

Originally Posted by BLACKFIRE69 (Post 486853)
guys, arc.exe and cls-mtx.dll must be in the same folder. it's not from me, it's from the FreeArc. :rolleyes:

Yes, I already know this.

I have it this way, let me show an example:

Code:

Folder
---------> Binaries
|                    - - - - - - - - ->Arc.exe
|                    - - - - - - - - ->Arc.ini
|                    - - - - - - - - ->cls-mtx.dll
|                    - - - - - - - - ->rz.exe
|                    - - - - - - - - ->Pack.bat
|
----------> Alt
                - - - - - - - - - ->Pack2.bat

Now, Pack2.bat is set to run arc.exe inside the binaries folder:

Code:

@echo off
..\Binaries\Arc a -wTemp -mmtx:c64m:t16:rz (as well as the input output files)

But if we run this, we get uknown method error from mtx.

If we run pack.bat inside the binaries folder, it runs normally. Arc.ini is written correctly. Other cls based compressors like bpk work just fine.


All times are GMT -7. The time now is 15:20.

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