FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Precomp+Reflate+Srep+LZMA (https://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"

RamiroCruzo 24-08-2015 21:11

Hi Mr. Gozarck, Can you please create a Precomp only one too....For expanding files....... :D

Thanks in advance.................

I know you dislike precomp but please its essential mi hermano............ :)

ffmla 24-08-2015 23:01

Thanks for your reply
 
Hello Bro
I'll check it out. Once again thanks

gozarck 25-08-2015 10:26

3 Attachment(s)
Quote:

Originally Posted by RamiroCruzo (Post 442809)
Hi Mr. Gozarck, Can you please create a Precomp only one too....For expanding files....... :D

Thanks in advance.................

I know you dislike precomp but please its essential mi hermano............ :)

Hello RamiroCruzo i dontīt like precomp but everyone use it and i have a lot info about it.
---EDIT
added test files.You will see the diference.
folder=21.5 mb
precomp file=21.5 mb
reflate file=201 mb

RamiroCruzo 25-08-2015 22:23

Quote:

Originally Posted by gozarck (Post 442821)
Hello RamiroCruzo i dontīt like precomp but everyone use it and i have a lot info about it.
---EDIT
added test files.You will see the diference.
folder=21.5 mb
precomp file=21.5 mb
reflate file=201 mb

Gracias Mr. Gozarck...Its just that I needed that script [For .pcf files] too otherwise there's no match for reflate.........

RamiroCruzo 26-08-2015 20:30

Hi Mr. Gozarck, Can you tell me the difference b/w srep & srep64 also b/w lzma & lzma64?????

Are they same or different?????

ffmla 27-08-2015 02:06

help needed
 
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. {i am using Blackbox Script by Kurutucu }

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;


Thanks for reply,

[ Bro i am using reflate only by gozarck
ie.
Reflatepack output is 1.refl8 file

then compress the entire game folder with srep+arc.{overall o/p=dat_00.bin file} ]
==>compression section ok.

[i am using inno installer that extract dat_00.bin to 1.refl8 file.{while installing} =>in the destination folder i've .refl8 file

i need setup.exe can extract the dat_00.bin to game source files { i don't need .refl8 file}]
==>inno extraction section problem


i am follow the tutorial by goarcz but in the script section{Run: .bat execution fails{blinks}}.

if anyone (understand) help.


Details:
I may understand in your Run section in the tutorial
[Run]
;reflate bat file
FileName: "{app}\BundlePC\ReflateUnpack.bat"; that extract the reflate stream in to original file.{ in my case it doesn't works}

I Need:

inno script that extract the reflate+srep+arc compressed file{.bin} .

Thanks in advance.

Bilawal 28-08-2015 00:45

1 Attachment(s)
As my first project, with the help Of RAZOR, I made Interface for reflate precompression by GOZARCK. I hope everyone likes it.

RamiroCruzo 28-08-2015 00:53

This is heavenly Mr. Gozarck..... 300MB to 6.3GB...........Awesome mi amigo.................http://s16.postimg.org/5e0gwrubp/Screenshot_3.png

gozarck 28-08-2015 16:04

2 Attachment(s)
HI RamiroCruzo

MD5Check
Check the integrity of the files extracted with reflate.
and for make ours repacks without errors.
-----------------------------------------------------------
HI ffmla

im so sorry my friend i cant anderstand you.
-----------------------------------------------------------
HI Bilawal

Very nice Bilawal (you are in the delphi's path, good)
-----------------------------------------------------------

RamiroCruzo 28-08-2015 19:07

Everything is fine Mr. Gozarck..... Used MD5 integrity check too.......

RamiroCruzo 28-08-2015 19:38

Can you tell me how to add fazip integration in Inno Scripts Mr. Gozarck......

RamiroCruzo 04-09-2015 05:48

Mr. Gozarck........There is an error in reflate_c.cmd, in single-threaded mode does not check the minimum size of unit ..............I corrected it............

reflate_c.cmd - 6 KB

ChronoCross 05-09-2015 20:34

Who use single thread option? LOL

RamiroCruzo 06-09-2015 01:02

Quote:

Originally Posted by ChronoCross (Post 443050)
Who use single thread option? LOL

I use.... Sometimes while playing games ;)

Well its called perfection mate..........

Quick-Sighted 08-09-2015 03:25

Plagiarism
 
Quote:

Originally Posted by RamiroCruzo (Post 442997)
Mr. Gozarck........There is an error in reflate_c.cmd, in single-threaded mode does not check the minimum size of unit ..............I corrected it............

reflate_c.cmd - 6 KB

Mr. RamiroCruzo, outrageous to assign the work of others yourself. :mad: Error found and fixed a completely different person. The source is here. http://krinkels.org/threads/reflate.2750/#post-24886

DarkSoul19 08-09-2015 04:21

Nice share Gorack, I just tested on The Witcher 3 and compressed to 20.3 gig Very happy
Plus i just love bat scripts, i was thinking of puting up my Ascii Animation script, nice for people to watch as game instals

RamiroCruzo 09-09-2015 00:54

Quote:

Originally Posted by Quick-Sighted (Post 443087)
Mr. RamiroCruzo, outrageous to assign the work of others yourself. :mad: Error found and fixed a completely different person. The source is here. http://krinkels.org/threads/reflate.2750/#post-24886

Mate.... I already corrected it before posting to Krinkels.... Just kept it to post as v2.1 ;)

Its not always necessary to take credits mate.... Just helping people is important..........

Grumpy 09-09-2015 02:16

@RamiroCruzo

You should always credit those who actually do the work and not take credit for something you clearly did not do. :(

You have been caught out at least man up and credit the rightful person.
I really have no time for those trying to take credit for others work.


@Quick-Sighted

Thankyou for bringing this to our attention, I think its now fair to say 'RamiroCruzo' has lost any credibility here, that's if he ever had any. ;)

RamiroCruzo 09-09-2015 02:25

Quote:

Originally Posted by Grumpy (Post 443105)
@RamiroCruzo

You should always credit those who actually do the work and not take credit for something you clearly did not do. :(

You have been caught out at least man up and credit the rightful person.
I really have no time for those trying to take credit for others work.


@Quick-Sighted

Thankyou for bringing this to our attention, I think its now fair to say 'RamiroCruzo' has lost any credibility here, that's if he ever had any. ;)

:confused: If its what you people think then sorry......Don't want any mess................. :(

Also the one posted on Krinkels doesn't delete 1.tar after process...........Mine did always........

ChronoCross 09-09-2015 07:37

Mmm toolame from krinkels .org made the code. I think it's a very advanced tester or hidden developer from encode .ru. The credits is quality here. It's not the same:ultraarc by razor12911 instead ultraarc by chronocross lol. A few years ago internet bring me here because i was searching ciuv2 by yener90 and i found a big problem here about the credits of one inno script. Any modification in the source doesn't mean you are the owner.

mikey26 10-09-2015 15:04

@RamiroCruzo (Presenting UltraARC for Inno Setup) now it the second time u have been bust making other peoples work yours and no credit was give here to Razor.i think this deserves a ban.

http://encode.ru/threads/2249-UltraA...-Setup-2-1-0-1

RamiroCruzo 11-09-2015 00:54

Quote:

Originally Posted by mikey26 (Post 443133)
@RamiroCruzo (Presenting UltraARC for Inno Setup) now it the second time u have been bust making other peoples work yours and no credit was give here to Razor.i think this deserves a ban.

http://encode.ru/threads/2249-UltraA...-Setup-2-1-0-1

Hey....Just download & Check INSTRUCTIONS.txt.....I never said it was mine........:mad:

RamiroCruzo 11-09-2015 01:00

Quote:

Originally Posted by mikey26 (Post 443133)
@RamiroCruzo (Presenting UltraARC for Inno Setup) now it the second time u have been bust making other peoples work yours and no credit was give here to Razor.i think this deserves a ban.

http://encode.ru/threads/2249-UltraA...-Setup-2-1-0-1

Also if you wanna ban me just do it but you can't blame me for what I have not done :mad::mad::mad:

mikey26 11-09-2015 03:59

first thing you do if posting on another site somebody elses work is you give credit like on this site if you are using someone elses script for conversions first thing converters do is give thx and credit to the persons work and script you are using.its all over this site in every conversion posted.

RamiroCruzo 11-09-2015 05:57

Quote:

Originally Posted by mikey26 (Post 443143)
first thing you do if posting on another site somebody elses work is you give credit like on this site if you are using someone elses script for conversions first thing converters do is give thx and credit to the persons work and script you are using.its all over this site in every conversion posted.

See it again mate.........


All times are GMT -7. The time now is 23:09.

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