#1
|
|||
|
|||
Xtool:crilayla 4Gb patched
So I had an interesting experience with repacking Valkyria Chronicles 4 yesterday. There is a base.cpk file of 22gb size. I still prefer to use older xtool with crilayla support as newer methods produce temporary files and spawn processes. By default I have it set to c32mb chunk size. File was inflated to 32.8gb, yet after compression I only achieved around 2gb better size than fitgirl. However, I recoded videos from 9.9gb to 1.7gb! So knowing I missed something I started experiencing:
Code:
t8 + c32mb = 32.8gb t8 + c64mb = 37.8gb t8 + c128mb = 39.4gb t8 + c256mb = ~27gb Code:
t4 + c256mb = ~32gb I started testing and watching again for memory usage but did not wait to finish whole file because was late, but at reaching input stream of around 8gb, xtool was inflating to 11gb and stayed just under 2gb usage (~1850mb), remaining there(test was done with lz scan). 32bit exe's by default do not support 4gb memory usage, but only 2gb due to OS constrains, so idea to apply 4gb patch came to my mind. And behold, there was a difference. Already at input of ~4gb, xtool went above 2gb RAM and also inflated more. At input of ~6gb, it was already consuming ~2.5gb memory and inflated to around ~11gb(before it inflated to 11gb when input was already at 8gb). This was with same settings. I did not continue as it was almost morning, but clearly patching exe helped. Before, there would be no error or anything, tool will silently drop processing chunks and you get smaller size! With patched exe again: Code:
t4 + c256mb = 42.3gb! xtool_4gb_crilayla.zip EDIT: Just in case although it should be obvious, all credit goes to Razor for making the tool in the first place! Last edited by elit; 18-06-2022 at 07:20. |
The Following 5 Users Say Thank You to elit For This Useful Post: | ||
:( Sad8669 (18-06-2022), Gehrman (18-06-2022), kj911 (18-06-2022), L0v3craft (20-06-2022), Razor12911 (24-06-2022) |
Sponsored Links |
#2
|
|||
|
|||
Here is my recommendation on maximum threads/chunk size with patched xtool:crilayla, based on observation from compressing 22gb cpk:
-use c512mb as a maximum and on single thread(t1) -2t c256mb -4t c128mb -8t c64mb ...and so on. On 2t c256mb I reached ~3.6gb ram usage, hence above recommendation. Raising chunk size worked for me, I was able to repack Valkyria Chronicles 4 to 7.5gb, which correspond with recoded videos size. Moral of the story is, just because you were able to inflate data does not mean it inflated them all properly. This is especially valid for crilayla and sometimes zlib/deflate, less so for fixed stream chunk oriented compression in games like lz4, zstd, oodle? and so on. |
#3
|
|||
|
|||
So, for games that use zlib, can you bring an improvement in compressibility, a larger chunk size, more efficient unpacking of data that can be repackaged more efficiently?
|
#4
|
|||
|
|||
@kj911 I only patched older xtool that still supported crilayla natively, because it is 32bit app - to utilize full 4gb memory range. New xtool is 64bit in active development and any query for better efficiency shall be addressed to its original developer.
|
#6
|
|||
|
|||
Quote:
sample.7z Now this is how it inflate with older xtool: sample.png With new xtool and either of 2 following settings, it does nothing: Code:
[cpk2] Encode=crilayla.exe d <library> Decode=crilayla.exe e <library> [cpk,snappy,rfpk,slz_03] Encode=quickbms.exe -s "comtype <codec> ; clog <fileout> 0 <insize> <outsize>" "" <filein> Decode=quickbms.exe -s "comtype <codec>_COMPRESS ; clog <fileout> 0 <insize> <outsize>" "" <filein> All files(quickbms.exe, crilayla.exe, xtool.exe + libs + xtool.ini) are in xtool directory. I swear it was working before, maybe I tested on different cpk file/game? EDIT: I can now confirm problem being new xtool with either method. It does work on another file from same game(dlc_003_en.cpk) but not on base.cpk(or provided sample). Old xtool(one provided here) does work on both files. Last edited by elit; 25-06-2022 at 10:39. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
REQ: Fifa 06 Mini Image for the Patched version (to fix the controller issue) | bu22ard | PC Games | 1 | 22-10-2005 12:24 |
HELP!! Patched dino crisis still not working! any suggestions? | sneaky1 | PSX Games | 9 | 09-05-2002 00:04 |
THE ITALIAN JOB AND PATCHED GAMES | Ali130 | PSX Games | 1 | 14-01-2002 06:15 |
Modded SCPH-15000... and patched Pal PS2 Games | MachT | PSX Games | 2 | 15-03-2001 15:25 |
NEEDED: No-CD cracked .exe for PATCHED version of Delta Force Land Warrior | jdiehl | PC Games | 0 | 13-11-2000 14:08 |