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

Reply
 
Thread Tools Display Modes
  #286  
Old 01-06-2018, 10:28
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,208
Thanks: 1,736
Thanked 7,793 Times in 1,774 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by doofoo24 View Post
what about far cry primal and watch dog ?
I heard Far Cry Primal uses modified lz4 and as for Watch Dogs, I have no idea how to use xcompress library in Delphi otherwise detecting its streams is easy.
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
oltjon (01-06-2018), Simorq (01-06-2018)
Sponsored Links
  #287  
Old 01-06-2018, 10:40
LuzhinE's Avatar
LuzhinE LuzhinE is offline
Registered User
 
Join Date: Jan 2014
Location: Peru
Posts: 228
Thanks: 26
Thanked 34 Times in 28 Posts
LuzhinE is on a distinguished road
If I like that idea, here I leave the game for tests thanks Razor12911

MGSV Ground Zeroes
Reply With Quote
  #288  
Old 01-06-2018, 10:42
Simorq's Avatar
Simorq Simorq is offline
Registered User
 
Join Date: Mar 2014
Location: Iran
Posts: 569
Thanks: 3,198
Thanked 952 Times in 366 Posts
Simorq is on a distinguished road
Hi Razor12911
Unreal Engine 3 LZO may be added in the future?
XCOM 2, Outlast 2, Get Even
Reply With Quote
  #289  
Old 01-06-2018, 12:18
alfredd31 alfredd31 is offline
Registered User
 
Join Date: Jul 2017
Location: Paris
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
alfredd31 is on a distinguished road
to doofoo24: what liblz4 did you use for cod aw?
Reply With Quote
  #290  
Old 01-06-2018, 12:47
alfredd31 alfredd31 is offline
Registered User
 
Join Date: Jul 2017
Location: Paris
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
alfredd31 is on a distinguished road
I already tried this one, it doesn't expand anything (Only tried imagefile1.pak). Did you use xtool.ini?
I used this:
packcmd = xtool.exe erecomp:t4:v:c32:lz4 - - <stdin> <stdout>

By the way, note that you can find some of my repacks - Quantum Break (23.3 Gb) and outlast 2 (10.2Gb) on ygg if you are interested. You can erase this, I'm sure it's against the rules of the forum.
Reply With Quote
  #291  
Old 01-06-2018, 13:11
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,208
Thanks: 1,736
Thanked 7,793 Times in 1,774 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by alfredd31 View Post
I already tried this one, it doesn't expand anything (Only tried imagefile1.pak). Did you use xtool.ini?
I used this:
packcmd = xtool.exe e:precomp:t4:v:c32:lz4 - - <stdin> <stdout>

By the way, note that you can find some of my repacks - Quantum Break (23.3 Gb) and outlast 2 (10.2Gb) on ygg if you are interested. You can erase this, I'm sure it's against the rules of the forum.
@everyone

Please make sure the command line is correct first.

"e:precomp:t4:v:c32:lz4" is heavily incorrect
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
  #292  
Old 01-06-2018, 13:16
alfredd31 alfredd31 is offline
Registered User
 
Join Date: Jul 2017
Location: Paris
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
alfredd31 is on a distinguished road
Well, it seems it works with erecomp:t100p:lz4 with .ff files. For pak files it's ok too. (except for soundfiles which can't be expanded).

Last edited by alfredd31; 01-06-2018 at 13:21.
Reply With Quote
  #293  
Old 01-06-2018, 13:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,208
Thanks: 1,736
Thanked 7,793 Times in 1,774 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by alfredd31 View Post
Well, it seems it works with erecomp:t100p:lz4 with .ff files. Doesn't seem to work with .pak files though.
imagefile59.pak
Code:
Compressed 1 file, 153,906,476 => 312,811,044 bytes. Ratio 203.25
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
  #294  
Old 01-06-2018, 13:22
alfredd31 alfredd31 is offline
Registered User
 
Join Date: Jul 2017
Location: Paris
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
alfredd31 is on a distinguished road
bik reencoded at 70% indeed. Do you think you could get sth much better? probably not. I did nothing special just used srep and lolz.

Last edited by alfredd31; 01-06-2018 at 13:26.
Reply With Quote
  #295  
Old 02-06-2018, 04:27
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,502
Thanks: 630
Thanked 3,615 Times in 1,292 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by alfredd31 View Post
I already tried this one, it doesn't expand anything (Only tried imagefile1.pak). Did you use xtool.ini?
I used this:
packcmd = xtool.exe e:precomp:t4:v:c32:lz4 - - <stdin> <stdout>
As razor sayd, options are incorrect.

This one is correct
Code:
packcmd = xtool.exe e:precomp:t4,v,c32m:lz4 - - <stdin> <stdout>
{options} must be seperated by a comma (,), not a colon (:).

And you forgot a "m" for chunk size.
__________________
Haters gonna hate
RIP GOD
Reply With Quote
  #296  
Old 02-06-2018, 14:54
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 166
Thanks: 123
Thanked 242 Times in 85 Posts
elit is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Update available

- fixed 2gb+ input issue... (int32 instead of int64 :()
Lol I know alright, same trap happened to me with my rawinjector ^_^.

Quote:
Originally Posted by Razor12911 View Post
Edit xtool.ini, add all the dat files in there

[CODE][Dunia2]
File1=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\common.dat
File2=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\ige.dat
...
Now this is nice step forward, to support files like this that are perhaps not easy to detect. I would love to see this going even further in the future, where user could script offsets and data reading with few commands. Example:
Code:
HEAD "0f3b4c5b"
SKIP 125
CMPSZ 8
DECMPSZ 8
READ CMPSZ DECMPSZ
Above example would mean: find first/next header with "0f3b4c5b" bytes, then skip 125 bytes, then read 64bit integer that is compressed size, then same for decompressed size, then read and precomp next CMPSZ bytes with above info, repeat until EOF.

Idea is that most engines have similar structures, there are some headers, some data to skip, there is CMP and DECMP sizes info in between and then actual compressed data chunks. So instead of keeping maintenance for every new game/engine which rely on Razor to be here for us and kind enough to work on updates, this would make xtool more forward compatible for the future games without needing to constantly updating it. At least until codecs API's change. I know it will not be enough for every future game but it should cover plenty of them.

Quote:
Originally Posted by KaktoR View Post
This one is correct
Code:
packcmd = xtool.exe e:precomp:t4,v,c32m:lz4 - - <stdin> <stdout>
{options} must be seperated by a comma (,), not a colon (:).
I apologize for stupid question but was there specific reason for using extra "precomp" word, aka e:precomp... instead of just e:... d:... as was in ztool? To me it seems redundant as e: and d: already imply default behavior(encode vs decode) and precomp seem'd to me at first confused with precomp tool by schnaader. Also using different separators, aka ',' and ':' for specific areas of cmd make it prone to type error, as happened to me before and I seem to be not the only person. Pure ':'s in ztool were fine and easier for inclussion with other utilities IMO. BTW I am not complaining, this tool is fantastic and ultimate, just being curious about new design.
Reply With Quote
  #297  
Old 02-06-2018, 14:59
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,502
Thanks: 630
Thanked 3,615 Times in 1,292 Posts
KaktoR is on a distinguished road
Don't ask me, ask razor why
__________________
Haters gonna hate
RIP GOD
Reply With Quote
  #298  
Old 02-06-2018, 15:34
Andu21 Andu21 is offline
Registered User
 
Join Date: Feb 2016
Location: FileForums
Posts: 92
Thanks: 146
Thanked 34 Times in 28 Posts
Andu21 is on a distinguished road
Quote:
Originally Posted by elit View Post
I apologize for stupid question but was there specific reason for using extra "precomp" word, aka e:precomp... instead of just e:... d:... as was in ztool? To me it seems redundant as e: and d: already imply default behavior(encode vs decode) and precomp seem'd to me at first confused with precomp tool by schnaader.
Only explanation i find is that xtool won't be limited to pre-compression only. I might be talking gibberish here and it's just a redundant word as you say. ;)
Reply With Quote
  #299  
Old 02-06-2018, 21:38
ShivShubh ShivShubh is offline
Registered User
 
Join Date: Dec 2015
Location: India
Posts: 57
Thanks: 35
Thanked 49 Times in 25 Posts
ShivShubh is on a distinguished road
Quote:
Originally Posted by Andu21 View Post
Only explanation i find is that xtool won't be limited to pre-compression only. I might be talking gibberish here and it's just a redundant word as you say.
Razor certainly has plans to implement already exisiting compressors into xtool like razor,lolz etc... with stdio support to make it a universal tool but I might be also talking gibberish here, only Razor knows
Reply With Quote
  #300  
Old 03-06-2018, 03:28
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 68
Thanks: 66
Thanked 50 Times in 26 Posts
dixen is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Edit xtool.ini, add all the dat files in there

Code:
[Dunia2]
File1=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\common.dat
File2=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\ige.dat
File3=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\patch.dat
File4=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\patch_german.dat
File5=C:\Program Files (x86)\Far Cry 3 Complete Collection\Far Cry 3\data_win32\shadersobj.dat
something like this then use lzo codec in arc.ini

Code:
[External compressor:xprecomp]
header    = 0
packcmd   = xtool.exe e:precomp:t4:lzo - - <stdin> <stdout>
unpackcmd = xtool.exe d:precomp:t4 - - <stdin> <stdout>
Code:
Compressed 12 files, 700,791,484 => 1,143,391,721 bytes. Ratio 163.16%
Compression time: cpu 1.31 sec/real 104.83 sec = 1%. Speed 6.68 mB/s
Code:
Extracted 12 files, 1,143,391,721 => 700,791,484 bytes. Ratio 163.16%
Extraction time: cpu 1.98 sec/real 72.79 sec = 3%. Speed 9.63 mB/s
Same applies to Far Cry 4 and Far Cry 5, except with Far Cry 5, use lz4
Thamks but fc3_main.dat (3.2gb) not decompressing(((
Reply With Quote
Reply

Thread Tools
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 05-03-2018 17:13
ztool info doofoo24 Conversion Tutorials 2 24-12-2017 23:08
ZTool (Ultimate Precompressor) Razor12911 Conversion Tutorials 16 20-07-2017 08:56



All times are GMT -7. The time now is 11:58.


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