|
|
|
#1
|
||||
|
||||
|
PrinceGupta there is a reason ztool comes with external libraries, it’s for user to change them until he finds one that was used in a particular game. Decompression is never a problem, but recompression is. When it comes lz4 and zstd, everything must be precise else you will get crc mismatch every time. Perhaps a bit with ztool since it comes with internal diff patching functions when user used a dll that was not used for compression in first place
|
| The Following 4 Users Say Thank You to Razor12911 For This Useful Post: | ||
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
Quote:
. EDIT: Well actually, thinking of it it may not be enough with lz4/zstd. I dont know how you coded it but in this case for example, default library would read block structure wrong even if compression match because of mentioned crc position which is part of the block, unless your tool is skipping it and can focus only on game data. Still, it gave me an idea that one perhaps doesnt need to repack whole game archives with quickbms anymore, because depending on how your ztool works, maybe all I need is to modify library as I did here and ztool could function again. That would be great and would made ztool universal, then all you do is compile all lz4 versions and recycle them forever. But I would like to know more in detail how your tool work/read data exactly to understand, though its probably your secret so I am not going to ask. Last edited by elit; 10-01-2018 at 12:32. |
| The Following User Says Thank You to elit For This Useful Post: | ||
EzzEldin16 (11-01-2018) | ||
|
#3
|
||||
|
||||
|
Quote:
I can tell you how it works if you want, it's no secret. |
|
#4
|
|||
|
|||
|
That would be helpful, you can PM me or post it here whatever you prefer.
I actually tried to use lib from this version that I know works with the game and could not get it unpack anything with ztool(output same size). But I am not sure if I did it right, you see your lz4.dll have ~60kb while my compiled had around ~200+kb and I made .dll by manually changing function in makefile code - in function "add_library" where I added "SHARED" flag, something like this: Code:
add_library(liblz4 ${LZ4_SRCS_LIB}) >> add_library(liblz4 SHARED ${LZ4_SRCS_LIB})
Additionally, I found on zenhax forums that zstd may not be so bad after all, it does keep track of different version in header: "zstd It starts with a little endian 32bit magic number, when seen with a hex editor only the first byte (the low 8bit) is different because it depends by the version of the algorithm: Code:
1e b5 2f fd v0.1 22 b5 2f fd v0.2 23 b5 2f fd v0.3 24 b5 2f fd v0.4 25 b5 2f fd v0.5 26 b5 2f fd v0.6 27 b5 2f fd v0.7 28 b5 2f fd v0.8, current version" Last edited by elit; 12-01-2018 at 12:38. |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ultimate Conversion Compressor (UCC) | vollachr | Conversion Tutorials | 55 | 26-04-2021 09:27 |
| PSX Modchip FAQ | Ne0 | PSX Games | 1 | 07-08-2009 08:18 |
| QUERY: editing CloneCD images & best for game data & music CDs | andwan0 | CD/DVD Software & Utilities | 2 | 18-05-2009 18:13 |
| CD/DVD Data Recovery | 123walter | CD/DVD Software & Utilities | 1 | 05-08-2005 21:53 |
| 99min CD-R's, my great experience w/Audio & Data | abbadon | CD/DVD Recordable Media | 10 | 15-05-2002 23:16 |