Log in

View Full Version : Creating a compressed.bat and uncompressed.bat for game files


red01
26-05-2013, 23:28
Hi Guys,

First of all sorry for bothering u all.

My questions down there are just for educational purpose.
I know this form does not support illegal repacking.
I am not a repack , what i m doing is just for entertainment purpose.
I just wish to learn about this compression and repacking.

During my search about game repacking, i found on a form about compressing games by freearc, precomp, srep and then creating a setup file by innosetup tool.
The sequence was like this
1. combine files together using freearc (-m0 -dm0)
2. process archive with precomp
3. process output with srep
4. compress output with arc (-mx)
5. save registry files
6.Create a batch file (.bat) that automates all extract operations.
7. generate a setup of game by using innosetup.

i am not an expert but i can do basic things with freearc, precomp, srep and innosetup.

My problem here is
1. i dont know if it is neccessary to save registry files for every game?
2. Main Problem is that BATCH FILE.
I dont know how to make a batch file to uncompressed those files in the exact sequence to insatll game back in same location?
i read many articles in this form consisting of using compressed.bat files for game compression.
i am hoping guys here will help me out about this.

Red01

Pein46
27-05-2013, 03:00
This is just an example..

Arc.exe x -y data1.arc
del data1.arc >nul
cls

srep.exe -d data1.srep
del data1.srep >nul
cls

precomp.exe -r data1.pcf
del data1.pcf >nul
cls

Arc.exe x -y data1.arc
del data1.arc >nul
cls

red01
27-05-2013, 03:08
@Pein46

thanks for your reply

do i have to put the arc.exe, precomp.exe, srep.exe or any other .dll files along with files during compression for this uncompression command?

if yes ,please Named those files.

Pein46
27-05-2013, 05:15
Yes, put arc.exe, precomp.exe, packjpg_dll.dll, zlib1.dll (based on what version you use), srep.exe..

red01
27-05-2013, 08:47
thanks again @pein46
i still have some childish questions.
do i have give the location of arc.exe and other files (which are in same folder as batch file).in batch file.?

Do i have to create autorun.inf file for batch file before creating setup by innosetup to make that bacth file during insallation without any further action?

red01
28-05-2013, 05:51
i tried the commands provided by you @pein46 separately.
one of the command is not working for me..
precomp.exe -r data1.pcf
del data1.pcf >nul
..
can u please help me about this.?

Pein46
28-05-2013, 06:36
Which precomp version you use?:confused:

if precomp v038, then maybe you can change it like this
precomp038.exe -r data1.pcf

add this line in innosetup to run setup.bat
[Run]
Filename: "{app}\setup.bat"

red01
28-05-2013, 09:14
thanks again for your kind reply @Pein46
i am using precompv04.

about autorun file..my question was
1. do i have to add this .bat along will that data.arc file(final file) before creating setup by innosetup
OR
2. first create set up by innosetup and then put this .bat file along with set.exe file (after generating setup by innosetup)..?


sir.. can u explain a bit about this setup.bat file, it make me curious.

pakrat2k2
06-06-2013, 19:22
read post #2, his example would in fact be the setup.bat that he refered to in post #7

red01
06-06-2013, 23:09
read post #2, his example would in fact be the setup.bat that he refered to in post #7

@pakrat2k2
thanks for ur reply but i short it out and now i am having a little issue..

arc x -y data.pcf.arc
CAN I REPLACE this line with the following one
arc e -y data.pcf.arc

Because this line arc x -y data.pcf.arc extract files with full directory creating another program files directory within extract folder (which is already in pf) .

is there any problem if i replace the x with e?

pakrat2k2
07-06-2013, 07:32
"creating another program files directory within extract folder "

then why when creating first arc file with zero compression are you choosing the root folder ? ONLY select the files/folders within the main folder as first step. then create srep / precomp files then finally maximum compressed arc file. the commands as they were written out would work fine.

red01
07-06-2013, 08:55
"creating another program files directory within extract folder "

then why when creating first arc file with zero compression are you choosing the root folder ? ONLY select the files/folders within the main folder as first step. then create srep / precomp files then finally maximum compressed arc file. the commands as they were written out would work fine.


i will try my process one more time to give you accurate information about your question...

anyway thanks for your reply.

red01
04-09-2013, 05:04
arc a -lc8 -ep1 -ed -r -w.\ Data\Setup-1.bin -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "C:\*"

its the part of Kurutucu compressor.
Can somebody explain those parameters to me?

pakrat2k2
04-09-2013, 14:55
goto pc games cd/dvd conversion forum read thru sticky topics there. tons of information & specific thread which has details for what your asking. read whole topic answers are there.

http://fileforums.com/showthread.php?t=93191

Kral
10-03-2019, 06:01
File Extracting Code My Code @echo off
color a
Arc.exe x -y Fsi-Data_EN.bin -dpD:"Type where to extract the data file"
del Fsi-Data_EN.bin> nul
cls
del Arc.exe> nul
cls
del EN.bat> nul
cls
If you can't Summer