FileForums

FileForums (//fileforums.com/index.php)
-   Conversion Tutorials (//fileforums.com/forumdisplay.php?f=55)
-   -   Precomp+Reflate+Srep+LZMA (//fileforums.com/showthread.php?t=96138)

gozarck 17-07-2014 14:05

Precomp+Reflate+Srep+LZMA
 
1 Attachment(s)
Reflate Method of Compression



Hello everyones
:POST
--------------------------------------------------------------------------


This is an example to compress games and install via command line.

--------------------------------------------------------------------------

precomp+reflate+srep+lzma
or
reflate+srep+lzma


--------------------------------------------------------------------------


Reflate (By Shelwein) modify to integrate precomp+srep+lzma (by gozarck)

Reflate = (raw2hif.exe + rawdet.exe +rawres.exe):

Reflate, is not a compiled program, but is a
compression method by using the command line in combination
with three programs (raw2hif.exe + rawdet.exe +rawres.exe) .

Acts like precomp, inflating preparing them to compress files with Srep + lzma

but if you want more compression you must use this form precomp+reflate+Srep+LZMA

Precomp inflate the files then reflate makes more bigger, the SREP will compress improve some bytes and LZMA finish the job.

--------------------------------------------------------------------------


all you need to pack games with this methods.

Download => Attachment 9501


--------------------------------------------------------------------------


PD:

seen in some post eh this compression method

Code:

arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r  -msrep+delta+lzma:a1:mfbt4:d200m:fb128:mc10000:lc8
and prompt some users say
ERROR: can't allocate memory required for (de)compression

and the compression stop

the problem is this part of command "d200m"

this option is the dictionary size, so if you use
"d200m" you need 2100MB of ram

How to know?, is simple.
multiply 200*10.5 = 2100mb of ram
if you donīt have enough memory change "d64m"
multiply 64*10.5 = 672mb of ram

but you can limit the use of ram to compression in this seccion of command:

arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r

change to

arc.exe a -ep1 -dses --dirs -s; -lc512 -di -i2 -r

or any number you need

-lc (limit ram to compresion)

-ld (limit ram to decompression)

arc.exe a -ep1 -dses --dirs -s; -lc512 -ld512 -di -i2 -r

--------------------------------------------------------------------------

:ENDPOST
--------------------------------------------------------------------------

.

Razor12911 18-07-2014 01:40

Nice, Really need to see the reflate because the last time I tried to make it work but it also tried not to work, So I just have to see how you did set it up.

buttignol 19-07-2014 17:42

Very good now figure out how to unpack inno setup+isdone

Hex_Code 26-11-2014 00:05

how to use it? I am new in game compressing. plz help :(

Carldric Clement 27-12-2014 18:16

Awesome Method!!
 
Nice bro!! :D

Inge 30-12-2014 12:44

Nice Idea. But theres no Script anywere what can handle reflate. Not IC, GID and CIU (last one I don't really know). Maby you should make a own Installscript for this Method too[...]

RamiroCruzo 19-08-2015 03:00

Can you please post a tutorial to work with it??????

gozarck 19-08-2015 22:18

1 Attachment(s)
Hi RamiroCruzo, i dont have time to make a tutorial. but i give you reflate V2.
open with notepad++ "Reflatepack.bat" and set your path game.
the options on reflate are
reflate_c.cmd 1.tar 1.refl8 -l6 -s128 -t2
-l6 =level 1 to 9 (use 6 is stable)
-t2 =cores of your cpu so more cores reflate works more faster -t8 =8x faster
save Reflatepack.bat and run.


for unpack
set your compress file to unpack
arc x -ep1 -i1 -w. "dat_01.bin"
open ReflateUnpack.bat an set the destination folder.
set final path for example "-dpmygame\textures"
save ReflateUnpack.bat

Test reflate with light games or programs.

RamiroCruzo 20-08-2015 01:16

Quote:

Originally Posted by gozarck (Post 442688)
Hi RamiroCruzo, i dont have time to make a tutorial. but i give you reflate V2.
open with notepad++ "Reflatepack.bat" and set your path game.
the options on reflate are
reflate_c.cmd 1.tar 1.refl8 -l6 -s128 -t2
-l6 =level 1 to 9 (use 6 is stable)
-t2 =cores of your cpu so more cores reflate works more faster -t8 =8x faster
save Reflatepack.bat and run.


for unpack
set your compress file to unpack
arc x -ep1 -i1 -w. "dat_01.bin"
open ReflateUnpack.bat an set the destination folder.
set final path for example "-dpmygame\textures"
save ReflateUnpack.bat

Test reflate with light games or programs.


Gracias Mr. Gozarck.................. :)

Just one more doubt, is -l9 stable {Without errors}

gozarck 20-08-2015 14:47

4 Attachment(s)
This is Reflate Only V2.

only compress with reflate and then you can use any compatible compression for innosetup.

this is the code for inno to unpack reflate in bat
Code:

[Run]
;reflate bat file
FileName: "{app}\BundlePC\ReflateUnpack.bat"; Description: "ReflateStuff"; Flags: nowait postinstall  skipifsilent;


RamiroCruzo 20-08-2015 19:46

Thanks to you mi amigo....... I compressed GTA 5 in 29GB

ffmla 21-08-2015 01:30

Quote:

Originally Posted by RamiroCruzo (Post 442711)
Thanks to you mi amigo....... I compressed GTA 5 in 29GB

Greetings,
can you share the way to compress the bulky files.
Since I am a beginner.please make the steps.
Thankyou..so much.

ffmla 24-08-2015 04:42

help regard reflate{reflate+srep+arc}
 
Quote:

Originally Posted by gozarck (Post 442704)
This is Reflate Only V2.

only compress with reflate and then you can use any compatible compression for innosetup.

this is the code for inno to unpack reflate in bat
Code:

[Run]
;reflate bat file
FileName: "{app}\BundlePC\ReflateUnpack.bat"; Description: "ReflateStuff"; Flags: nowait postinstall  skipifsilent;



i've do the compressed file{.bin} and installer{using inno unicode} but after installing ReflateUnpack.bat not works.it{cmd} blinks and exits and not to extract the .refl8 file.[i hve put unpacking file ialong with .refl8 file]
how to fix it.:confused:
Thanks in advance.

Problem solved.
I've copy the arc.exe in reflatepack folder to unpack folder & delete the unnecessary unarc.exe file.

Another help needed :
But this reflate extraction done in post installation section.(cmd panal extraction)
How to combine this process also come with main installation.

RamiroCruzo 24-08-2015 07:27

Hi ffmla, Replace this line

Quote:

arc x -ep1 -i1 -w. -dp. "1.tar"
With this

Quote:

arc x -ep1 -i1 -w. -dp. "1.refl8"

gozarck 24-08-2015 18:34

MoreInfo:
Quote:

%NUMBER_OF_PROCESSORS%
its native window variable how many cores have your cpu.
this variable its allready in reflate command. its -t0
-t0=reflate will use all the cpu cores for the job.
Quote:

reflate_c.cmd 1.tar 1.refl8 -l6 -s128 -t0
You can use this variable in freearc command too
example
Code:

arc.exe a -s12g --cache1024  -maxs -dm0 -di+$ -ep1 -r -ed -i0 -lc- -ld1024 -mt%NUMBER_OF_PROCESSORS% -w./ dat_01.bin -msrep+exe+delta+lzma:1024m:mfbt4:250m:mc1000 "1.refl8"


All times are GMT -7. The time now is 13:50.

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