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 18-07-2020 06:03

3 Attachment(s)
Quote:

Originally Posted by Masquerade (Post 486886)
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.


@Masquerade,
this may work as expected :rolleyes:

_pack.bat :-

Quote:

@echo off

cd /d "Binaries"
arc.exe a -ep1 -r -ed -s; -w.\temp -m=mtx:c64m:t4:rz ..\Packed\Data5.bf "Pack5\*"

pause&exit

KaktoR 18-07-2020 06:13

Ehm....

Code:

Binaries\arc.exe a -ep1 .....................

Masquerade 18-07-2020 09:26

Quote:

Originally Posted by KaktoR (Post 486904)
Ehm....

Code:

Binaries\arc.exe a -ep1 .....................

The text in my earlier message was just an example, so I didn't inentionally leave out any args - the full command:

Code:

"..\Binaries\arc.exe" a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\Temp -m%comp% "%cd%\Out\MASQUERADE-Data_%num%.MSQ" "%cd%\In\%num%\*
If I run the bat file in the alternate folder, I still get the error:

https://anonfiles.com/pdr8I8G9od/Test_7z

Try this, open the bat file and type "00" to select the archive data, then type "mtx:c64m:t16:rz" and watch as you get the unknown method error

BLACKFIRE69 18-07-2020 20:05

4 Attachment(s)
Quote:

Originally Posted by Masquerade (Post 486909)
The text in my earlier message was just an example, so I didn't inentionally leave out any args - the full command:

Code:

"..\Binaries\arc.exe" a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\Temp -m%comp% "%cd%\Out\MASQUERADE-Data_%num%.MSQ" "%cd%\In\%num%\*
If I run the bat file in the alternate folder, I still get the error:

https://anonfiles.com/pdr8I8G9od/Test_7z

Try this, open the bat file and type "00" to select the archive data, then type "mtx:c64m:t16:rz" and watch as you get the unknown method error




Code:

@echo off

set /p num=Enter output archive name:
set/p comp= Enter Compression Method:

set "InputDir=%~dp0In"
set "OutputDir=%~dp0Out"

cd /d "C:\Users\BLACKFIRE69\Downloads\Compressed\Test\Binaries"

arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\Temp -m%comp% "%OutputDir%\MASQUERADE-Data_%num%.MSQ" "%InputDir%\%num%\*"

pause&exit


BLACKFIRE69 18-07-2020 21:54

Universal Accelerator - cls-mtx.dll v.2.0.0.1
 
New Update v.2.0.0.1


what's new,
  • Added the ability to select a number of threads as a percentage.


Compression: Pack.bat

Quote:

arc.exe a -ep1 -r -ed -s; -w.\temp -m=mtx:c64m:t8:precomp Packed\Data0.bf "Pack\*"

or

arc.exe a -ep1 -r -ed -s; -w.\temp -m=mtx:c64m:t100p:precomp Packed\Data0.bf "Pack\*"

Decompression: cls.ini

Quote:

[mtx]
Threads=4

or

[mtx]
Threads=50p

Razor12911 19-07-2020 15:38

Quote:

Originally Posted by BLACKFIRE69 (Post 486918)
Code:

@echo off

set /p num=Enter output archive name:
set/p comp= Enter Compression Method:

set "InputDir=%~dp0In"
set "OutputDir=%~dp0Out"

cd /d "C:\Users\BLACKFIRE69\Downloads\Compressed\Test\Binaries"

arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\Temp -m%comp% "%OutputDir%\MASQUERADE-Data_%num%.MSQ" "%InputDir%\%num%\*"

pause&exit


I think you made cls without considering that Current directory can change, simple fix is the usage of SetCurrentDir function when your cls launches like this

SetCurrentDir(ExtractFilePath(GetModuleName));

where GetModuleName is
Code:

function GetModuleName: string;
var
  szFileName: array [0 .. MAX_PATH] of char;
begin
  FillChar(szFileName, sizeof(szFileName), #0);
  GetModuleFileName(hInstance, szFileName, MAX_PATH);
  Result := szFileName;
end;

A better fix is directly execute every single exe file with full paths and set the work directory too

BLACKFIRE69 20-07-2020 01:15

Universal Accelerator - cls-mtx.dll v.2.0.0.2
 
1 Attachment(s)
New Update v.2.0.0.2


what's new,
  • Fixed for current directory.
  • Now temporary folder name corresponds to the DLL name. (cls-mpzx.dll --> cls-mpzx_tmp)

Thanks to @Razor12911 , @Masquerade.



Quote:

Originally Posted by Masquerade (Post 486886)

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.


Now it is fixed. :D

dixen 20-07-2020 03:22

Well....Add fixed cls-mtx and..

Quote:

FreeArc 0.67 (September 13 2014) creating archive: ..\Packed\Data0.bf
WARNING: no files, erasing empty archive
There were 1 warning(s)
delete cls-mtx.dll
Quote:

ALL OK

BLACKFIRE69 20-07-2020 06:00

2 Attachment(s)
Quote:

Originally Posted by dixen (Post 486950)
Well....Add fixed cls-mtx and..

If there is no "Pack0" folder, this will happen.

Bin\arc.exe a -ep1 -r -ed -s; -w.\temp -m=mtx:c64m:t8:mpz ..\Packed\Data0.bf "Pack0\*"

FreeArc shows an error (warning: no files) if there is no existing folder. so try to change the input.

for my example (v.2.0.0.2), Create a folder named "Pack0" next to the "Bin" folder. Add your files there. and change your input in Pack.bat "Pack0\*" to "..\Pack0\*"

dixen 20-07-2020 07:11

BLACKFIRE69
That's ok))
Quote:

PackEXE\arc.exe a -s; -ep1 -di -i2 -r -ed -w.\Temp -msrep+mtx:c64m:t4:rz K:\DataRZ.dxn ..\PackedData\*.*
And all fine)
Thx)

BLACKFIRE69 21-07-2020 22:11

Universal Accelerator - cls-mtx.dll v.2.0.0.3
 
New Update - cls-mtx.dll v.2.0.0.3


Changes:

✪ Improved the processing speed.
-- some implementations has been changed.

✪ Dll file can be renamed to a another name.
-- cls-mtx.dll --> cls-rzx.dll.

✪ The new update allows tools to be executed from a sub-folder.

Quote:

before
...
packcmd = {compressor} -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
...

now
...
packcmd = Resources\Precomp\{compressor} -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
...


✪ Users can use a custom configuration file instead of "arc.ini"
-- If you use a custom configuration file (config0.ini) for compression / decompression commands instead of "arc.ini", the new update will allow you to define that file as the default config file.

-- to define a new config file, (check the example in .rar file)

Quote:

step1:
Create an "ini" file and name it the same as the "dll" file name.
(cls-mtx.dll --> cls-mtx.ini), (cls-rzx.dll --> cls-rzx.ini).

step2:
Add the following section to it.

--------------------------------------------------------------------------
; if dll file is cls-mtx.dll then
[mtx]
cfgFile=config0.ini

--------------------------------------------------------------------------
; if dll file is cls-rzx.dll then
[rzx]
cfgFile=config0.ini
--------------------------------------------------------------------------

✪ The section name of "Cls.ini" should be the same as the file name "dll".

(check the example in .rar file)

Quote:

--------------------------------------------------------------------------
; if dll file is cls-mtx.dll then section name in the cls.ini should be as the same.
[mtx]
Threads=50p

--------------------------------------------------------------------------
; if dll file is cls-rzx.dll then section name in the cls.ini should be as the same.
[rzx]
Threads=4
--------------------------------------------------------------------------

Masquerade 09-09-2020 01:07

Hello BLACKFIRE69, a suggestion for your tool, the ability to change temp path?

e.g.

CLS.INI:

Code:

[mtx]
Threads=100p
Temppath=<insert>

That way in inno setup we can run a line:

Code:

SetIniString('mtx', 'TempPath', ExpandConstant('{app}\'), ExpandConstant('{tmp}\CLS.ini'));
This way the temp path can be set to the actual unpack folder, instead of the {tmp} folder like how it is currently. This is a helpful feature since people may not have much space on their primary system drive, or do not want their system drive to be used during an install.

BLACKFIRE69 09-09-2020 07:35

Quote:

Originally Posted by Masquerade (Post 487830)
Hello BLACKFIRE69, a suggestion for your tool, the ability to change temp path?

e.g.

CLS.INI:

Code:

[mtx]
Threads=100p
Temppath=<insert>

That way in inno setup we can run a line:

Code:

SetIniString('mtx', 'TempPath', ExpandConstant('{app}\'), ExpandConstant('{tmp}\CLS.ini'));
This way the temp path can be set to the actual unpack folder, instead of the {tmp} folder like how it is currently. This is a helpful feature since people may not have much space on their primary system drive, or do not want their system drive to be used during an install.

@Masquerade, i can do that ;)

BLACKFIRE69 09-09-2020 07:45

New Update - cls-mtx.dll v.2.0.0.4
 
New Update - cls-mtx.dll v.2.0.0.4


Changes:

✪ Dll file can be renamed to a another name.
-- cls-mtx.dll --> cls-rzx.dll.

✪ The mtx allows tools to be executed from a sub-folder.

Quote:

before
...
packcmd = {compressor} -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
...

now
...
packcmd = Resources\Precomp\{compressor} -cn -intense0 -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp
...


✪ Users can use a custom configuration file instead of "arc.ini"
-- If you use a custom configuration file (config0.ini) for compression / decompression commands instead of "arc.ini", the new update will allow you to define that file as the default config file.

-- to define a new config file, (check the example in .rar file)

Quote:

step1:
Create an "ini" file and name it the same as the "dll" file name.
(cls-mtx.dll --> cls-mtx.ini), (cls-rzx.dll --> cls-rzx.ini).

step2:
Add the following section to it.

--------------------------------------------------------------------------
; if dll file is cls-mtx.dll then
[mtx]
cfgFile=config0.ini

--------------------------------------------------------------------------
; if dll file is cls-rzx.dll then
[rzx]
cfgFile=config0.ini
--------------------------------------------------------------------------

✪ The section name of "Cls.ini" should be the same as the file name "dll".

(check the example in .rar file)

Quote:

--------------------------------------------------------------------------
; if dll file is cls-mtx.dll then section name in the cls.ini should be as the same.
[mtx]
Threads=50p

--------------------------------------------------------------------------
; if dll file is cls-rzx.dll then section name in the cls.ini should be as the same.
[rzx]
Threads=4
--------------------------------------------------------------------------

✪ Now it is possible to change TmpPath in decompression using cls.ini.

Code:

cls.ini

[mtx]
Threads=4
TmpPath=D:\Games\TmpTest


Masquerade 10-09-2020 09:18

@BLACKFIRE69

Thanks for the addition of the tool, however there has not been a change as highlighted in the below image.

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

In the left panel we see my Temp Folder where the CLS-MTX unpack folder.

In CLS.ini we see that the temp path is in my install path, G:\Games\Minecraft Dungeons

There is no unpack folder in the G:\Games\Minecraft Dungeons Folder


All times are GMT -7. The time now is 05:11.

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