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 10-03-2022, 19:23
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Endianess can be confusing at times... try this
Thanks.
It worked perfectly now for ME Andromeda.
Attached Images
File Type: png snap3179.png (87.4 KB, 394 views)
Reply With Quote
The Following 4 Users Say Thank You to Cesar82 For This Useful Post:
Gehrman (11-03-2022), GTX590 (18-03-2022), mausschieber (11-03-2022), Razor12911 (10-03-2022)
Sponsored Links
  #2  
Old 12-03-2022, 02:29
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
Distant Worlds 2
  • This game uses very weak LZ4 compression on the bundle files, don't expect a HUGE ratio increase
  • Extract contents of the attached archive and use -mDistantWorlds2.
  • Requires liblz4.dll, I included one that gives a good ratio.
  • You can discard DistantWorlds2.xtl for decoding, however you will still need the same liblz4.dll you used for encoding.
Code:
xtool precomp -mDistantWorlds2 -c64mb -t12 Dhayut.16fded53a296c46dd06a09d8bd780324.bundle

Streams: 21 / 21
Time: 00:00:01 (CPU 00:00:00)

Size: 11.2 MB >> 14.8 MB
Attached Files
File Type: 7z Distant.Worlds.2.v1.1.6.7.7z (190.6 KB, 18 views)

Last edited by Masquerade; 08-09-2023 at 01:11.
Reply With Quote
The Following 4 Users Say Thank You to Masquerade For This Useful Post:
dixen (12-03-2022), Gehrman (13-03-2022), Razor12911 (03-05-2022), ScOOt3r (12-03-2022)
  #3  
Old 07-06-2022, 09:41
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
Updated Orcs Must Die! 3 LZ4HC database to game version v1.2.0.2 / Build 8601683.
Reply With Quote
The Following 3 Users Say Thank You to Masquerade For This Useful Post:
Gehrman (07-06-2022), L0v3craft (07-06-2022), ScOOt3r (07-06-2022)
  #4  
Old 06-06-2023, 06:29
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
Orcs Must Die! 3 database updated for game version Build 11248349 / v1.2.1.0 (June 5th 2023).
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Razor12911 (08-06-2023)
  #5  
Old 14-03-2022, 14:45
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
WWE 2K22 research information

Straight away I'll say working on this game has been a headache especially since there is no information online so I'll post some information if someone wants to continue to work on it but doesn't know where to start.

This game is heavily obfuscated/encrypted. The header structed is encrypted, the data itself is encrypted. They used weak xor encryption which is weak but the catch is these keys are different for each stream/block that's encrypted, they are generated based on a generated hash to produce a 256 byte key.

Since I had no idea how to decrypt the header to get these hash values, I just hijacked the exe by injecting code then to be able to obtain decrypted headers which has a structure that looks like this

Code:
type
  PWWEStruct = ^TWWEStruct;

  TWWEStruct = record
    Position, Hash: Int64; {not sure if Hash is 32-bit or 64-bit}
    StreamIndex, CSize, Format, DSize, Unk1, FileIndex: Int32; {FileIndex = bakedfile##.cak}
  end;
As for compression that was used, they used Hydra which comes from oodle library hence you see oo2core_9_win64.dll set to level 6. So if you plan on decompressing all the streams, it's important that you know the decompressed stream size as Hydra streams can either be Kraken, Mermaid/Selkie or Leviathan in terms of their format (Leviathan streams cannot be processed directly by xtool properly if decompressed size is unknown)

The attachment contains decrypted headers for the first 15GB.

Code:
[0] Performing scan from block 0000000000000000 to 0000000000003E87 (16008)
[0] Actual hydra stream found at 0000000000000000 (16008 >> 71384)

[0] Processing streams on block 0000000000000000 to 0000000000003E87 (16008)
[0] Processed hydra stream at 0000000000000000 (16008 >> 71384 >> 16008) using l6,c0,t256 successfully
Attached Files
File Type: 7z wwe2k22_decrypted_headers.7z (2.41 MB, 43 views)
File Type: 7z sample.7z (48.7 KB, 25 views)

Last edited by Razor12911; 14-03-2022 at 14:52.
Reply With Quote
The Following 7 Users Say Thank You to Razor12911 For This Useful Post:
:( Sad8669 (14-03-2022), anotherLostAccount (20-04-2022), Gehrman (15-03-2022), GTX590 (18-03-2022), L33THAK0R (14-03-2022), ScOOt3r (14-03-2022), Wanterlude (17-03-2022)
  #6  
Old 21-03-2022, 07:33
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
Me and Cesar took the opportunity and tested some plugins if they are still working.

Ubisoft Dunia 2 (use xtool 0.3.21 with dunia2_db_R3)
Code:
Far Cry 3
Compressed 2 files, 192,353,931 => 445,118,379 bytes. Ratio 231.41%
Compression time: cpu 0.23 sec/real 11.42 sec = 2%. Speed 16.84 mB/s
All OK

Extracted 2 files, 445,118,379 => 192,353,931 bytes. Ratio 231.41%
Extraction time: cpu 0.41 sec/real 10.08 sec = 4%. Speed 19.07 mB/s
All OK


Far Cry 3 Blood Dragon
Compressed 2 files, 187,181,236 => 381,569,184 bytes. Ratio 203.85%
Compression time: cpu 0.20 sec/real 10.27 sec = 2%. Speed 18.23 mB/s
All OK

Extracted 2 files, 381,569,184 => 187,181,236 bytes. Ratio 203.85%
Extraction time: cpu 0.33 sec/real 8.39 sec = 4%. Speed 22.31 mB/s
All OK


Far Cry 4
Compressed 2 files, 128,161,319 => 304,134,437 bytes. Ratio 237.31%
Compression time: cpu 0.17 sec/real 8.37 sec = 2%. Speed 15.32 mB/s
All OK

Extracted 2 files, 304,134,437 => 128,161,319 bytes. Ratio 237.31%
Extraction time: cpu 0.27 sec/real 8.47 sec = 3%. Speed 15.14 mB/s
All OK


Far Cry 6
Compressed 2 files, 1,018,689,920 => 1,616,466,970 bytes. Ratio 158.68%
Compression time: cpu 0.53 sec/real 15.48 sec = 3%. Speed 65.80 mB/s
All OK

Extracted 2 files, 1,616,466,970 => 1,018,689,920 bytes. Ratio 158.68%
Extraction time: cpu 0.84 sec/real 7.57 sec = 11%. Speed 134.64 mB/s
All OK
Not working: FC5, FCND, WD2
Not tested: FCP (probably same modified lz4 as WD2)


Cyberpunk 2077
Code:
xtool 0.3.21
Compressed 1 file, 200,130,560 => 414,058,350 bytes. Ratio 206.89%
Compression time: cpu 0.25 sec/real 33.74 sec = 1%. Speed 5.93 mB/s
All OK

Extracted 1 file, 414,058,350 => 200,130,560 bytes. Ratio 206.89%
Extraction time: cpu 0.45 sec/real 6.38 sec = 7%. Speed 31.37 mB/s
All OK


xtool 0.4.5
Compressed 1 file, 200,130,560 => 421,178,833 bytes. Ratio 210.45%
Compression time: cpu 0.17 sec/real 30.60 sec = 1%. Speed 6.54 mB/s
All OK

Extracted 1 file, 421,178,833 => 200,130,560 bytes. Ratio 210.45%
Extraction time: cpu 0.45 sec/real 6.46 sec = 7%. Speed 30.96 mB/s
All OK

Unravel 1 + 2 (use xtool 0.3.21)
Code:
Compressed 1 file, 209,006,308 => 412,014,267 bytes. Ratio 197.13%
Compression time: cpu 0.23 sec/real 8.15 sec = 3%. Speed 25.64 mB/s
All OK

Extracted 1 file, 412,014,267 => 209,006,308 bytes. Ratio 197.13%
Extraction time: cpu 0.34 sec/real 2.33 sec = 15%. Speed 89.87 mB/s
All OK

Deathloop (xtool 0.4.5 or 0.3.21 does not matter, both are working)
Code:
Compressed 1 file, 370,332,059 => 538,901,543 bytes. Ratio 145.52%
Compression time: cpu 0.36 sec/real 31.35 sec = 1%. Speed 11.81 mB/s
All OK

Extracted 1 file, 538,901,543 => 370,332,059 bytes. Ratio 145.52%
Extraction time: cpu 0.70 sec/real 31.04 sec = 2%. Speed 11.93 mB/s
All OK

Haemimont Engine (test from "Surviving Mars", xtool 0.4.5 or 0.3.21 does not matter, both are working)
Code:
Compressed 1 file, 117,390,334 => 183,791,889 bytes. Ratio 156.56%
Compression time: cpu 0.11 sec/real 1.79 sec = 6%. Speed 65.52 mB/s
All OK

Extracted 1 file, 183,791,889 => 117,390,334 bytes. Ratio 156.56%
Extraction time: cpu 0.31 sec/real 1.22 sec = 26%. Speed 95.85 mB/s
All OK
Not working: Hitman 3, Bethesda (at least for Skyrim AE version, SE could still work), Saints Row 3 Remaster. Other plugins not tested due to lacking samples.
__________________
Haters gonna hate

Last edited by KaktoR; 21-03-2022 at 09:15.
Reply With Quote
The Following 5 Users Say Thank You to KaktoR For This Useful Post:
:( Sad8669 (21-03-2022), Cesar82 (21-03-2022), Gehrman (22-03-2022), mausschieber (21-03-2022), Razor12911 (22-03-2022)
  #7  
Old 23-03-2022, 20:58
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
Quote:
Originally Posted by KaktoR View Post
Not working: Hitman 3, Bethesda (at least for Skyrim AE version, SE could still work), Saints Row 3 Remaster.
-mxtool:SR3Remaster
Code:
Compressed 1 file, 6,970,632 => 15,132,802 bytes. Ratio 217.09%
Compression time: cpu 0.00 sec/real 1.16 sec = 0%. Speed 6.01 mB/s
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (24-03-2022), Gehrman (23-03-2022)
  #8  
Old 22-03-2022, 14:55
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
Plugins Updated

Changes

- Updated Unreal Engine plugin
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Gehrman (22-03-2022)
  #9  
Old 23-03-2022, 20:54
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
lz4x

Supported games

Unravel games and to be used by QuickBMS scripts...

Results

Unravel "kits\Unravel.kit.0"

Code:
Compressed 1 file, 209,006,308 => 411,939,814 bytes. Ratio 197.09%
Compression time: cpu 0.23 sec/real 5.90 sec = 4%. Speed 35.40 mB/s
Attached Files
File Type: 7z lz4x_R1.7z (115.2 KB, 203 views)
Reply With Quote
The Following 4 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (23-03-2022), elit (17-06-2022), Gehrman (23-03-2022), Masquerade (19-04-2022)
  #10  
Old 23-03-2022, 21:28
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
Crilayla

Supported games

To be used by QuickBMS scripts...

Results

Metal Gear Rising: Revengeance "data106.cpk"

Code:
Compressed 1 file, 104,629,360 => 322,219,345 bytes. Ratio 307.96%
Compression time: cpu 0.16 sec/real 41.44 sec = 0%. Speed 2.52 mB/s
Attached Files
File Type: 7z cpk_R1.7z (67.1 KB, 223 views)
Reply With Quote
The Following 4 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (23-03-2022), elit (17-06-2022), Gehrman (24-03-2022), Masquerade (23-03-2022)
  #11  
Old 06-04-2022, 05:59
infovs infovs is offline
Registered User
 
Join Date: Feb 2005
Location: Home
Posts: 50
Thanks: 2
Thanked 10 Times in 7 Posts
infovs is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Crilayla
Supported games To be used by QuickBMS scripts...
Metal Gear Rising: Revengeance "data106.cpk"
Maybe I'm doing someting wrong...but how can I use this on, for example, Dragon Ball Xenoverse 2 .cpk files?
Using -mxtool:crilayla works without error but does not expand at all. dbxv2.xlt generated with bms2xtl using cpk.bms script works (using -mxtool:dbxv2) and .cpk IS expanded. But I don't see how to use this external cpk_R1 plugin, nothing is expanded with crilayla.exe, crilayla.dll and xtool.ini in xtool path (I'm using xtool.ini from latest xtool, section name [crilayla]), maybe I'm missing something?
Thanks in advance,
regards

Last edited by infovs; 06-04-2022 at 07:12.
Reply With Quote
The Following User Says Thank You to infovs For This Useful Post:
L0v3craft (24-10-2022)
  #12  
Old 24-03-2022, 10: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
WRC10 [LZ4F]
  • A lot of streams are left behind with this method, but if you do not want to extract and decompress each stream before building a decompressed brick of data that you recompress and patch this is a good alternative.
  • Extract contents of the attached archive and use -mWRC10.
  • Requires liblz4.dll, I included one that gives a good ratio.
  • You can discard WRC10.xtl for decoding, however you will still need the same liblz4.dll you used for encoding.
Code:
Compressing CHUNK_14.PKG

Compressing 529,863,949 bytes with xtool precomp -mWRC10 -c256mb -t4 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

XTool is created by Razor12911

Streams: 537/757
Time: 00:00:14 (00:00:35)
Memory: 522 MB (522 MB)

100%
Errorlevel=0

Compressed 1 file, 529,863,949 => 743,838,469 bytes. Ratio 140.38%
Compression time: cpu 0.61 sec/real 37.86 sec = 2%. Speed 14.00 mB/s
All OK
Attached Files
File Type: 7z WRC10.7z (476.1 KB, 59 views)
Reply With Quote
The Following 2 Users Say Thank You to Masquerade For This Useful Post:
Gehrman (24-03-2022), Razor12911 (28-03-2022)
  #13  
Old 28-03-2022, 03:32
Edison007's Avatar
Edison007 Edison007 is offline
Registered User
 
Join Date: Mar 2014
Location: Solar System - Planet Earth
Posts: 30
Thanks: 0
Thanked 56 Times in 19 Posts
Edison007 is on a distinguished road
Age of Empires III: Definitive Edition LZ4 plugin
https://krinkels.org/threads/age-of-...s-iii-de.4777/
Attached Files
File Type: 7z aoe3de_xtool_plugin_v1.7z (793.1 KB, 165 views)
Reply With Quote
The Following 6 Users Say Thank You to Edison007 For This Useful Post:
dixen (28-03-2022), Gehrman (28-03-2022), KaktoR (28-03-2022), L0v3craft (30-03-2022), Masquerade (28-03-2022), Razor12911 (28-03-2022)
  #14  
Old 07-04-2022, 14:29
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
Orcs Must Die! 3 [LZ4HC]
  • Extract contents of the attached archive and use -mOMD3.
  • Requires liblz4.dll, I included one that gives a good ratio.
  • You can discard OMD3.xtl for decoding, however you will still need the same liblz4.dll you used for encoding.
Code:
xtool precomp -mOMD3 -c128mb pakchunk42-WindowsNoEditor.pak pakchunk42-WindowsNoEditor.xt_out

XTool is created by Razor12911

Streams: 1892/1892
Time: 00:00:03 (00:00:07)
Memory: 204 MB (204 MB)
Attached Files
File Type: 7z OMD3.Build.11248349.v1.2.1.0.7z (1.92 MB, 31 views)

Last edited by Masquerade; 06-06-2023 at 06:28.
Reply With Quote
The Following 6 Users Say Thank You to Masquerade For This Useful Post:
Gehrman (08-04-2022), KaktoR (08-04-2022), kingkaos (13-04-2022), L0v3craft (11-04-2022), Razor12911 (09-04-2022), ScOOt3r (07-06-2022)
  #15  
Old 19-04-2022, 10:08
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
^
This also works with pcars2 and pcars3 (same bms script).
__________________
Haters gonna hate

Last edited by KaktoR; 19-04-2022 at 10:24.
Reply With Quote
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 15:22.


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