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 25-05-2021, 10:22
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,753
Thanks: 2,189
Thanked 11,218 Times in 2,311 Posts
Razor12911 is on a distinguished road
Drag and drop one of the rpkg files on test.bat, an output folder named "output should be created, wait till finish.

Run the same file using the method hitman3+lz4 on xtool, compare the results.

Quote:
Originally Posted by dixen View Post
Razor, what about plugin for FarCry 3?)
common.dat + common.fat, + all .fat files samples needed for this.
Attached Files
File Type: 7z HitmanExtractor.7z (119.7 KB, 20 views)
Reply With Quote
Sponsored Links
  #2  
Old 26-05-2021, 06:00
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
Quote:
Originally Posted by Razor12911 View Post
common.dat + common.fat, + all .fat files samples needed for this.
https://drive.google.com/file/d/18Iv...ew?usp=sharing
Reply With Quote
The Following User Says Thank You to dixen For This Useful Post:
Razor12911 (06-06-2021)
  #3  
Old 26-05-2021, 07:24
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,338 Times in 2,839 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
common.dat + common.fat, + all .fat files samples needed for this.
All of them here
https://drive.google.com/drive/folde...pa?usp=sharing
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Razor12911 (06-06-2021)
  #4  
Old 02-06-2021, 06:57
HunterEmrah HunterEmrah is offline
Registered User
 
Join Date: Jan 2013
Location: Canada
Posts: 59
Thanks: 28
Thanked 15 Times in 13 Posts
HunterEmrah is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Drag and drop one of the rpkg files on test.bat, an output folder named "output should be created, wait till finish.
Code:
F:\Games\Hitman 3\pack\test>HitmanExtractor extract "F:\Games\Hitman 3\pack\test\chunk0patch1.rpkg" output
Building file entry list...
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   at System.IO.BinaryReader.ReadUInt32()
   at HitmanExtractor.Program.BuildFileEntryList(BinaryReader binaryReader) in C:\Users\Lennard\source\repos\HitmanExtractor\Src\HitmanExtractor\Program.cs:line 154
   at HitmanExtractor.Program.HandleArguments(String[] args) in C:\Users\Lennard\source\repos\HitmanExtractor\Src\HitmanExtractor\Program.cs:line 76
   at HitmanExtractor.Program.Main(String[] args) in C:\Users\Lennard\source\repos\HitmanExtractor\Src\HitmanExtractor\Program.cs:line 50

F:\Games\Hitman 3\pack\test>pause
Press any key to continue . . .
chunk0patch1.rpkg is not extracting, but chunk2.rpkg extracted successfully.

Same with hitman3+lz4

chunk0patch1.rpkg ratio %100
chunk2.rpkg ratio %106

Last edited by HunterEmrah; 02-06-2021 at 07:00.
Reply With Quote
  #5  
Old 05-06-2021, 17:15
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,753
Thanks: 2,189
Thanked 11,218 Times in 2,311 Posts
Razor12911 is on a distinguished road
Unity Engine

Usage
Place unity.dll near xtool.exe along with required libraries and use -munity

Notes

The library is required both encoding and decoding.

liblz4.dll is required
Attached Files
File Type: 7z unity_R7.7z (63.4 KB, 275 views)

Last edited by Razor12911; 26-04-2023 at 05:52.
Reply With Quote
The Following 19 Users Say Thank You to Razor12911 For This Useful Post:
Abbat (10-10-2022), Cesar82 (05-06-2021), Dis704 (04-05-2023), elit (08-09-2021), ffmla (05-06-2021), Flzzy (06-06-2021), Gehrman (09-03-2022), kuyhaa (30-11-2022), L0v3craft (06-06-2021), L33THAK0R (06-06-2021), LILU (29-06-2024), Masquerade (06-06-2021), Mortal Lord (05-06-2021), PsYcHo_RaGE (05-06-2021), ramydarkness (19-03-2022), ScOOt3r (06-06-2022), shazzla (05-06-2021), Wanterlude (03-04-2023), wrathma (10-03-2026)
  #6  
Old 06-06-2021, 09:30
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Unity Engine

Usage
Place unity.dll near xtool.exe along with required libraries and use -munity

Notes

The library is required both encoding and decoding.

liblz4.dll is required

__________________

Other plugins still require an update
Thank you so much for this tool! I'm not too familiar with the Unity engine so forgive me if this is a silly question but are the applications of this tool, engine-version-specific or case-by-case?

So far I've only had luck using this tool on the title "Outward", with other titles (Aragami, Cat Quest, Beholder) reporting back with failed decompression messages despite detecting streams and experimenting with "preflate" and "reflate". Interestingly enough the "Outward" compression only seemed to proceed when neither "preflate" nor "reflate" were used.
Reply With Quote
  #7  
Old 10-07-2021, 20:53
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 596
Thanks: 599
Thanked 659 Times in 234 Posts
Carldric Clement is on a distinguished road
Nothing could change when I'm using the latest of XTool v0.3.21. Try to repack the games "Saiko no Sutoka"
.assets, .resS, and .resource

using -munity with the plugin unity.dll and lz4.dll next to xtool.exe

Code:
Compressed 18 files, 621,696,943 => 621,697,130 bytes. Ratio 100.00%
Compression time: cpu 0.80 sec/real 14.58 sec = 5%. Speed 42.65 mB/s
All OK

Last edited by Carldric Clement; 10-07-2021 at 20:58.
Reply With Quote
  #8  
Old 11-07-2021, 01:33
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 Carldric Clement View Post
.assets, .resS, and .resource
https://www.fileforums.com/showpost....&postcount=175

Even look at game on SteamDB, you can see it compresses to under 200mb with Steam compression alone:
. https://steamdb.info/depot/1546861/
Reply With Quote
  #9  
Old 11-07-2021, 23:01
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 596
Thanks: 599
Thanked 659 Times in 234 Posts
Carldric Clement is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
https://www.fileforums.com/showpost....&postcount=175

Even look at game on SteamDB, you can see it compresses to under 200mb with Steam compression alone:
. https://steamdb.info/depot/1546861/
I figure it out myself. Only works with unity asset bundle. Try repack with Broforce to using -munity with unity plugin next to xtool

Code:
Compressed 192 files, 478,851,648 => 879,219,222 bytes. Ratio 100.64%
Compression time: cpu 0.58 sec/real 32.47 sec = 2%. Speed 14.75 mB/s
somehow it works a little bit.

Last edited by Carldric Clement; 11-07-2021 at 23:16.
Reply With Quote
  #10  
Old 05-06-2021, 20:01
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,753
Thanks: 2,189
Thanked 11,218 Times in 2,311 Posts
Razor12911 is on a distinguished road
Plugin updated

Changes

Updated Unreal Engine to support Xtool 0.3.16+
Unreal Engine 4 codec (ue4) no longer requires method parameter to work (m1 and m2), only specify the key.
Reply With Quote
The Following 7 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (05-06-2021), dixen (06-06-2021), Gehrman (24-06-2021), L0v3craft (06-06-2021), L33THAK0R (06-06-2021), Mortal Lord (05-06-2021), shazzla (05-06-2021)
  #11  
Old 21-06-2021, 00:55
L0v3craft's Avatar
L0v3craft L0v3craft is offline
Registered User
 
Join Date: Dec 2015
Location: Rome
Posts: 96
Thanks: 421
Thanked 24 Times in 15 Posts
L0v3craft is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Plugin updated

Changes

Updated Unreal Engine to support Xtool 0.3.16+
Unreal Engine 4 codec (ue4) no longer requires method parameter to work (m1 and m2), only specify the key.
Tested on Samurai Shodown and doesn't work, xtool doesn't precompress. Maybe the plugin was not able to decrypt the pak.

Tested xtool 0.3.9 + unrealengine_R3 and works.

Last edited by L0v3craft; 21-06-2021 at 01:02.
Reply With Quote
  #12  
Old 06-06-2021, 11:53
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,822
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Could someone please let me know what to use in the parameter if I want to use the frostbite3 plugin specifically for a game.

Assuming I use something like this:
Code:
arc.ini
[External compressor:xtool]
header    = 0
packcmd   = xtool.exe precomp { -option} -c32mb -t100p --dbase --dedup - - <stdin> <stdout>
unpackcmd = xtool.exe decode -t100p - - <stdin> <stdout>

pack.bat
arc.exe a -ep1 -r -ed -s; -w.\temp -mxtool:mfrostbite3,? data2.arc "..\pack\*"
I wanted to directly pass the parameter to each game supported by frostbite3, but I don't know if I should use the name of the section ([Streeam#]) of the frostbite3 .ini file or the value of the key "Name=" of the corresponding section.

If it is the value of the key "Name=" it would be more or less these commands. Is this the correct way to use it?
Code:
Battlefield 4             xtool:c32mb:mfrostbite3,lz4
Battlefield Hardline      xtool:c32mb:mfrostbite3,?
Battlefield 1             xtool:c32mb:mfrostbite3,lz4
Battlefield V             xtool:c32mb:mfrostbite3,lz4
Dragon Age Inquisition    xtool:c32mb:mfrostbite3,zlib
FIFA 18                   xtool:c32mb:mfrostbite3,fifa18
FIFA 19                   xtool:c32mb:mfrostbite3,fifa19
FIFA 20                   xtool:c32mb:mfrostbite3,fifa20
FIFA 21                   xtool:c32mb:mfrostbite3,fifa21
Mass Effect Andromeda     xtool:c32mb:mfrostbite3,zstd
Mirror's Edge Catalyst    xtool:c32mb:mfrostbite3,lz4
Need for Speed Rivals     xtool:c32mb:mfrostbite3,lz4
Need for Speed (2015)     xtool:c32mb:mfrostbite3,lz4
Need for Speed Payback    xtool:c32mb:mfrostbite3,lz4
Need for Speed Heat       xtool:c32mb:mfrostbite3,nfsheat
For Battlefield Hardline I didn't find information in the frostbite3.ini file of which method to use, but as informed in the #post it requires the LZ4 library so it is possibly the same as its brothers BF.

@Razor12911, I was wondering if I can use a fake parameter (number) along with XTool (If it will be discarded, or if it can cause errors). This additional parameter will only be for DiskSpan_GUI to know which library should be copied along with XTool before compressing.
Example to copy oo2core_4_win64.dll I would use: xtool:mkraken:4;

Last edited by Cesar82; 06-06-2021 at 12:04.
Reply With Quote
  #13  
Old 06-06-2021, 12:37
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,753
Thanks: 2,189
Thanked 11,218 Times in 2,311 Posts
Razor12911 is on a distinguished road
using -mfrostbite3 makes xtool search for all streams [Stream#], # = All entries.

But if you specify -mfrostbite3:zlib as an example, since the stream entries can have names, it will only target those streams.


Quote:
Originally Posted by Cesar82 View Post
If it is the value of the key "Name=" it would be more or less these commands. Is this the correct way to use it?
Code:
Battlefield 4             xtool:c32mb:mfrostbite3,lz4
Battlefield Hardline      xtool:c32mb:mfrostbite3,?
Battlefield 1             xtool:c32mb:mfrostbite3,lz4
Battlefield V             xtool:c32mb:mfrostbite3,lz4
Dragon Age Inquisition    xtool:c32mb:mfrostbite3,zlib
FIFA 18                   xtool:c32mb:mfrostbite3,fifa18
FIFA 19                   xtool:c32mb:mfrostbite3,fifa19
FIFA 20                   xtool:c32mb:mfrostbite3,fifa20
FIFA 21                   xtool:c32mb:mfrostbite3,fifa21
Mass Effect Andromeda     xtool:c32mb:mfrostbite3,zstd
Mirror's Edge Catalyst    xtool:c32mb:mfrostbite3,lz4
Need for Speed Rivals     xtool:c32mb:mfrostbite3,lz4
Need for Speed (2015)     xtool:c32mb:mfrostbite3,lz4
Need for Speed Payback    xtool:c32mb:mfrostbite3,lz4
Need for Speed Heat       xtool:c32mb:mfrostbite3,nfsheat
For Battlefield Hardline I didn't find information in the frostbite3.ini file of which method to use, but as informed in the #post it requires the LZ4 library so it is possibly the same as its brothers BF.
Yes this is correct, BF4 - BFV means from battlefield 4 to the release of battlefield V, in between Battlefield Hardline and Battlefield 1 came out so these use the same method (lz4)

Quote:
@Razor12911, I was wondering if I can use a fake parameter (number) along with XTool (If it will be discarded, or if it can cause errors). This additional parameter will only be for DiskSpan_GUI to know which library should be copied along with XTool before compressing.
Example to copy oo2core_4_win64.dll I would use: xtool:mkraken:4;
Yes, you can put fake parameters, they won't affect xtool in anyway.
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (06-06-2021), ffmla (06-06-2021)
  #14  
Old 06-06-2021, 12:45
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,822
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
using -mfrostbite3 makes xtool search for all streams [Stream#], # = All entries.

But if you specify -mfrostbite3:zlib as an example, since the stream entries can have names, it will only target those streams..
But for these games I will have better gain if I process all steams or even ratio if I use only the specific type mentioned in the previous post (Maybe some game file has other stream types).

P.S: I tested the ue4 plugin (new version) and it seems to be working perfectly with the Borderlands 3 sample.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Razor12911 (06-06-2021)
  #15  
Old 06-06-2021, 12:50
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,753
Thanks: 2,189
Thanked 11,218 Times in 2,311 Posts
Razor12911 is on a distinguished road
The problem isn't about ratio, the ratio you will get is the same. The problem is speed will be affected because of 10 different types of streams for xtool to look for when only one stream type exists, furthermore I don't know if I have uploaded the updated frostbite3 plugin here on the forum or on the mega link (I tend to first run tests before uploading here) but if you haven't you can check it here

In the configuration there is a note I left inside
"// FIFA 20 and NFS Heat streams are detected the same, use -mfrostbite3:fifa20 or -mfrostbite3:nfsheat to be specific"

This is the 2nd problem, basically these games are detected the same way but the compression settings used are different so being specific will produce better result.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Cesar82 (06-06-2021)
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 22:42.


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