FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   UltraARC for Inno Setup (Conversion Tool) (https://fileforums.com/showthread.php?t=96619)

Fabioddq 18-07-2018 11:48

Quote:

Originally Posted by Cyberavater (Post 472644)
You can change between Xtool or ztool. Just change precomp version.Attachment 22349 :)

Yes, but the option is disabled by default. :confused:

My bad... need to select precomp method first. Thanks dude

KaktoR 18-07-2018 11:48

Quote:

Originally Posted by Cyberavater (Post 472644)
You can change between Xtool or ztool. Just change precomp version.Attachment 22349 :)

But i suggest to use MASK method instead and define files. Otherwise you will "xtooling" all files inside a folder, not only the ones that get inflated, but also for example video files and such, which don't have any streams (except for flash swf's, they have zlib streams).

Cyberavater 18-07-2018 11:50

1 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 472643)
You can use it by set CDImage=1

Tho, I would like if there could be CD image selecting option in where Winrar was before. :cool:
Attachment 22350

Fabioddq 18-07-2018 11:54

Quote:

Originally Posted by KaktoR (Post 472647)
But i suggest to use MASK method instead and define files. Otherwise you will "xtooling" all files inside a folder, not only the ones that get inflated, but also for example video files and such, which don't have any streams (except for flash swf's, they have zlib streams).

Any tutorial for this? You can use Hellblade to demonstrate? Just for me show the way in the future.
I will appreciate. Thanks.

Cyberavater 18-07-2018 11:55

1 Attachment(s)
Tho, I would like if there could be CD image selecting option in where Winrar was before. :cool:
Attachment 22350

Here..

Attachment 22351

Cyberavater 18-07-2018 12:06

Quote:

Originally Posted by Fabioddq (Post 472649)
Any tutorial for this? You can use Hellblade to demonstrate? Just for me show the way in the future.
I will appreciate. Thanks.

I'm also new to this will share when I learn more.

KaktoR 18-07-2018 12:13

Quote:

Originally Posted by Fabioddq (Post 472649)
Any tutorial for this?

Here is a short tutorial for using xtool with MASK:
Open Arc.groups with notepad(++)

Search for "$xStream"

There you write
1) files by file masks (*.png, *.pak, etc.) (subfolders will be included)
2) files by their full file names (f.e. File.dat, File.png, etc.) (for this the mentioned files must be present in root folder or any folder you select with Input in UltraARC GUI)
3) full file names with paths (f.e. Folder\File.pak, Folder1\Folder2\File.pdf)
4) file masks with paths (f.e. FolderA\FolderB\FolderC\*.wav)

Personally i using a mix by 1 and 2 only. But 3 and/or 4 are possible too.

Just make sure you have no duplicants (delete them), otherwise arc will skip them

Save the file

Open Config0.inf
search for "MASK = Example", replace "Example" with
Code:

LZ3/$xstream=xZ1+srep+LZ3/$void=0/$binkpack=bpk

LZ3 is lzma:a1:mfbt4:256m:fb273:mc1000000000:lc8 (the first method is the "main method", means, all files which aren't defined in masks or disabled masks will be compressed with this)
xZ1 is xZlib
0 is zero compression (just storing, good for mp4 videos and other not compressable files)
bpk is for bik/bk2 videos

If you only need xtool, remove "/$void=0/$binkpack=bpk"
If you need some other masks too, add them and put files inside arc.groups in their respective sections. Note that between each mask there must be a "/" to seperate them.

You can also write the methods in full lenghts, example:
Code:

srep+4x4:b128mb:lzma:a1:mfbt4:64m:fb273:mc1000000:lc8/$xstream=xZLib+srep+lolz:d128mb
PS: It could be that you must add something to Arc.ini in CIU folder if you use Xtool with UltraARC (because i just have seen that UltraARC not use xprecomp anymore), otherwise you will get something like "unsuported compression method".
Just open Arc.ini in CIU and add the following to the end (or somewhere)

Code:

[External compressor:xZLib,xOodle,xLZ4,xLZO,xZSTD]
header    = 0
unpackcmd = xtool.exe d:precomp:t75p - - <stdin> <stdout>

[External compressor:xCriLayla]
header    = 0
unpackcmd = xtool.exe d:precomp:t50p - - <stdin> <stdout>


Cyberavater 18-07-2018 12:28

Quote:

Originally Posted by KaktoR (Post 472653)
Here is a short tutorial for using xtool with MASK:
Open Arc.groups with notepad(++)

Search for "$xStream"

There you write
1) files by file masks (*.png, *.pak, etc.) (subfolders will be included)
2) files by their full file names (f.e. File.dat, File.png, etc.) (for this the mentioned files must be present in root folder or any folder you select with Input in UltraARC GUI)
3) full file names with paths (f.e. Folder\File.pak, Folder1\Folder2\File.pdf)
4) file masks with paths (f.e. FolderA\FolderB\FolderC\*.wav)

Personally i using a mix by 1 and 2 only. But 3 and/or 4 are possible too.

Save the file

Open Config0.inf
search for "MASK = Example", replace "Example" with
Code:

LZ3/$xstream=xZ1+srep+LZ3/$void=0/$binkpack=bpk

LZ3 is lzma:a1:mfbt4:256m:fb273:mc1000000000:lc8 (the first method is the "main method", means, all files which aren't defined in masks or disabled masks will be compressed with this)
xZ1 is xZlib
0 is zero compression (just storing, good for mp4 videos and other not compressable files)
bpk is for bik/bk2 videos

If you only need xtool, remove "/$void=0/$binkpack=bpk"
If you need some other masks too, add them and put files inside arc.groups in their respective sections. Note that between each mask there must be a "/" to seperate them.

You can also write the methods in full lenghts, example:
Code:

srep+4x4:b128mb:lzma:a1:mfbt4:64m:fb273:mc1000000:lc8/$xstream=xZLib+srep+lolz:d128mb
PS: It could be that you must add something to Arc.ini in CIU folder if you use Xtool with UltraARC (because i just have seen that UltraARC not use xprecomp anymore), otherwise you will get something like "unsuported compression method".
Just open Arc.ini in CIU and add the following to the end (or somewhere)

Code:

[External compressor:xZLib,xOodle,xLZ4,xLZO,xZSTD]
header    = 0
unpackcmd = xtool.exe d:precomp:t75p - - <stdin> <stdout>

[External compressor:xCriLayla]
header    = 0
unpackcmd = xtool.exe d:precomp:t50p - - <stdin> <stdout>


Is this the settings for best compression?

Simorq 18-07-2018 12:49

Quote:

Originally Posted by Fabioddq (Post 472641)
I have some doubts... :o
So, now XTool is used by default to compress?
Have to change something to compress for best results, for example, Unreal Engine 4 game files?

Thanks.

Use Lolz

Unreal Engine 3
http://uupload.ir/files/ggu7_1.jpg

Unreal Engine 4
MMC=xLZO+srep:m3f+lolz

Fabioddq 18-07-2018 12:55

Ok. Nice info and tutorial. Thank you so much guys. I will trying understand since i'm new with these methods. Btw, need to change something in External Compressor.ini (CIU folder) ?

KaktoR 18-07-2018 12:57

I think MMC with a precompressor is not good at all, because like i said, you will precompress ALL files, even files which don't have any streams in it. It's a waste of time and not that purposeful.

KaktoR 18-07-2018 13:08

Quote:

Originally Posted by Fabioddq (Post 472657)
Btw, need to change something in External Compressor.ini (CIU folder) ?

If you want to use XTool, enable XTool (remove //) and define the achitecture you would like to use ("x64" for 64bit or leave it blank for 32bit)

#Define XTool = 32bit
#Define XTool "x64" = 64bit

Cyberavater 18-07-2018 13:23

All these just making me confused I can only use GUI. :( Any plans on improving that??
Or can you guys make a build with best compression balanced with speed, and upload it here please? ;)

Cyberavater 19-07-2018 06:06

What to do??

Process started at: 7:03:57 PM
Examining source...
Generating file lists...
Saving file lists...
Creating data1.arc...
Failed to create data1.arc
Process stopped at: 7:04:05 PM

pakrat2k2 19-07-2018 08:57

Quote:

Originally Posted by Cyberavater (Post 472671)
What to do??

Process started at: 7:03:57 PM
Examining source...
Generating file lists...
Saving file lists...
Creating data1.arc...
Failed to create data1.arc
Process stopped at: 7:04:05 PM

try a different compression method, what you chose might not be correct.


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

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