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 20-05-2019, 15:13
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
LZ4 Stream detector (Test project)

Hi guys, first of. I'd like to start by saying that lz4 is a shit codec to handle when it comes to universal precompression. 2 years ago, I lost some of my source codes then a few days back, I found them because I had totally forgotten what was really required to make the damn thing work.

I bring this slow af stream detector, try it on a few games.

* NOTE *

You must have experience with game repacking and have knowledge as to how streams/blocks really work.

I say this because this thing can be really slow but depending on what you use it on and how you use it. For example, call of duty has those ff files, their data is stored in 64k blocks, if you open the batch file, you'll find 65536 as default which means it should detect streams from those files very quickly.

Those games that use unity engine normally come with 128k blocks, so you should open bat and give in 131072.

The other thing is, this detector as of right now only detects streams/blocks of the specified size, meaning if a file contains blocks of a different size, those will not be detected, still working on it...

That is all for now so go give it a shot and perhaps upload a few samples if you have any that are interesting that I should look at.

* ROAD MAP *

If all goes well with a couple of tests which I'll be posting, there should be a lz4rec side project that should handle lz4 precompressed games, provided I figured out how to speed it up a bit
Attached Files
File Type: 7z rawdet_lz4_T1.7z (418.5 KB, 130 views)

Last edited by Razor12911; 20-05-2019 at 15:16.
Reply With Quote
The Following 22 Users Say Thank You to Razor12911 For This Useful Post:
78372 (20-05-2019), arkantos7 (22-05-2019), CANNIBAL (20-05-2019), Carldric Clement (20-05-2019), DiCaPrIo (21-05-2019), dixen (20-05-2019), ffmla (21-05-2019), giothothan (30-05-2019), Grumpy (21-05-2019), GTX590 (23-05-2019), HunterEmrah (17-08-2019), Jiva newstone (20-05-2019), JRD! (23-05-2019), KaktoR (20-05-2019), kenzo34 (20-05-2019), L0v3craft (23-05-2019), PsYcHo_RaGE (27-05-2019), sathex (27-06-2019), shazzla (20-05-2019), ShivShubh (24-11-2019), Simorq (20-05-2019), ZAZA4EVER (20-05-2019)
Sponsored Links
  #2  
Old 20-05-2019, 15:47
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
Thanks for this

No lz4hc, right?
__________________
Haters gonna hate
Reply With Quote
  #3  
Old 20-05-2019, 17:48
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
doesn't matter, if it's a lz4 stream whether compressed with lz4hc or not it should work
Reply With Quote
The Following 5 Users Say Thank You to Razor12911 For This Useful Post:
Carldric Clement (22-05-2019), IgorKolesnik (24-05-2019), KaktoR (21-05-2019), shazzla (20-05-2019), ShivShubh (24-11-2019)
  #4  
Old 23-05-2019, 00:45
IgorKolesnik IgorKolesnik is offline
Registered User
 
Join Date: Dec 2018
Location: Kiev
Posts: 31
Thanks: 27
Thanked 7 Times in 6 Posts
IgorKolesnik is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
doesn't matter, if it's a lz4 stream whether compressed with lz4hc or not it should work
will update game file scaner?
Reply With Quote
The Following User Says Thank You to IgorKolesnik For This Useful Post:
L0v3craft (23-05-2019)
  #5  
Old 26-05-2019, 21:53
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by IgorKolesnik View Post
will update game file scaner?
not sure if I still have the source for that thing.

@everyone
17 thanks given... yep keep them coming, I just wonder if half of you even tested this thing
Reply With Quote
The Following 3 Users Say Thank You to Razor12911 For This Useful Post:
78372 (27-05-2019), oltjon (27-05-2019), ShivShubh (24-11-2019)
  #6  
Old 28-05-2019, 01:41
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
Well the truth is I don't know what to do with the last 3 numbers

I will test a bit around with DOS2EE (the only game I have and know of which use lz4 (even it should be lz4hc)).
__________________
Haters gonna hate
Reply With Quote
  #7  
Old 29-05-2019, 13:54
IgorKolesnik IgorKolesnik is offline
Registered User
 
Join Date: Dec 2018
Location: Kiev
Posts: 31
Thanks: 27
Thanked 7 Times in 6 Posts
IgorKolesnik is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
not sure if I still have the source for that thing.

@everyone
17 thanks given... yep keep them coming, I just wonder if half of you even tested this thing
sorry, I thought it would be the development of the project.
Reply With Quote
  #8  
Old 30-05-2019, 18:25
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
Great to see you again, I will give it a try in coming days though I have no idea which games that I have use lz4. I will probably look at list of unity games on the net and see if some I have "click".

With that said, I strongly recommend everyone to also try 4096, 8192, 16384 and 32768! It may look a lot but together with 65536 and 131072 it should be all thats needed for 99% cases. Run them all in parallel per file through another custom bat file you make.

Btw Razor, I am pretty sure if this work it can be applied exactly same to zstd, only different library and call names. Although I am not sure how you want to make it universal(game-wise), its not only about version differences but more about structure(crc vs no crc, cmp size, decmp size, positions and ordering of all above etc..).

With that said, universal lz4 rec is certainly missing and yes I agree, its a shitty codec - I personally hate it with passion - both lz4 AND that ugly overrated zstd.
Reply With Quote
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
Project Cars Digital Edition (3xDVD5) (srep+lzma) GTX590 PC Games - CD/DVD Conversions 10 28-08-2017 08:34
Project IGI Anthology 1xCD700 CIUV2 2039 mausschieber PC Games - CD/DVD Conversions 0 24-07-2017 15:12
Reflate Bilawal Conversion Tutorials 63 08-08-2016 14:34
Nero PMA Update failure angelosbg CD/DVD Software & Utilities 9 24-09-2008 03:40
Space Channel 5 Part 2 Translation Project Christuserloeser DC Games 0 21-06-2004 18:16



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


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