Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14-05-2023, 19:22
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
TT Isle Of Man Ride on the Edge 3 [LZ4F]
  • Extract the contents of the attached archive and use -mTTIoM3.
  • TTIoM3.xtl can be discarded for decoding, but lz4.exe, xtool.ini and xdelta3_dll.dll must be present.
Code:
xtool precomp -mTTIoM3 -c128mb -t8 -df20p "WIN32\PKG\CHUNK_0"

XTool is created by Razor12911

Streams: 19100 / 19112
Time: 00:11:36 (CPU 00:03:19)

Size: 8.23 GB >> 13.4 GB
not work, what's wrong ?

Reply With Quote
Sponsored Links
  #2  
Old 14-05-2023, 23:27
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Pretty sure you have to use a lz4 library aswell.
__________________
Haters gonna hate
Reply With Quote
  #3  
Old 15-05-2023, 00:20
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Pretty sure you have to use a lz4 library aswell.
LZ4 precompression is handled by lz4.exe in this case, plugged in via xtool.ini.

@kuyhaa
Are you trying an updated version? The database was created for the release version of the game.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
KaktoR (15-05-2023)
  #4  
Old 15-05-2023, 03:45
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
Quote:
Originally Posted by Masquerade View Post

@kuyhaa
Are you trying an updated version? The database was created for the release version of the game.
i'm using TT Isle Of Man Ride on the Edge 3 update v20230511

if use lz4f:l10

Code:
Streams: 5575 / 20181
Time: 00:00:32 (CPU 00:13:10)

Size: 8.23 GB >> 9.73 GB

Last edited by kuyhaa; 15-05-2023 at 03:57.
Reply With Quote
  #5  
Old 16-05-2023, 02:51
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
In that case, you will need to make a new database.

You will need VGMToolbox, which you can download here.

Copy this text and save it as PPKG.XML inside the "plugins\AdvancedCutter" folder.

Open the tool and go to Misc Tools ---> Extraction Tools ---> Generic ---> Advanced Cutter / Offset Finder.

In the presets drop down box, select PPKG from the list and then click "Load".

Then, drag the three PKG files into the drag'n'drop box to the left of the preset box.

After all the streams have been extracted, rename the extracted folders to remove the _CUT suffix.

To generate the database, just open a command prompt window in the folder containing the pkg files and do:

Code:
for %f in (*.PKG) do xtool generate -c128mb -t100p -mlz4f "%~nf" "%f" TTIoM3.xtl
Now you can delete the folders from VGMToolbox.
Reply With Quote
The Following 2 Users Say Thank You to Masquerade For This Useful Post:
kuyhaa (16-05-2023), L0v3craft (16-05-2023)
  #6  
Old 16-05-2023, 02:54
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Divinity: Original Sin [Enhanced Edition]
  • Extract contents of attached archive and use -mDivinity -df20p.
  • Divinity.xtl can be discarded for decoding, but liblz4.dll and xdelta3_dll.dll must be present.
Divinity: Original Sin 2 [Definitive Edition]
  • Extract contents of attached archive and use -mDivinity2 -df20p.
  • Divinity2.xtl can be discarded for decoding, but liblz4.dll and xdelta3_dll.dll must be present.
Attached Files
File Type: 7z Divinity.7z (1.36 MB, 37 views)
Reply With Quote
The Following 5 Users Say Thank You to Masquerade For This Useful Post:
Abbat (03-02-2024), Dunnowho69 (20-07-2025), Gehrman (17-05-2023), L0v3craft (16-05-2023), ScOOt3r (16-05-2023)
  #7  
Old 16-05-2023, 18:56
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
In that case, you will need to make a new database.

You will need VGMToolbox, which you can download here.

Copy this text and save it as PPKG.XML inside the "plugins\AdvancedCutter" folder.

Open the tool and go to Misc Tools ---> Extraction Tools ---> Generic ---> Advanced Cutter / Offset Finder.

In the presets drop down box, select PPKG from the list and then click "Load".

Then, drag the three PKG files into the drag'n'drop box to the left of the preset box.

After all the streams have been extracted, rename the extracted folders to remove the _CUT suffix.

To generate the database, just open a command prompt window in the folder containing the pkg files and do:

Code:
for %f in (*.PKG) do xtool generate -c128mb -t100p -mlz4f "%~nf" "%f" TTIoM3.xtl
Now you can delete the folders from VGMToolbox.
works, thanks

Code:
Streams: 19102 / 19113
Time: 00:02:28 (CPU 00:00:55)

Size: 8.23 GB >> 13.4 GB
Reply With Quote
  #8  
Old 01-06-2023, 08:55
soulfit15 soulfit15 is offline
Registered User
 
Join Date: Apr 2023
Location: Egypt
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
soulfit15 is on a distinguished road
looks like a bug in xtool GUI with unreal plugin
Quote:
XTool is created by Razor12911

Streams: 1430889 / 1675133
Time: 00:21:48 (CPU 00:16:56)

Size: 5.25 GB >> 5.03 GB
unpacking a game with ue5:key and it gets stuck "used the -d1" and cpu keeps spooling at 16%
Reply With Quote
  #9  
Old 23-06-2023, 06:43
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Letting you know here that the playstation archive plugin doesn't work with xtool 0.7.2(HF) on decompression step.

It works with xtool 0.7.1
__________________
Haters gonna hate
Reply With Quote
  #10  
Old 23-06-2023, 14:26
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
[Proof of Concept / Work In Progress] Yakuza SLLZ v1

This is a little project I've been working on in an attempt to implement the SLLZ algorithm found in Yakuza games as an XTool plugin. The code used for compression and decompression was written by Kaplas80. The attempt was to make it into a standalone executable. I wanted to share it here despite being unfinished. Requires .NET Framework v4.8.

There are a few problems with the plugin in its current state. Decompression of sllz streams seems to work completely fine. However, compression is slow and is missing the 2x 4 bytes of header information containing the compressed size and decompressed size (because for some reason Visual Studio insists on this being 8 byte rather than 4 byte arrays). They are filled as 00 bytes instead for the time being. The compressor is also bugged in other ways when I tested on samples from Yakuza Kiwami. Reading and writing to stdin/stdout hasn't been added yet so it's even slower since data needs to be extracted to disk.

Here's some information about this algorithm from its header:

Code:
First 4 bytes, Magic: SLLZ
Next byte, endianness: 00 (little)
Next byte, version: 01 or 02 (compression version - v2 is zlib I think)
Next 2 bytes is header size (from what I've seen, always 0x1000 because the header is always 16 bytes in my findings)
Next 4 bytes is decompressed size.
Next 4 bytes is compressed size.

Total: 16 bytes
Code:
[Stream1]
Name=yakuza
Codec=sllz
BigEndian=0
Signature=0x5A4C4C53
Structure=Signature(4),Endianness(1),Version(1),HeaderSize(2),CSize(4),DSize(4),Stream
StreamOffset=-16
CompressedSize=CSize
DecompressedSize=DSize
Code:
xtool precomp -myakuza -df20p -c128mb -t12 hact.par
XTool is created by Razor12911

Streams: 873 / 3397
Time: 00:11:34 (CPU 00:00:17)

Size: 398 MB >> 404 MB
I will probably drop this project for a bit and return to it sometime in the future
Attached Files
File Type: 7z XT_SLLZ.7z (331.9 KB, 32 views)
Reply With Quote
The Following 2 Users Say Thank You to Masquerade For This Useful Post:
Gehrman (02-07-2023), ScOOt3r (24-06-2023)
  #11  
Old 01-07-2023, 04:10
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 410
Thanks: 453
Thanked 444 Times in 204 Posts
dixen is on a distinguished road
Witcher 3: Complete

Used xtool v0.7.3 hotfix

-mzlib+reflate

Quote:
Streams: 2786 / 2786
Time: 00:01:17 (CPU 00:04:24)
Duplicates: 300 (1.58 MB) [1.80 MB >> 19.1 MB]
Srep decompression memory: 3.00 MB [6.34 MB*]

Size: 508 MB >> 658 MB >> 638 MB >> 607 MB >> 400 MB

100%
Errorlevel=0

Compressed 1 file, 532,191,280 => 419,520,814 bytes. Ratio 78.83%
Compression time: cpu 0.53 sec/real 79.37 sec = 1%. Speed 6.71 mB/s
All OK
-mw3+zlib+reflate

Quote:
Streams: 3490 / 3854
Time: 00:01:35 (CPU 00:05:40)
Duplicates: 476 (2.20 MB) [3.18 MB >> 226 MB]
Srep decompression memory: 7.00 MB [23.1 MB*]

Size: 508 MB >> 1.12 GB >> 916 MB >> 814 MB >> 303 MB

100%
Errorlevel=0

Compressed 1 file, 532,191,280 => 318,049,218 bytes. Ratio 59.76%
Compression time: cpu 0.47 sec/real 97.06 sec = 0%. Speed 5.48 mB/s
All OK
Needed libliz4.dll (v1.9.3) and doboz.dll near xtool.exe
Attached Files
File Type: zip db_w3.zip (1.53 MB, 76 views)
Reply With Quote
The Following 5 Users Say Thank You to dixen For This Useful Post:
Abbat (03-02-2024), Gehrman (02-07-2023), Razor12911 (08-07-2023), Wanterlude (02-07-2023), wrathma (22-01-2026)
  #12  
Old 08-07-2023, 21:30
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Plugin update available

Changes

- Improved stream detection in unreal engine plugin's ue5 codec (ucas/utoc format)

Notes

I just wished the format of unreal engine file system would stop changing because it's a headache trying to write one library that supports all current and future games and even this plugin has a caveat, mainly the first and last stream left behind and not decrypted because if I tried to grab them using the current method that would mean false positives, I've left R9 just in case R10's detection is worse but good luck.

pakchunk0optional-Windows.ucas (I don't know what game is this but it was a sample I was sent a while ago)

Unreal Engine ucas database maker doesn't work on this file... because they changed they format...

Code:
-mue5:k0xCD353CBF6E250AF8ADF4B2B0F79649A27D2BC743AB0AAAEB202DEF7A7C19B2DB+kraken -d1
R9
Code:
Tested 1 file, 437,937,960 => 290,461,744 bytes. Ratio 150.77%
Testing time: cpu 0.19 sec/real 11.54 sec = 2%. Speed 25.17 mB/s
R10
Code:
Tested 1 file, 578,518,003 => 290,461,744 bytes. Ratio 199.17%
Testing time: cpu 0.25 sec/real 16.30 sec = 2%. Speed 17.82 mB/s

Last edited by Razor12911; 08-07-2023 at 22:45. Reason: hotfix uploaded
Reply With Quote
The Following 7 Users Say Thank You to Razor12911 For This Useful Post:
Gehrman (09-07-2023), hdneo (09-07-2023), L0v3craft (12-07-2023), Masquerade (08-07-2023), ScOOt3r (09-07-2023), shazzla (08-07-2023), Wanterlude (08-07-2023)
  #13  
Old 09-07-2023, 07:26
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
The Legend of Heroes Trails into Reverie
  • Extract the below archive into XTool folder and use -mReverie.
  • This database is for assets.pka. The other pkg files are not compressed.
  • Requires liblz4.dll. I included one that gave a good ratio.
  • You can discard Reverie.xtl for decoding, but liblz4.dll must be retained.
This database took 13 hours to generate
Attached Files
File Type: 7z Reverie.7z (691.0 KB, 30 views)
Reply With Quote
The Following 7 Users Say Thank You to Masquerade For This Useful Post:
dixen (09-07-2023), Gehrman (09-07-2023), kuyhaa (10-07-2023), Razor12911 (10-07-2023), ScOOt3r (09-07-2023), shazzla (09-07-2023), Wanterlude (10-07-2023)
  #14  
Old 18-07-2023, 01:42
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Plugin update available

Changes

- Improved stream detection in unreal engine plugin's ue5 codec (ucas/utoc format)

Notes

Using ue5 codec even on pak files yielded streams which should not have been detected meaning ratio is affected one way or another and this release tackles false positive detections.
Reply With Quote
The Following 4 Users Say Thank You to Razor12911 For This Useful Post:
BKR-TN (23-07-2023), L0v3craft (18-07-2023), Masquerade (18-07-2023), Wanterlude (18-07-2023)
  #15  
Old 26-07-2023, 09:01
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Plugin update available

Changes

- ue3 codec no longer requires m# parameter to work
- ue3 codec supports lzopro streams (requires lzopro executable plugin)
- ue4 codec speed improvement
- ue4 codec improved detection
- ue5 codec minor bug fixes

Notes

This update is primarily made for the next xtool release (0.7.7) but it should work fine for older versions.

Link
Reply With Quote
The Following 8 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (26-07-2023), Gehrman (26-07-2023), KaktoR (26-07-2023), L0v3craft (26-07-2023), Masquerade (26-07-2023), Pantsi (26-07-2023), shazzla (26-07-2023), Wanterlude (26-07-2023)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XTool 2020 (Main Project) Razor12911 Conversion Tutorials 713 01-06-2026 23:52
XTool - Successor of ZTool Razor12911 Conversion Tutorials 584 22-04-2023 18:16
[Dev]XTool Razor12911 Conversion Tutorials 180 23-10-2020 06:26
XTool 2019 (Plugins) Razor12911 Conversion Tutorials 50 16-05-2020 06:14



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


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