Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 18-07-2020, 06:03
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
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

_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
Attached Images
File Type: jpg 1.jpg (13.5 KB, 227 views)
File Type: jpg 2.jpg (26.8 KB, 219 views)
File Type: jpg 3.jpg (16.5 KB, 222 views)

Last edited by BLACKFIRE69; 18-07-2020 at 06:05.
Reply With Quote
Sponsored Links
  #17  
Old 18-07-2020, 06:13
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
Ehm....

Code:
Binaries\arc.exe a -ep1 .....................
__________________
Haters gonna hate
Reply With Quote
  #18  
Old 18-07-2020, 09:26
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
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
Reply With Quote
  #19  
Old 18-07-2020, 20:05
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
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
Attached Images
File Type: jpg 1.jpg (30.5 KB, 208 views)
File Type: jpg 2.jpg (108.5 KB, 206 views)
File Type: jpg 3.jpg (90.4 KB, 197 views)
File Type: jpg 4.jpg (18.4 KB, 189 views)
Reply With Quote
The Following User Says Thank You to BLACKFIRE69 For This Useful Post:
Masquerade (19-07-2020)
  #20  
Old 18-07-2020, 21:54
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
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
Reply With Quote
The Following 6 Users Say Thank You to BLACKFIRE69 For This Useful Post:
dixen (19-07-2020), ffmla (19-07-2020), KaktoR (19-07-2020), L0v3craft (19-07-2020), Masquerade (19-07-2020), Razor12911 (19-07-2020)
  #21  
Old 19-07-2020, 15:38
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
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
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
BLACKFIRE69 (19-07-2020), L0v3craft (20-07-2020)
  #22  
Old 20-07-2020, 01:15
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Arrow Universal Accelerator - cls-mtx.dll v.2.0.0.2

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 View Post

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.
Attached Images
File Type: jpg 1.jpg (21.5 KB, 180 views)
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
dixen (20-07-2020), ffmla (20-07-2020), L0v3craft (20-07-2020), Masquerade (20-07-2020)
  #23  
Old 20-07-2020, 03:22
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 410
Thanks: 453
Thanked 444 Times in 204 Posts
dixen is on a distinguished road
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
Reply With Quote
  #24  
Old 20-07-2020, 06:00
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by dixen View Post
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\*"
Attached Images
File Type: jpg 1.jpg (42.2 KB, 173 views)
File Type: jpg 2.jpg (56.2 KB, 178 views)

Last edited by BLACKFIRE69; 20-07-2020 at 06:13.
Reply With Quote
  #25  
Old 20-07-2020, 07:11
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 410
Thanks: 453
Thanked 444 Times in 204 Posts
dixen is on a distinguished road
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)
Reply With Quote
The Following User Says Thank You to dixen For This Useful Post:
BLACKFIRE69 (20-07-2020)
  #26  
Old 21-07-2020, 22:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Talking 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
--------------------------------------------------------------------------
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
COPyCAT (23-08-2020), dixen (22-07-2020), L0v3craft (22-07-2020), Masquerade (22-07-2020)
  #27  
Old 09-09-2020, 01:07
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
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.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
shazzla (09-09-2020)
  #28  
Old 09-09-2020, 07:35
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
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
Reply With Quote
  #29  
Old 09-09-2020, 07:45
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
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

Last edited by BLACKFIRE69; 24-07-2022 at 23:25.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
dixen (10-09-2020), Gehrman (09-09-2020), Masquerade (09-09-2020)
  #30  
Old 10-09-2020, 09:18
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
@BLACKFIRE69

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



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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Universal Extractor By DLG felice2011 Conversion Tutorials 5 30-12-2018 04:16
Universal CLS Generator 78372 Conversion Tutorials 57 30-01-2018 04:04
CheatEngine Universal Game Cracker All Games 2014 sillywalks PC Games 1 01-12-2014 12:24
HELP: Universal Backup Instructions [RAW Mode] Rocha PC Games 3 30-06-2004 05:11
Universal Combat RCxxx CyKlone71 PC Games 0 03-03-2004 19:02



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


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