FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   XTool 2020 (Main Project) (https://fileforums.com/showthread.php?t=102832)

KaktoR 29-09-2021 08:48

@Razor12911
Thanks for the documentation. Brought me a few steps further (I didn't even know that xtool has mermaid/leviathan support until I read your documentation lol).
But what I don't understand right now is what to do if there is no signature (or repeating pattern) before an oodle header or if the pattern is different before many headers.

Currently I'm dealing with mermaid (8C 0A) and there is no visible pattern before the header, just always different random bytes.

---

In a different test I was looking for kraken header (8C 06). There seems to be a repeating pattern, namely 6 bytes (00 00 00 00 01 00) + 1 or 2 random byte. The 9th byte is always X (58).

https://i.imgur.com/qEKZ9IK.png

Maybe I have to work with Conditions, but unfortunatelly you forgot to explain them somehow in the documentation :D

dixen 30-09-2021 23:29

LZMA Codec for TTW2. It possible?)

Razor12911 06-10-2021 15:49

1 Attachment(s)
Quote:

Originally Posted by kaktor (Post 494166)
maybe i have to work with conditions, but unfortunatelly you forgot to explain them somehow in the documentation :d

Attachment 30469

:(

Quote:

Originally Posted by dixen (Post 494181)
lzma codec for ttw2. It possible?)

yes, read documentation and make plugin :rolleyes:

KaktoR 06-10-2021 20:43

@Razor12911
Sorry, I already found it (I just forgot to edit my post) and I made some steps forward (on my sample I made +3% ratio compared to xtool without configutation, I will see if there are more) :)

Razor12911 22-12-2021 17:34

Update available

Changes

- updated search support (speed improvements)
- updated command line parser
- added partial universal scanner for lzo1x streams
- added universal scanner for lz4f streams
- fixed issue with configuration files failing to execute without conditions

Notes

The previous update is still up, in case if there are issues with this one as I'm rusty af at the moment. (I haven't coded in months)
The lzo1x codec uses LZO1X-999 (level 1-9) and should only be used if you have no alternatives for precompression such as no plugins as this thing can be slow at times.

Masquerade 23-12-2021 00:19

Razor12921
Welcome back, thank you for the update. Merry Christmas! :D

L0v3craft 25-12-2021 03:52

Quote:

Originally Posted by Razor12911 (Post 495250)
Update available

Changes

- added universal scanner for lz4f streams

Thanks Razor! Please can you write a list of games that are compatible with that lz4f scanner? For example is it for new or old unity games?

panker1992 29-12-2021 02:31

the xtool has an xtool.ini with xcompress.exe and crilayla.exe where can i find those ?

Masquerade 29-12-2021 06:23

Quote:

Originally Posted by panker1992 (Post 495290)
the xtool has an xtool.ini with xcompress.exe and crilayla.exe where can i find those ?

I think they are coming soon.

Razor12911 17-01-2022 11:34

Update available

Changes

- project made open source
- added external executable support
- added generate database feature
- fixed search support bug

Notes

The source code will be made available on GitHub
https://github.com/Razor12911/xtool

External executable support is still in development and not thoroughly tested and below shows how it is used within xtool.ini

Code:

[nier_replicant]
Encode=zstd138.exe -c -d - <stdin> <stdout>
Decode=zstd138.exe -c --fast=1 --long=15 - <stdin> <stdout>
Continous=0

possible constants: <stdin> <stdout> <filein> <fileout> <fileres> <filestore> <size>

Razor12911 16-02-2022 22:32

Update available

Changes

- fixed issue of status not reporting when encoding
- added depth method support for search support
- fixed zlib encoding issues for different window bits (thanks KaktoR)
- fixed zlib memory leak issue (thanks KaktoR)
- updated all internal codecs to support information relayed by external codecs
- updated lz4f codec and removed temporarily removed support for universal scanning
- added option to change recompression level to be used by reflate
- updated external executable support
- generate database feature currently bugged, wait for next update
- search database structure changed, older database files will no longer work with newer releases

Notes

Older database files will not work with future updates, use the older version 0.3.21 for old database files as you wait for them to be updated
A temp file may be created when using database files which can be the size of the largest file in the data to be processed.

Anonymous0000 17-02-2022 19:03

how come I can't open the xtool.exe?
 
I'm in win11.

daveyrob 19-02-2022 03:00

im curious, if you can now select a reflate level what does it do as standard? maybe set to 6 as as default?

Razor12911 20-02-2022 02:15

Quote:

Originally Posted by Anonymous0000 (Post 495878)
I'm in win11.

Xtool isn't used directly, look at test example or the Freearc example to see how it works.

Quote:

Originally Posted by daveyrob (Post 495916)
im curious, if you can now select a reflate level what does it do as standard? maybe set to 6 as as default?

The idea of reflate is by selecting the correct level you get the best result. You can perform trial and error on an input by trying out different levels and the best one is the one that gives the least output. Default is level 6

Razor12911 21-02-2022 14:50

Update available

Changes

- removed debugging code from encryption and executable codec
- fixed issue with depth when using search codec
- fixed external executable support issues

ScOOt3r 22-02-2022 16:26

Im trying to understand the commands for xtool_0.4.2

my arc.ini file is this

[External compressor:xtool]
header = 0
packcmd = xtool.exe precomp -mzlib+preflate -c32mb -t85p - - <stdin> <stdout>

[External compressor:lolz]
header = 0
packcmd = lolz\lolz_x64.exe -d256 -dt -dtb1 -mtt1 -mt14 -fba1024 -tt5 -mc128 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

[External compressor:srep]
header = 0
packcmd = srep\srep.exe -m3f -l512 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

and the pack.bat file is this
del /q data.bin
arc.exe a -ep1 -r -ed -s; -w.\temp -mxtool+srep+lolz data.bin "pack\*"
pause

it creates a freearc1.tmp file only and not a .bin file
what am i doing wrong with this.

Thanks

Razor12911 22-02-2022 16:40

try removing all plugins (xtl and ini) files near xtool, they may be causing it to crash and try again.

seryogakms 22-02-2022 18:12

ERROR: write error (disk full?) in compression algorithm xtool

arc.ini
[External compressor:xtool]
header = 0
packcmd = xtool.exe precomp -mzlib+kraken:l4 -c256mb -lm - - <stdin> <stdout>
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

[External compressor:srep]
header = 0
packcmd = srep64 -mem512m -l512 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:lolz]
header = 0
packcmd = lolz_x64.exe -d128 -mc1023 -dtb1 -tt4 -mtt1 -mt8 -mtb128 -fba1024 -oh14 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = lolz_x86.exe $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

cmd:
arc.exe a -ep1 -r -ed -s; -i2 -w.\temp -mxtool+srep+lolz Packs\data.bin "data\*"

With xtool_0.3.9 there is no such problem.

What could be the problem?

Thank you in advance.

ScOOt3r 22-02-2022 18:21

I did try and remove all .xtl and .ini files and same thing.. just a freearc1.tmp was created only

ScOOt3r

Masquerade 23-02-2022 01:30

Quote:

Originally Posted by seryogakms (Post 495958)
[External compressor:xtool]
header = 0
packcmd = xtool.exe precomp -mzlib+kraken:l4 -c256mb -lm - - <stdin

zlib+kraken? :confused:

Anonymous0000 23-02-2022 05:25

Is there any ui-based interface that I can use to input the commands?

ScOOt3r 23-02-2022 10:16

3 Attachment(s)
i just used the same files located in xtool 0.4.2
and here are my pics

Attachment 31263
It compressed just fine with no errors

Attachment 31264
here are the files for xtool 0.4.2 as you can see it created a freearc1.tmp file

Attachment 31265
here are the files that i was test packing

my arc.ini is
[External compressor:xtool]
header = 0
packcmd = xtool.exe precomp -mzlib+preflate -c32mb -t85p - - <stdin> <stdout>

[External compressor:lolz]
header = 0
packcmd = lolz\lolz_x64.exe -d256 -dt -dtb1 -mtt1 -mt14 -fba1024 -tt5 -mc128 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

[External compressor:srep]
header = 0
packcmd = srep\srep.exe -m3f -l512 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

my pack.bat file is
arc.exe a -ep1 -r -ed -s; -w.\temp -mxtool+srep+lolz data.bin "pack\*"

seryogakms 23-02-2022 11:41

Quote:

Originally Posted by Masquerade (Post 495960)
zlib+kraken? :confused:

https://imageup.ru/img261/3886963/2022-02-24_054012.png

Razor12911 23-02-2022 18:39

Quote:

Originally Posted by Anonymous0000 (Post 495963)
Is there any ui-based interface that I can use to input the commands?

https://fileforums.com/showthread.php?t=104507

Quote:

Originally Posted by Masquerade (Post 495960)
zlib+kraken? :confused:

I doubt that's the issue, @ScOOt3r only uses zlib related codecs however he has an issue of his own (might be related)

@seryogakms, @ScOOt3r

I'll take a look at it but it will be challenge because I am not experiencing any of the issues you're reporting.

Hexagon123 23-02-2022 22:11

When using Knight Compressor, it uses too much DLL files that made it crash. But, I deleted some to make it work. Multiple files work but not Unity.

Masquerade 24-02-2022 08:01

seryogakms
Apologies for criticising your zlib+kraken method, I have tested out a new game which contains both. Sorry. Hope you can forgive.

Razor12911 24-02-2022 08:51

Code:

[External compressor:xtool]
header    = 0
packcmd  = xtool.exe precomp { -moption} -c32mb -t100p $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

@seryogakms, @ScOOt3r
can you try this configuration, if xtool throws any errors please post the error message here

ScOOt3r 24-02-2022 10:27

3 Attachment(s)
ok after testing it i now get this error

if i do a clean install of xtool 0.4.1 with no library files added i get this

it creates the data.arc with this xtool setting, but it wont decompress with out errors.


[External compressor:xtool]
header = 0
packcmd = xtool.exe precomp { -moption} -c32mb -t100p $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

Razor12911 24-02-2022 11:13

can you share this input along with your system specs?

ScOOt3r 24-02-2022 11:28

My System Specs are as follows:
AMD Ryzen 9 5950X
16 Cores
32 Logical Processors
64 GB of Ram
NVIDIA GeForce RTX3090 GPU

daveyrob 24-02-2022 12:14

i had the same Disk Full issue, remove libzstd.dll and it will work.

seryogakms 24-02-2022 12:23

Quote:

Originally Posted by Masquerade (Post 495980)
seryogakms
Apologies for criticising your zlib+kraken method, I have tested out a new game which contains both. Sorry. Hope you can forgive.

It's all right!

BLACKFIRE69 24-02-2022 12:38

Quote:

Originally Posted by ScOOt3r (Post 495989)
ok after testing it i now get this error

if i do a clean install of xtool 0.4.1 with no library files added i get this

it creates the data.arc with this xtool setting, but it wont decompress with out errors.


[External compressor:xtool]
header = 0
packcmd = xtool.exe precomp { -moption} -c32mb -t100p $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>


ScOOt3r,
this is ISDone right? how about the unpack.bat? you get the same error?

ScOOt3r 24-02-2022 12:42

well i got it working compressing and decompression as someone posted above to remove libzstd.dll.. i did that and it works just fine now.. weird that it was that file
not sure how important libzstd.dll is...

ScOOt3r

seryogakms 25-02-2022 01:50

Quote:

Originally Posted by Razor12911 (Post 495985)
Code:

[External compressor:xtool]
header    = 0
packcmd  = xtool.exe precomp { -moption} -c32mb -t100p $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

@seryogakms, @ScOOt3r
can you try this configuration, if xtool throws any errors please post the error message here

File Patch.bin from "Horizon zero dawn" (last version).
5 434 479 154 bytes → 360 912 358 bytes (xtool_0.3.9 ONLY). Compression time — 36 minutes. Unpacking time — 18 minutes.

Intel core i5-3550, 20 GB RAM.

Code:

arc.exe a -ep1 -r -ed -s; -i2 -w.\temp -mxtool+srep+lolz Packs\data.bin "H:\06. 1.0.11.9 (1.11)\Packed_DX12\Patch.bin"
Code:

[External compressor:xtool]
header = 0
packcmd = xtool precomp -mkraken -d3 -c64mb -t100p - - <stdin> <stdout>
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

[External compressor:srep]
header = 0
packcmd  = srep64 -mem512m -l512 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:lolz]
header = 0
packcmd = lolz_x64.exe -d128 -mc1023 -dtb1 -tt4 -mtt1 -mt8 -mtb128 -fba1024 -oh14 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = lolz_x86.exe $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

No other version of xtool gives such results under any settings.

xtool_0.4.2 with the same (and other) settings:
5 434 479 154 bytes → 2 738 426 574 bytes. Compression time — 3 hours and 56 minutes. Unpacking time — 18 minutes.

dixen 25-02-2022 02:10

Quote:

Originally Posted by seryogakms (Post 496004)
File Patch.bin from "Horizon zero dawn" (last version).
5 434 479 154 bytes → 360 912 358 bytes (xtool_0.3.9 ONLY). Compression time — 36 minutes. Unpacking time — 18 minutes.

Intel core i5-3550, 20 GB RAM.

oo2reck+srep+lolz - 340 mb
Decompression time - 4 min:cool:

Razor12911 25-02-2022 02:20

Quote:

Originally Posted by seryogakms (Post 496004)
File Patch.bin from "Horizon zero dawn" (last version).
5 434 479 154 bytes → 360 912 358 bytes (xtool_0.3.9 ONLY). Compression time — 36 minutes. Unpacking time — 18 minutes.

Intel core i5-3550, 20 GB RAM.

Code:

arc.exe a -ep1 -r -ed -s; -i2 -w.\temp -mxtool+srep+lolz Packs\data.bin "H:\06. 1.0.11.9 (1.11)\Packed_DX12\Patch.bin"
Code:

[External compressor:xtool]
header = 0
packcmd = xtool precomp -mkraken -d3 -c64mb -t100p - - <stdin> <stdout>
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

[External compressor:srep]
header = 0
packcmd  = srep64 -mem512m -l512 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:lolz]
header = 0
packcmd = lolz_x64.exe -d128 -mc1023 -dtb1 -tt4 -mtt1 -mt8 -mtb128 -fba1024 -oh14 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = lolz_x86.exe $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

No other version of xtool gives such results under any settings.

xtool_0.4.2 with the same (and other) settings:
5 434 479 154 bytes → 2 738 426 574 bytes. Compression time — 3 hours and 56 minutes. Unpacking time — 18 minutes.

Sample?

seryogakms 25-02-2022 02:23

Quote:

Originally Posted by ScOOt3r (Post 495998)
well i got it working compressing and decompression as someone posted above to remove libzstd.dll.. i did that and it works just fine now.. weird that it was that file
not sure how important libzstd.dll is...

ScOOt3r

https://imageup.ru/img160/thumb/13887671.jpg

arc.exe a -ep1 -r -ed -s; -i2 -w.\temp -mxt22+srep+lolz Packs\data.bin "DATAS\*"

[External compressor:xt22_zstd]
header = 0
packcmd = xtool\zlib\xt22.exe precomp -mzlib+zstd:l19,l22 -c32mb -t100p $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = xt22.exe decode -t100p - - <stdin> <stdout>

[External compressor:lolz]
header = 0
packcmd = lolz_x64.exe -d128 -mc1023 -dtb1 -tt4 -mtt1 -mt8 -mtb128 -fba1024 -oh14 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = lolz_x86.exe $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:srep]
header = 0
packcmd = srep64 -mem512m -l512 -m5f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

seryogakms 25-02-2022 02:27

Quote:

Originally Posted by dixen (Post 496006)
oo2reck+srep+lolz - 340 mb
decompression time - 4 min:cool:

В очередной раз спасибо за подсказку, но у меня комп «немного» слабее твоего. ):

dixen 25-02-2022 02:35

Quote:

Originally Posted by seryogakms (Post 496009)
В очередной раз спасибо за подсказку, но у меня комп «немного» слабее твоего. ):

shhh. english only in post...
Razor12911
Hi)
What about *.bdt from Elden Ring? It encrypted oodle streams?


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

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