Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19-07-2020, 15:38
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,222 Times in 2,312 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)
Sponsored Links
  #2  
Old 20-07-2020, 01:15
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 699
Thanks: 486
Thanked 2,603 Times in 572 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, 181 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)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:08.


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