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 08-03-2024 06:13

You cannot use lz4 directly. Plugin is required always if you want to use lz4/lz4hc.

However your sample seems to be compressed with lz4hc, because recompressed stream is bigger then original stream.

Code:

xtool.exe precomp -mlz4:s64k -t100p -c16mb -v - - < %1 > %1.out

[0] Processing streams on block 0000000000000000 to 00000000008E555B (9327964)
[0] Processing lz4 stream at 000000000002C850 (58101 >> 65536 >> 61165) using a1:b0 has failed
[0] - Patching stream at 000000000002C850 (58101 >> 61165) [42205] has failed

Streams: 0 / 81
Time: 00:00:03 (CPU 00:00:03)

Size: 8.90 MB >> 8.90 MB

Code:

xtool.exe precomp -mlz4hc:s64k -t100p -c16mb -v - - < %1 > %1.out

[0] Processed lz4hc stream at 00000000008D8B64 (51701 >> 65536 >> 51701) using l9:b0 successfully

Streams: 46 / 81
Time: 00:00:04 (CPU 00:00:04)

Size: 8.90 MB >> 9.36 MB

I don't know from what game this sample is. Either make a plugin configuration (ini file) or search for bms script and use bms2xtl with correct settings.

Redmist2013 08-03-2024 18:15

Yes, you're right - new XTool seems to detect some of the streams as LZ4HC. Not sure why the old XTool works perfectly when choosing generic LZ4 though.

The file is from CoD:MW Remast btw. All of the scene repacks are horribly out of date so I was compressing it myself.

KaktoR 09-03-2024 06:20

In this case you have to make a configuration plugin in order to precompress this game with newer xtool versions, as I am pretty sure there is no bms script for this game.

dixen 26-03-2024 02:10

Application cls-srep.dll instead of srep.exe is it possible to implement this when using -dd#?

Masquerade 26-03-2024 03:01

^^
Nope. cls-srep_x64.exe works differently to a typical srep.exe. It's focus is decompression only and uses different parameters afaik.

dixen 08-04-2024 08:24

Hmmm..
xtool execute doesn't work on v0.8.7?

daveyrob 28-04-2024 05:19

Quote:

Originally Posted by dixen (Post 504115)
Hmmm..
xtool execute doesn't work on v0.8.7?

i had multiple issues with the execution options in general including the ones using xtool.ini, some exes using xtool.ini seem to get confused with the in-out like tak or ofr, the only one i actually got working for wav was wavpak. in some versions the exe options kinda work wile in others not at all. i now just use mtx for mt, msc for wav and biks in containers i just extract myself to save jumping around xtool versions.

edit:
after changing xtool to version 086 all the stuff i could not get to work before seemed fine.

Masquerade 15-06-2024 10:07

1 Attachment(s)
New Release: XTool v0.8.8 (15/6/24)

Quote:

Changes
  • added zipcrypto encryption support
  • added library config based plugin support

https://www.patreon.com/posts/release-v0-8-8-106259359

wareck 15-06-2024 12:09

do you know how to use the new feature zipcrypto ?

Masquerade 20-06-2024 02:00

^^
It must be used via plugin, configuration or database. It cannot be called directly.

wareck 20-06-2024 12:53

I understand that you have to use bmscrypt and zip.bms + password.
I've also started a draft ini file but it's a bit dry....

But anyway, with my ugly method and block processing, I've reduced the game to 9.7GB, which isn't so bad.
The only problem is that the CRCs are different, which could pose a problem for future updates.
but not for sure, updates are patch_00x.pak files that are added...
it's not really for the game itself but more to understand the process and improve...

Masquerade 03-07-2024 10:24

1 Attachment(s)
New Release: XTool v0.8.9 (3/7/24)

Quote:

Changes
  • fixed issues with base directory and file/directory pathing in general
  • updated verbose mode log

Thanks to Razor12911 for the update. Please support his work on patreon.

https://www.patreon.com/posts/release-v0-8-9-107298667

dixen 13-07-2024 11:51

Can you explain how to link quickbms to XTool? I am interested in working with the giants.bms script and files.GAR from FS 22

Masquerade 13-07-2024 13:39

^^
From this, what I retrieved from the wayback machine:

https://web.archive.org/web/20221212...VJ4U/CEKOWrwzW

- This file format appears to be encryption on top of LZMA.

- XTool cannot natively handle LZMA so that would need to be plugged in. You'd need the right version and parameters for lzma.exe from the lzma sdk.

- The decryption function itself is not sourced, it's embedded into the script as MEMORY_FILE3 (which you must then prompt for qbms to load at runtime or with -Y argument)

- Can this function do encryption too? I do not know.

- Razor said a while back that QuickBMS support was fixed in XTool.ini (because I wanted to use it for Unity games), but I still couldn't quite get it to work correctly.

- So likely you'd need to generate a database with bms2xtl, but this database doesn't even get generated correctly since xtool detects "calldll" as the encryption algortihm (calldll is just a function in qbms to load external code/functions) and then plug qbms and lzma into xtool

This is a lot of trouble and I don't think I can offer any further help.

wareck 19-07-2024 22:42

hello guys
I would like to erase some files in a stream.

xtool.exe erase extracted_ original db.xtl

it works but I want's also to remove small file

Code:

Skipped Engine\Plugins\VirtualProduction\LiveLinkCamera\Config\BaseLiveLinkCamera.ini (Smaller than 256)
there is an option for that ?


All times are GMT -7. The time now is 01:34.

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