FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Tutorial using CI 8.0.0 (https://fileforums.com/showthread.php?t=92805)

BAMsE 21-10-2012 14:37

1 Attachment(s)
Wait... you prepared cab with such commandline
Code:

arc a -ep1 -ed -r -w.\ Data\Data1.cab -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "PATH TO BE COMPRESSED"
and use
Code:

[InstallOptions]
PrecompVer=0.42

in setup.ini? It can't work! It's for old method data.arc ---> data.pcf ---> data.srep ---> data.cab
For one-step commandline compression you should use
Code:

[InstallOptions]
PrecompVer=inside

Any errors are result of absence/incorrect versions of files.

Here is a package containing all necessary files.
1. extract it anywhere
2. drag'n'drop the folder which content you want to compress to #compress.bat (use some small for testing)
3. put in your setup.ini
Code:

[InstallOptions]
PrecompVer=inside

4. don't use "PrecSrep:1" under [ExtractSettings]
5. pack arc.ini from this package to the root of your setup.cab

kassane 22-10-2012 08:14

The two methods, not out of 10.1%. but previously, I discovered that the problem of compression does not work, arc.exe was corrupted!

Only 10.1%:
http://imageshack.us/scaled/landing/821/semttuloisb.jpg
But unfortunately the problem this compression:
Code:

arc a -ep1 -ed -r -w.\ Data\Data1.cab -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "PATH TO BE COMPRESSED"
At the end data1.cab not appear, some completely...

Newbie 22-10-2012 10:07

What does this mean:
Could not get file size of file temp000000001.dat_

Why do I get that.

Any reason for that.

What I can see is that I get that message NOT at the same place of compression.

Sorry, don't know how to explain.

Bat code:
echo off
:start
cls
set choice1=
set arc=
set retry=
echo.
set /p choice1=Please type game folder path (e.g. c:\Game):
if "%choice1%"=="" goto start
echo.
echo Creating archive files, please wait...
:Data1
set arc=Data1.bin
arc a -ep1 -r -w.\ .\Disk1\%arc% -mprecomp:zl98:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc 1000:lc8 "%choice1%\Data\*"
if ERRORLEVEL 1 goto arcfail
echo.All done.
pause
goto EOF
:arcfail
echo.
echo.WARNING: FreeArc returns an error in archive %arc%!
set /p retry=Do you wish to retry [Y/N]:
if /I "%retry%"=="Y" goto %arc:~0,5%
pause
:EOF


Thank You

EDIT:

Forgot to mention, it is while using Packjpg.dll compression.

BAMsE 22-10-2012 12:41

kassane I really don't understand what you're saying :o
Did you got any error massage?
And I've told you to take some small piece of data for testing, not few GB :eek:

Newbie 22-10-2012 12:52

EDIT: Well, it looks like it all works fine.

kassane 22-10-2012 13:24

Quote:

Originally Posted by BAMsE (Post 408624)
kassane I really don't understand what you're saying :o
Did you got any error massage?
And I've told you to take some small piece of data for testing, not few GB :eek:

After ending the compression, the file Data.cab disappears ... understand?
You can create a batch code of arc+precomp038+srep+arc?

kumarvivek1990 23-10-2012 06:44

How can i convert Data1.arc to Data1.cab using freearc?

BAMsE 23-10-2012 10:28

kassane well... dozens of people haven't problem with this set of compressors, like with this commandline... so draw a conclusion

First:
Quote:

Originally Posted by kassane (Post 408585)
The two methods, not out of 10.1%. but previously, I discovered that the problem of compression does not work, arc.exe was corrupted!

Only 10.1%:
http://imageshack.us/scaled/landing/821/semttuloisb.jpg

It's not out of 10.1% because you are compressing a lot of GB of data. 10.1% is arc.exe progress, but look at your screen - there is 57.14% of precomp progress and the process still goes on!
I say it once again and last time: use a few MB of data for testing, don't compress whole game, because you're wasting time. Moreover not all files are eligible for precomping

Second:
Quote:

Originally Posted by kassane (Post 408629)
After ending the compression, the file Data.cab disappears ... understand?

Did you use my set of compressors and my commandline when your archive vanished? Did you look for it in both folders (with compressed data and with compressors)? Did you got any errors? Process goes to the end with ErrorLevel=0?

kassane 23-10-2012 12:03

BAMsE, I noticed better and saw this problem:
http://imageshack.us/a/img805/8982/semttulojaa.jpg
And also appears Errorlevel=2...
What do I do?

BAMsE 23-10-2012 12:18

ErrorLevel=2 means there is no streams that could be decompressed. Simplifying - there's no benefit using precomp.

But about access problem... hmmm it's first time I see this, I have no idea what's happened. Seems the tmp file is still on hdd (if not the ErrorLevel=4), so maybe it was inspected by your AV at this time :confused:

Did you found your output archive? Did you test it in CI?

kassane 23-10-2012 12:31

The problem is that with this error the cab file is not created, so I can not test it on CI!
I did some testing here on my computer, and realized that the precomp038 functioned normally, only precomp042 that give this error ... Then I try to test the precomp043 if error or not, talk to the developer precomp!

Edit:
I tested the precomp043 and it worked, but unfortunately the CI is not adapted for this precomp...

Precomp043:
http://imageshack.us/scaled/landing/27/precomp043.jpg

Arc.ini
Code:

[External compressor:precomp]
header = 0
packcmd  = precomp -intense0 -cb {options} -o$$arcpackedfile$$.tmp  $$arcdatafile$$.tmp
unpackcmd = precomp -o$$arcdatafile$$.tmp -r $$arcpackedfile$$.tmp


BAMsE 23-10-2012 14:30

If you experienced the file access problem always at the same position you can force precomp to avoid it. Just add to your compress definition
Code:

-mprecomp:v:i169529374+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
where 169529374 is position of last found stream before the problem occurs (see your scr).

Take some JPGs and try to compress them - they're well-precomped and shouldn't cause any error. If it worked, most likely cause of the error is data type you want to compress before. As I said: not all files are eligible for precomping

BTW: use -c- parameter instead of -cb for precomp. The first leaves output file non compressed (so it can be well-srepped), second compress output with bZip2 (poorly-srepped)

Joe Forster/STA 24-10-2012 04:02

@kassane: Oh, please, not red on black, it's completely unreadable!

kassane 24-10-2012 04:24

I'm sorry, the next show with color red....

Note: BAMsE, I just use the code, "-cb" in precomp043 in version 042 "-c-".

Edit:
I have two news, one good and one bad:

Good News: The new code that you showed me, solved the problem of errorlevel = 2 / errorlevel = 0 ... The Data.cab is created. :)
Code:

-mprecomp:v:i169529374+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
Bad news: The CI does not accept, and is giving error: :(
http://imageshack.us/scaled/landing/145/semttuloumx.jpg

BAMsE 24-10-2012 12:21

kassane maybe it's silly question, because I've said it dozens of times, but... did you set PrecompVer=inside in your setup.ini?


All times are GMT -7. The time now is 04:06.

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