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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2012, 14:18
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 344
Thanks: 49
Thanked 271 Times in 91 Posts
BAMsE is on a distinguished road
Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
means definition of compression method

Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
means compressing with precomp (with parameters defined in arc.ini under [External compressor:precomp] section)

Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
means additional parameter for precomp (which is not defined in arc.ini), in this case it's -v parameter

Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
means compressing with srep (with parameters defined in arc.ini under [External compressor:srep] section), also here you can add parameters separated by ":"

Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
means compression with lzma

Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
means additional parameters for lzma, in this case -a1 -mfbt4 -d256m -fb128 -mc1000 -lc8


So as you can see it's really strong compression

Last edited by BAMsE; 04-08-2012 at 14:22.
Sponsored Links
  #2  
Old 04-08-2012, 15:06
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Hum.. guys i'm trying to use the latest version with arc commandline but i've some problem!
I used this arc.ini
Code:
[External compressor:srep]
header = 0
packcmd   = srep {options} -m3f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:precomp]
header = 0
packcmd   = precomp -intense0 -c- {options} -o$$arcpackedfile$$.tmp  $$arcdatafile$$.tmp
unpackcmd = precomp -o$$arcdatafile$$.tmp -r $$arcpackedfile$$.tmp
i put it on the root of Setup.cab (as in the example yener90 has given us).

Then i edit Setup.ini adding the precomp version used for compression (PrecompVer=0.42) and adding the code for Extractsetting, like this
Quote:
[ExtractSettings]
FreeArcFile1={src}\Setup-1b.arc;DestDir:{app};Disk:1;PrecSrep:0;Lang:it
FreeArcFile2={src}\Setup-1c.arc;DestDir:{app};Disk:1;PrecSrep:0;Lang:it
FreeArcFile3={src}\Setup-1d.arc;DestDir:{app};Disk:1;PrecSrep:0;Lang:it
FreeArcFile4={src}\Setup-1e.arc;DestDir:{app};Disk:1;PrecSrep:0;Lang:it
(i have doubts on PrecSrep value but i tested with 0 and with 1 and there are no differences!)

I have four archives compressed in this way (each line is an archive):
Code:
arc a -r -w.\ Setup-1b.arc -msrep+lzma:a1:d256mb:mfbt4:fb128:mc1000:lc8 "folder1\*"
arc a -ep1 -r -w.\ Setup-1c.arc -mprecomp:zl11,68:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "file1.test" "file2.test" "file3.test"
arc a -r -w.\ Setup-1d.arc -msrep+lzma:a1:d256mb:mfbt4:fb128:mc1000:lc8 "folder2\*" "file4.test"
arc a -ep1 -r -w.\ Setup-1e.arc -msrep+lzma:a1:d256mb:mfbt4:fb128:mc1000:lc8 "file5.test"
During installation I always get an error (about decompression method) and I can't extract any archive.

edit: i thought the problem was my arc.ini (the "unpackcmd" command) but doing manual decompression with command line, arc works fine!
(for example, doing "arc x Setup-1c.arc" the extraction works fine. Obviously arc.exe, arc.ini, srep and precomp (and all dll needed) are in the same folder!)

What am I doing wrong?
Thanks

Last edited by Onizuka87k; 04-08-2012 at 16:57.
  #3  
Old 05-08-2012, 13:15
lupetto77's Avatar
lupetto77 lupetto77 is offline
Registered User
 
Join Date: Nov 2008
Location: Italia
Posts: 87
Thanks: 1
Thanked 2 Times in 2 Posts
lupetto77 is on a distinguished road
Bamse I did as you said ...
No one folder I put the files taken from the installation of arc.exe freeArc \ bin \ arc.exe (0.67), taken from the

folder setup arc.ini Yener, precomp 042 with its 3.0 SREP file and then I created the file . bat with written inside

echo off
cls
set choice1=
echo.
set /p choice1=Please type game folder path (e.g. c:\program files (x86)\BioWare\Mass Effect 3):
echo.
echo Creating archive files, please wait...
arc a -ep1 -r -w.\ .\Disk1\Data1.bin -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8 "%choice1%\Binaries\*"
if ERRORLEVEL 1 goto arcfail
echo.All done.
pause
goto EOF
:arcfail
echo.
echo.WARNING: FreeArc returns an error, please retry...
pause
:EOF

if using your parameter -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8 gives me this error

[IMG]

http://s4.imagestime.com/out.php/i754574_Immagine.jpg[/IMG]


I tried precomp.exe 042 04 038 but 'equal

could you pass the working files that you use please?

Last edited by Joe Forster/STA; 06-08-2012 at 01:45.
  #4  
Old 05-08-2012, 14:21
Kurutucu Kurutucu is offline
Registered User
 
Join Date: Aug 2012
Location: Somewhere in the world
Posts: 159
Thanks: 78
Thanked 209 Times in 48 Posts
Kurutucu is on a distinguished road
Use this version of precomp. Version: 0.4.2

Last edited by Kurutucu; 04-06-2013 at 10:25.
  #5  
Old 05-08-2012, 14:45
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Quote:
Originally Posted by lupetto77 View Post
Bamse I did as you said ...
No one folder I put the files taken from the installation of arc.exe freeArc \ bin \ arc.exe (0.67), taken from the

folder setup arc.ini Yener, precomp 042 with its 3.0 SREP file and then I created the file . bat with written inside

...

if using your parameter -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:l c8 gives me this error

...
Did you write it like as you pasted here? If yes then delete the space between "l" and "c". The line of parameters is valid.
  #6  
Old 05-08-2012, 15:34
lupetto77's Avatar
lupetto77 lupetto77 is offline
Registered User
 
Join Date: Nov 2008
Location: Italia
Posts: 87
Thanks: 1
Thanked 2 Times in 2 Posts
lupetto77 is on a distinguished road
Quote:
Originally Posted by Onizuka87k View Post
Did you write it like as you pasted here? If yes then delete the space between "l" and "c". The line of parameters is valid.
I know because I put in this
Code:
-mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
do not know why I added my own ...
  #7  
Old 07-08-2012, 15:43
lupetto77's Avatar
lupetto77 lupetto77 is offline
Registered User
 
Join Date: Nov 2008
Location: Italia
Posts: 87
Thanks: 1
Thanked 2 Times in 2 Posts
lupetto77 is on a distinguished road
Bamse I tried the command lines that you posted, it compiles but when I go to install I get this error ...



help on how I can solve this problem?

Last edited by Joe Forster/STA; 08-08-2012 at 11:28.
  #8  
Old 07-08-2012, 16:09
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Quote:
Originally Posted by lupetto77 View Post
Bamse I tried the command lines that you posted, it compiles but when I go to install I get this error ...



help on how I can solve this problem?
It's the same bug i had with my personal installer of Prototype2.
I don't know if it's the right way but i solved excluding (by comment) CLS-precomp.dll:
Code:
;Source: include\CLS-precomp.dll; DestDir: {tmp}; Flags: dontcopy
and
Code:
//ExtractTemporaryFile('CLS-precomp.dll');
My lines of code will be different from yours but these points should be respectively close to the lines 70 and 4930.

ps: Since you use the arc command-line, do you edit the line about precomp version on Setup.ini like this?
Code:
PrecompVer=inside
Try this way!
  #9  
Old 07-08-2012, 16:54
lupetto77's Avatar
lupetto77 lupetto77 is offline
Registered User
 
Join Date: Nov 2008
Location: Italia
Posts: 87
Thanks: 1
Thanked 2 Times in 2 Posts
lupetto77 is on a distinguished road
Talking

Thank you commenting the two lines as you said you now works great

Last edited by Joe Forster/STA; 08-08-2012 at 11:28.
  #10  
Old 07-08-2012, 17:16
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Quote:
Originally Posted by lupetto77 View Post
Thank you commenting the two lines as you said you now works great
Np but this is a temporary "workaround" until Yener90 will fix it!
The "side effect" using this way is you won't have any progress in the installer progress-bar during decompression of precomp files (and for big files the setup might seems freezed while it's really working!)
  #11  
Old 08-08-2012, 16:09
lupetto77's Avatar
lupetto77 lupetto77 is offline
Registered User
 
Join Date: Nov 2008
Location: Italia
Posts: 87
Thanks: 1
Thanked 2 Times in 2 Posts
lupetto77 is on a distinguished road
Since I'm a beginner with these command lines I wanted to ask you a few things:

1.quale between these compresses more
Code:
-mprecomp:zl68:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
-mprecomp:zl68:d0+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
-mprecomp:zl11,68:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
-mprecomp:zl98:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
2.With this code how do I compress multiple folders?
I have a folder such as Mass Effect 3 and inside there are 3 more folders 1 - 2 - 3 as I pack them in single file Data2.bin

code:

Code:
echo off
cls
set choice1=
echo.
set /p choice1=Please type game folder path (e.g. c:\program files (x86)\BioWare\Mass Effect 3):
echo.
echo Creating archive files, please wait...
arc a -ep1 -r -w.\ .\Disk1\Data1.bin -mprecomp:zl68:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Binaries\*"
if ERRORLEVEL 1 goto arcfail
echo.All done.
pause
goto EOF
:arcfail
echo.
echo.WARNING: FreeArc returns an error, please retry... 
pause
:EOF
  #12  
Old 08-08-2012, 21:30
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Quote:
Originally Posted by lupetto77 View Post
Since I'm a beginner with these command lines I wanted to ask you a few things:

1.quale between these compresses more

2.With this code how do I compress multiple folders?
I have a folder such as Mass Effect 3 and inside there are 3 more folders 1 - 2 - 3 as I pack them in single file Data2.bin
I'm not a guru but:

1) It depends on the type of data you are compressing. The command-line number 3 might does a great job but not always. Anyway you can run precomp without any parameters and it might suggest you the best parameters! According to the guide of precomp:
Quote:
-zl: (Comfort: zLib_Levels)

After precompressing a file with Precomp, it tells you how to use this parameter to speed up the precompression the next time you precompress this file. These are one or more two-digit numbers. The first digit is the compression level, the second digit is the memory settings which are tried on this file. However, using this on a different file could lead to Precomp missing some compressed parts of it.
2) Maybe this is what you looking for?
Code:
arc a -ep1 -r -w.\ .\Disk1\Data1.bin -mprecomp:zl68:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "Folder1\*" "Folder2\*" "Folder3\*"
Closed Thread

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
INNO TROUBLESHOOT - Questions Here REV0 Conversion Tutorials 1567 26-08-2026 11:04
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 50 21-10-2020 10:59
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 07:57
Help- How to extract a .bin file compressed by a code ? Adonix Conversion Tutorials 22 22-03-2015 16:02
yener90's older Inno Project Source Codes THADEADMAN2011 PC Games - CD/DVD Conversions 0 16-06-2012 04:40



All times are GMT -7. The time now is 10:31.


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