Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2018, 15:11
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
Update available

Changes

- added dunia engine lz4hc stream precompression support (Far Cry 5)
- fixed unity engine support

Notes

In terms of the Dunia engine, I advise that you use the latest liblz4.dll to avoid some streams being skipped due to their major difference, this could be because even I myself am not sure if I used the correct parameters for recompression, if you have an idea of what is used, please comment. (I used lz4hc, level 9)

Only Far Cry 5 is what I think is supported currently, that's the only game I had installed so run tests to see if all is good, if so then I'll be moving on to Far Cry 3 and 4. Add the dat files in xtool.ini, make sure in that same location, the dat files are with the fat files else they'll be errors.

Parsing the fat file is a pain in the ass especially for the big files (farcry5.dat and installpkg.dat), so xtool might seem stuck when running those, at most it should take 5-10 minutes before it begins actual precompression.
Reply With Quote
The Following 12 Users Say Thank You to Razor12911 For This Useful Post:
Andu21 (12-05-2018), elit (30-05-2018), gorilaz (16-05-2018), Harsh ojha (20-06-2019), JRD! (13-05-2018), KaktoR (12-05-2018), oltjon (12-05-2018), Panky (12-05-2018), Perykles (12-05-2018), ShivShubh (12-05-2018), Simorq (12-05-2018), ZakirAhmad (12-05-2018)
Sponsored Links
  #2  
Old 12-05-2018, 15:17
darkwolves's Avatar
darkwolves darkwolves is offline
Registered User
 
Join Date: Oct 2016
Location: North Eastern,, USA
Posts: 482
Thanks: 49
Thanked 280 Times in 166 Posts
darkwolves is on a distinguished road
@Razor12911
excellent you have been on a roll with this tool the past couple of days
__________________
Ideas are bulletproof...
Reply With Quote
  #3  
Old 15-05-2018, 16:29
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Update available

Changes

- added dunia engine lz4hc stream precompression support (Far Cry 5)
- fixed unity engine support

Notes

In terms of the Dunia engine, I advise that you use the latest liblz4.dll to avoid some streams being skipped due to their major difference, this could be because even I myself am not sure if I used the correct parameters for recompression, if you have an idea of what is used, please comment. (I used lz4hc, level 9)

Only Far Cry 5 is what I think is supported currently, that's the only game I had installed so run tests to see if all is good, if so then I'll be moving on to Far Cry 3 and 4. Add the dat files in xtool.ini, make sure in that same location, the dat files are with the fat files else they'll be errors.

Parsing the fat file is a pain in the ass especially for the big files (farcry5.dat and installpkg.dat), so xtool might seem stuck when running those, at most it should take 5-10 minutes before it begins actual precompression.
Doesn't seem like I'll be adding FC3-4 support since I think lzopro is required for them just like Unreal Engine games.

As for current progress, I added support for FIFA 18.

The idea of binding codecs together came when I saw that this game is compressed with two different algorithms, oodle (kraken) and zstd

This is the result:

when using:
Quote:
oodle - - <stdin> <stdout>
Quote:
Compressed 1 file, 317,249,339 => 586,677,625 bytes. Ratio 184.93%
Compression time: cpu 0.59 sec/real 172.68 sec = 0%. Speed 1.84 mB/s
however when using:
Quote:
oodle,zstd - - <stdin> <stdout>
Quote:
Compressed 1 file, 317,249,339 => 592,734,832 bytes. Ratio 186.84%
Compression time: cpu 0.66 sec/real 185.29 sec = 0%. Speed 1.71 mB/s

Last edited by Razor12911; 15-05-2018 at 16:41.
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
ShivShubh (24-11-2019), Simorq (15-05-2018)
  #4  
Old 15-05-2018, 16:48
doofoo24 doofoo24 is offline
Registered User
 
Join Date: Nov 2016
Location: canada
Posts: 408
Thanks: 138
Thanked 474 Times in 227 Posts
doofoo24 is on a distinguished road
can't you make FC3/4 like FC5 file by file without lzopro ?
Reply With Quote
  #5  
Old 15-05-2018, 16:50
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by doofoo24 View Post
can't you make FC3/4 like FC5 file by file without lzopro ?
Streams never restore to their original form bro, that's the issue. Applying techniques of xdelta don't work either because there are a lot of differences between.

I could be missing something, who knows...

Last edited by Razor12911; 15-05-2018 at 16:58.
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
ShivShubh (24-11-2019), Simorq (15-05-2018)
  #6  
Old 15-05-2018, 16:57
doofoo24 doofoo24 is offline
Registered User
 
Join Date: Nov 2016
Location: canada
Posts: 408
Thanks: 138
Thanked 474 Times in 227 Posts
doofoo24 is on a distinguished road
i guess also games with engine Disrupt (watch_dog) are the same ?
Reply With Quote
  #7  
Old 15-05-2018, 16:59
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by doofoo24 View Post
i guess also games with engine Disrupt (watch_dog) are the same ?
I have not tried that game before so I can't say for sure.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
ShivShubh (24-11-2019)
  #8  
Old 15-05-2018, 21:13
ShivShubh ShivShubh is offline
Registered User
 
Join Date: Dec 2015
Location: India
Posts: 94
Thanks: 311
Thanked 101 Times in 43 Posts
ShivShubh is on a distinguished road
Quote:
Originally Posted by doofoo24 View Post
can't you make FC3/4 like FC5 file by file without lzopro ?
It doesnt work like that. FC2/3/4 uses LZOPRO while FC5 uses LZ4HC.
Reply With Quote
  #9  
Old 15-05-2018, 23:59
darkwolves's Avatar
darkwolves darkwolves is offline
Registered User
 
Join Date: Oct 2016
Location: North Eastern,, USA
Posts: 482
Thanks: 49
Thanked 280 Times in 166 Posts
darkwolves is on a distinguished road
Quote:
Originally Posted by ShivShubh View Post
It doesnt work like that. FC2/3/4 uses LZOPRO while FC5 uses LZ4HC.
looks like someone is going to have to break down and get LZOPRO for razor...
i will check my monthly budget..
__________________
Ideas are bulletproof...
Reply With Quote
The Following User Says Thank You to darkwolves For This Useful Post:
oltjon (16-05-2018)
  #10  
Old 30-05-2018, 13:52
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 265
Thanks: 190
Thanked 325 Times in 119 Posts
elit is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Update available
In terms of the Dunia engine, I advise that you use the latest liblz4.dll to avoid some streams being skipped due to their major difference, this could be because even I myself am not sure if I used the correct parameters for recompression, if you have an idea of what is used, please comment. (I used lz4hc, level 9)
I dont know if you want to go this route, but the way I did my tests when developing lz4 packer for "Raiders of the Broken Planet" game was that I used both original and self-modified quickbms script for unpacking game archive first. I unpacked thus twice - for each.

In modified script only difference was that I disabled decompression by taking out "comtype" command and used "log" instead of "clog" to dump files raw & compressed.

So I had both compressed and decompressed individual files from archive. Then it was only matter of finding right/best cmp settings through hex editor and binary comparison(first on few files and then all) to get best setting. And even wrong(but close) settings were still compatible with 80%+ of all archive.
Reply With Quote
The Following User Says Thank You to elit For This Useful Post:
Simorq (30-05-2018)
  #11  
Old 30-05-2018, 20:42
ShivShubh ShivShubh is offline
Registered User
 
Join Date: Dec 2015
Location: India
Posts: 94
Thanks: 311
Thanked 101 Times in 43 Posts
ShivShubh is on a distinguished road
Quote:
Originally Posted by elit View Post
I dont know if you want to go this route, but the way I did my tests when developing lz4 packer for "Raiders of the Broken Planet" game was that I used both original and self-modified quickbms script for unpacking game archive first. I unpacked thus twice - for each.

In modified script only difference was that I disabled decompression by taking out "comtype" command and used "log" instead of "clog" to dump files raw & compressed.

So I had both compressed and decompressed individual files from archive. Then it was only matter of finding right/best cmp settings through hex editor and binary comparison(first on few files and then all) to get best setting. And even wrong(but close) settings were still compatible with 80%+ of all archive.
So by saying all that what were you trying to say by this "I dont know if you want to go this route" ? That Razor should find the correct parameters ? I don't think he has that much of an interest in far cry 5 or wants to waste time doing all that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Information about ZTool 78372 Conversion Tutorials 72 10-10-2019 06:27
ztool info doofoo24 Conversion Tutorials 2 24-12-2017 22:08
ZTool (Ultimate Precompressor) Razor12911 Conversion Tutorials 16 20-07-2017 07:56



All times are GMT -7. The time now is 10:33.


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