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

Reply
 
Thread Tools Display Modes
  #1  
Old 13-01-2018, 15:07
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
LZ_Scan

LZ_Scan is a small scripted utility that consist of several tools and is primarily based on Razor's ztool. It is a reliable alternative to GFS(Game File Scan). Output size difference in this tool will be exactly what you get when using ztool on game data with same settings. It is also more stable than GFS with much less freezes. I posted it once somewhere, now I decided to update script and post it in its own thread. Supported formats are same as ztool: zlib/deflate, lz4, lzo and zstd.

Usage:
Run .bat file, type one of the available lz formats(and its settings if needed), select file or directory to scan, wait for finish, compare size differences. Thats it.

EDIT:
Remember you can use file masks to scan only specific files, eg: "C:\gamefolder\*.pak"

EDIT2:
New updated version 1.2 released. Include uelr(Unreal decmp tool) and AFR(Anvil forge decmp tool). These however write temporarily to disk within lz_scan directory(therefore consider where to place it). AFR only need input file as output is written into NULL, because it display all necessary info on its own. Uelr need both input and output tmp file for lz_scan to be able to measure size differences. Temp files are automatically deleted. Script was also further improved for more unified and seamless usage.

EDIT3:
New version 2.0. Now includes xtool v0.12. Z-Tool still supported as well.

lz_scan2.0.7z

Last edited by elit; 06-07-2019 at 06:27.
Reply With Quote
The Following 18 Users Say Thank You to elit For This Useful Post:
-NORO- (14-01-2018), 78372 (13-01-2018), COPyCAT (24-01-2018), dixen (07-07-2019), doofoo24 (13-01-2018), EzzEldin16 (14-01-2018), ffmla (15-01-2018), Jiva newstone (13-01-2018), KaktoR (15-02-2018), L0v3craft (30-08-2018), MagixZ (06-08-2019), nickwazhere2012 (14-01-2018), oltjon (13-01-2018), PsYcHo_RaGE (09-07-2019), rambohazard (13-01-2018), shazzla (14-01-2018), Simorq (13-01-2018), vint56 (14-01-2018)
Sponsored Links
  #2  
Old 16-01-2018, 14:34
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
Replace start.bat with this one, its better.

[Removed = obsolete.]

Last edited by elit; 06-07-2019 at 06:28.
Reply With Quote
The Following 5 Users Say Thank You to elit For This Useful Post:
78372 (17-01-2018), COPyCAT (24-01-2018), EzzEldin16 (17-01-2018), oltjon (17-01-2018), Simorq (16-01-2018)
  #3  
Old 17-01-2018, 12:28
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
You start with "start.bat". Then:
procedure.png
- First you type one of the available methods, like I did "pzlib:high" for this game file as example.
- Then path to file or directory as shown(use quotes for paths with spaces, also tab completition works just like in shell here so you dont have to type everything).
- Then you wait and when done you compare 2 size differences as shown in picture example. If second number is bigger it mean inflation worked for this. If same or too close you either got wrong method, game is not compressed or is not supported by ztool.
- You can also see overall time it took in seconds as below.
- Finally you can start all over again or quit.

Last edited by elit; 17-01-2018 at 12:30.
Reply With Quote
The Following 2 Users Say Thank You to elit For This Useful Post:
COPyCAT (24-01-2018), EzzEldin16 (18-01-2018)
  #4  
Old 12-02-2018, 01:12
ZakirAhmad ZakirAhmad is offline
Registered User
 
Join Date: Sep 2015
Location: Kmr
Posts: 291
Thanks: 56
Thanked 49 Times in 35 Posts
ZakirAhmad is on a distinguished road
Can we mofify it for afr, uelr etc.
Reply With Quote
  #5  
Old 14-02-2018, 06:14
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
Quote:
Originally Posted by ZakirAhmad View Post
Can we mofify it for afr, uelr etc.
I want to include them as well, when I have more time - in next version. This will also make it more universal not just for ztool.
Reply With Quote
The Following 3 Users Say Thank You to elit For This Useful Post:
oltjon (14-02-2018), Simorq (14-02-2018), ZakirAhmad (14-02-2018)
  #6  
Old 14-02-2018, 08:41
ZakirAhmad ZakirAhmad is offline
Registered User
 
Join Date: Sep 2015
Location: Kmr
Posts: 291
Thanks: 56
Thanked 49 Times in 35 Posts
ZakirAhmad is on a distinguished road
Quote:
Originally Posted by elit View Post
I want to include them as well, when I have more time - in next version. This will also make it more universal not just for ztool.
this would be great step.
Reply With Quote
  #7  
Old 14-02-2018, 18:28
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
Unfortunately I found that neither uelr nor afr support stdio/pipelining, which without further coding is impossible to implement AFAIK.
EDIT: I am working on it already, it will be done but will use disk writes.

Last edited by elit; 15-02-2018 at 06:17.
Reply With Quote
  #8  
Old 15-02-2018, 10:32
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
New version released. Include uelr, AFR and script enhancements. Don't say I never loved you .
Reply With Quote
The Following 4 Users Say Thank You to elit For This Useful Post:
78372 (15-02-2018), KaktoR (15-02-2018), romulus_ut3 (16-02-2018), ZakirAhmad (15-02-2018)
  #9  
Old 15-02-2018, 18:57
ZakirAhmad ZakirAhmad is offline
Registered User
 
Join Date: Sep 2015
Location: Kmr
Posts: 291
Thanks: 56
Thanked 49 Times in 35 Posts
ZakirAhmad is on a distinguished road
Good job bro.
Reply With Quote
The Following User Says Thank You to ZakirAhmad For This Useful Post:
elit (16-02-2018)
  #10  
Old 19-02-2018, 14:07
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
Fixed non recursing subdirectories on mask. New file upped.
EDIT: There is still problem with parsing, will update soon.
EDIT2: Done. Hopefully now for good.
EDIT3: Turned out 7z already have cleaner solution with -r0 option. Upped again.

Last edited by elit; 20-02-2018 at 12:45.
Reply With Quote
  #11  
Old 16-03-2018, 05:33
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,746
Thanks: 703
Thanked 4,052 Times in 1,469 Posts
KaktoR is on a distinguished road
It would be good if you could add output.txt which lists all files contain streams.
__________________
Haters gonna hate
RIP GOD
Reply With Quote
  #12  
Old 17-03-2018, 08:40
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
It would be good if you could add output.txt which lists all files contain streams.
You dont need this tool for that, you can simply "for /r %i in ("*.*") do (ztool ... "%i" 1>> file.log) or something like that

To know which file have stream individually I would have to process them one by one and compare output. That would be too much for a simple shell script that use tar to process all in one stream. Also slower.

You can use file mask to check files with specific extension only, or check single file as that mean all others with same extension will be processable.
Reply With Quote
  #13  
Old 06-07-2019, 06:31
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
New version 2.0 in the first post. Added x-tool 0.12 support. I have not tested oodle and crilayla and although it should work, let me know if it doesn't.
Reply With Quote
The Following User Says Thank You to elit For This Useful Post:
ffmla (06-07-2019)
  #14  
Old 07-07-2019, 08:09
IgorKolesnik IgorKolesnik is offline
Registered User
 
Join Date: Dec 2018
Location: Kiev
Posts: 28
Thanks: 25
Thanked 5 Times in 4 Posts
IgorKolesnik is on a distinguished road
can I check the file immediately for all possible encryption? or each method separately only?
Reply With Quote
  #15  
Old 07-07-2019, 09:56
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 182
Thanks: 127
Thanked 251 Times in 88 Posts
elit is on a distinguished road
Quote:
Originally Posted by IgorKolesnik View Post
can I check the file immediately for all possible encryption? or each method separately only?
This tool scan for compression, not encryption. If you mean several types of compression at once, no. You select single compression and see if it inflate. You can do 2 things though:
1, test single smaller file known to be likely compressed first to save time
2, run several scripts at once in parallel, each doing its own specific cmp test
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



All times are GMT -7. The time now is 12:07.


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