FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Game File Scanner (https://fileforums.com/showthread.php?t=99270)

Razor12911 06-06-2017 18:29

Game File Scanner
 
2 Attachment(s)
Another file scanner for games, helps you figure out what compression algorithm was used.

Mini 06-06-2017 18:55

good work!

Gupta 06-06-2017 19:07

Can you add zlib level detector i mean you already have one

Razor12911 06-06-2017 21:32

2 Attachment(s)
Update available

Changes

-Added crilayla detector. (Might be buggy) Screenshot below shows final size of program vs the unpacked data using Criware CriPack GUI.

unarc 125 06-06-2017 21:59

Works good !
Just a little bug if scan button is pressed and input is nothing then the button get disabled and never get enabled back even if we give input.
And btw lz4 scanning is same good as zlib ?

Razor12911 06-06-2017 22:04

Quote:

Originally Posted by PrinceGupta2000 (Post 459547)
Can you add zlib level detector i mean you already have one

I made zlib scanner only focus on deflate streams (no zlib header)

Quote:

Originally Posted by unarc 125 (Post 459551)
Works good !
Just a little bug if scan button is pressed and input is nothing then the button get disabled and never get enabled back even if we give input.
And btw lz4 scanning is same good as zlib ?

Then you have to terminate program and try again with higher chunk size or by disabling some algorithms. Happy belated birthday btw :)

unarc 125 06-06-2017 22:21

Thank you :)
And if you increase the width and decrease in height would be good

Razor12911 06-06-2017 22:46

Quote:

Originally Posted by unarc 125 (Post 459554)
Thank you :)
And if you increase the width and decrease in height would be good

Done.

unarc 125 06-06-2017 22:55

Sweet !

Crynuvo 07-06-2017 03:45

Many Thanks For The Tool! :)

Jiva newstone 07-06-2017 04:35

best of scanning

KaktoR 07-06-2017 04:57

We can not scan a whole folder instead of a single file?

Razor12911 07-06-2017 06:22

Update available

Changes

-Fixed a few bugs
-Updated Crilayla detection for more speed and accuracy
-Updated zlib and lz4 detection for less false positives
-Removed Dishorned 2 support (headache...)
-Added wav, bink and vp6 detection

omdj 07-06-2017 08:29

Quote:

Originally Posted by KaktoR (Post 459563)
We can not scan a whole folder instead of a single file?

Yes, it would be more practical.

Razor12911 09-06-2017 22:01

1 Attachment(s)
Update available


Changes

-Added directory scanning option
-Readded Dishonored 2 support
-Added Naruto shippuden ninja storm support

KaktoR 29-06-2017 09:20

1 Attachment(s)
Thanks.

Which one is correct?

78372 29-06-2017 10:27

Check again with headerless and force detection turned on

KaktoR 29-06-2017 10:49

Thanks for that info.

It is quiet even now (~200 less).

Razor12911 15-07-2017 23:51

Update available

Changes

-Added FIFA 17 support

EzzEldin16 16-07-2017 15:57

is that somekind of a bug or what ?
i was scanning NFS:Shift 2 Unleashed and i don't know what kind of streams are there
all what was showing size is <Overall results:Size: 3.63 GB >> 3.63 GB> so tell what to do
am i doing something wrong ?
is it another type of data streams or what ?

Razor12911 16-07-2017 17:47

Quote:

Originally Posted by EzzEldin16 (Post 460742)
is that somekind of a bug or what ?
i was scanning NFS:Shift 2 Unleashed and i don't know what kind of streams are there
all what was showing size is <Overall results:Size: 3.63 GB >> 3.63 GB> so tell what to do
am i doing something wrong ?
is it another type of data streams or what ?

I think that game is encrypted just like Project CARS since it's developed by the same people.

Razor12911 16-07-2017 17:49

1 Attachment(s)
Quote:

Originally Posted by PrinceGupta2000 (Post 459547)
Can you add zlib level detector i mean you already have one

Update available

Changes

-Added zlib level detector, it's quite a bit slow but did my best for more speed, which led to inaccuracy on some input.

dixen 08-08-2017 10:03

Hi guys!
http://f2.s.qip.ru/jjb2KIJH.png
How decompress it?

EzzEldin16 08-08-2017 16:36

What do you mean by decompress ?

JustFun 08-08-2017 17:34

He probably thinks this is compressor, this tool is only for scanning game files its not used to compress them.

EzzEldin16 09-08-2017 02:49

@JustFun probably

dixen 09-08-2017 03:03

Guys, I know it's the scanner. Therefore I asked how to decompress what is selected in the screenshot

EzzEldin16 12-08-2017 11:42

AGAIN what do you mean by decompress show us what you have is it an a game or an archive or what is it you can't extract data streams can you ?

lrgame1983 15-08-2017 00:22

damn this is nice, thanks razor12911

L0v3craft 30-08-2017 10:47

Hi Razor12911. Thanks for this program ! I have just a little request. Is possible to add a button to save a report of the scanned files ?

For example, I have 945 files with .umap extension. I know that not all of them have zlib streams. I would like to get a report(a txt file) with your program, a list of the only files that have some stream inside. So I can know which files needs to be pumped with pzlib.

elit 18-09-2017 12:34

I am having problem with latest R8 version if I scan games directory. Scan can get stuck on some file where progress bar reach the end but never move to another file. CPU core remain loaded but I think it encountered loop. It remain so forever(read hours). Only force quit app process is then solution. Chunk size or threads doesnt seem to help but different individual settings *may* make the app get stuck at different progress. This happen in almost every game that is big(20+gb)(GR Wildlands, Arma 3 LoW as few examples).

However if I scan that particular file where it got stuck it will pass fine. I scan Zlib, LZO and LZ4 only(for ztool). Zlib is probably ok as it alone passed game that got stuck before with +lzo +lz4 selected, those 2 can get stuck even if selected alone. I think one solution is to "tar" the directory and pass it as a single file, will try this later.

If anyone know something regarding this I would greatly appreciate it.

Btw is there an app to scan LZO like ds4zlib and ds4lz4? Something like "ds4lzo"? Those 2 are great and also show coverage percentage and most important have *zero problems*, if there was one for lzo as well I would use it instead.

PS:(!***THANK YOU RAZOR***!)

KaktoR 18-09-2017 13:28

i have the same.

No solution for it until now.

elit 18-09-2017 15:03

I tried tarring folder into single file, did not help still get stuck. There was enough free memory so its not memory leaks either. I dont know why it get stuck when same "problematic" individual file pass fine. I dont think it have to do with file itself I think app get into loop stuck.

That said zlib scan works great so its only lzo(and maybe lz4 and/or others), in fact zlib scan is better than ds4zlib including its headerless and force detection option. That one only found few mb's whereas GFS found over gb in latest arma 3.

EDIT: OK maybe I found something. In GR W game LZO kept hanging until I increased chunk size sufficiently. Anything below 256mb hanged but at 256 it consistently passed. Also I recommend 1 thread because even though it did not caused hanging, it still screwed calculation at one point - badly(at least for that game). So for LZ4 & LZO I recommend use 1 thread and start with big enough chunk size, then scale down. I will try it more in later days. Hanging looks like giving you a hint to use bigger chunk size for recompressor.

Zlib is fine at any setting and never hang but I suspect it *maybe* give false positives sometimes. Either that or recompressors are not as advanced yet. I tested on one .forge file from GR W game, scanner showed possibility of unpack by few hundred mb's(with dynamic streams), but I couldnt get it with anything I tried, at any settings. I tried precomp(+intense), ztool(pzlib:ultra, :m3, :x etc...), pzlib3 but no go I got exact same file size.

EDIT2: Also DS4LZ4 give different size for Mirrors Edge Catalyst. GFS find about 7gb(packed) and DS4LZ4 almost 11gb(packed)(and hang at 95%). Both same settings. I dont know which one to believe now.

Razor12911 22-09-2017 11:45

Quote:

Originally Posted by elit (Post 462456)
I am having problem with latest R8 version if I scan games directory. Scan can get stuck on some file where progress bar reach the end but never move to another file. CPU core remain loaded but I think it encountered loop. It remain so forever(read hours). Only force quit app process is then solution. Chunk size or threads doesnt seem to help but different individual settings *may* make the app get stuck at different progress. This happen in almost every game that is big(20+gb)(GR Wildlands, Arma 3 LoW as few examples).

However if I scan that particular file where it got stuck it will pass fine. I scan Zlib, LZO and LZ4 only(for ztool). Zlib is probably ok as it alone passed game that got stuck before with +lzo +lz4 selected, those 2 can get stuck even if selected alone. I think one solution is to "tar" the directory and pass it as a single file, will try this later.

If anyone know something regarding this I would greatly appreciate it.

Btw is there an app to scan LZO like ds4zlib and ds4lz4? Something like "ds4lzo"? Those 2 are great and also show coverage percentage and most important have *zero problems*, if there was one for lzo as well I would use it instead.

PS:(!***THANK YOU RAZOR***!)



Quote:

Originally Posted by KaktoR (Post 462458)
i have the same.

No solution for it until now.



Quote:

Originally Posted by elit (Post 462461)
I tried tarring folder into single file, did not help still get stuck. There was enough free memory so its not memory leaks either. I dont know why it get stuck when same "problematic" individual file pass fine. I dont think it have to do with file itself I think app get into loop stuck.

That said zlib scan works great so its only lzo(and maybe lz4 and/or others), in fact zlib scan is better than ds4zlib including its headerless and force detection option. That one only found few mb's whereas GFS found over gb in latest arma 3.

EDIT: OK maybe I found something. In GR W game LZO kept hanging until I increased chunk size sufficiently. Anything below 256mb hanged but at 256 it consistently passed. Also I recommend 1 thread because even though it did not caused hanging, it still screwed calculation at one point - badly(at least for that game). So for LZ4 & LZO I recommend use 1 thread and start with big enough chunk size, then scale down. I will try it more in later days. Hanging looks like giving you a hint to use bigger chunk size for recompressor.

Zlib is fine at any setting and never hang but I suspect it *maybe* give false positives sometimes. Either that or recompressors are not as advanced yet. I tested on one .forge file from GR W game, scanner showed possibility of unpack by few hundred mb's(with dynamic streams), but I couldnt get it with anything I tried, at any settings. I tried precomp(+intense), ztool(pzlib:ultra, :m3, :x etc...), pzlib3 but no go I got exact same file size.

EDIT2: Also DS4LZ4 give different size for Mirrors Edge Catalyst. GFS find about 7gb(packed) and DS4LZ4 almost 11gb(packed)(and hang at 95%). Both same settings. I dont know which one to believe now.

No longer updating my programs, sorry. DS4LZ4 scans are false, almost all the time.

elit 22-09-2017 12:34

Quote:

Originally Posted by Razor12911 (Post 462508)
No longer updating my programs, sorry. DS4LZ4 scans are false, almost all the time.

Thanks for the info. Yes I read about it and understand you position. Really sorry about what happened.

If I may ask you one last thing, I am using GFS together in conjunction with ztool. These 2 tools are just as cool and as important for repacks as srep/freearc by this Bulat Zigurat guy(or whatever was his name, but his tools are truly fantastic as well).

So I scan the game folder and then use ztool+srep/freearc. But I noticed that GFS have "dynamic streams" option which can find significantly more data. But is ztool also able to find and process dynamic streams? Because if not there is no point scanning for them and can save time. And if yes do I need specific option?(So far I found that I get almost always same size regardless of whether I use :pzlib:ultra or no option.)

Thank you again for these cool tools & best regards.

Joe Forster/STA 22-09-2017 12:48

(If you write ":p" in your post, it will be displayed as a smiley like this: :p. For plain text, enclose it into "noparse" tags instead, like this: "[noparse]:p[/noparse]".)

elit 23-09-2017 10:56

1 Attachment(s)
Ok so gave it some thoughts, and realized... "why not just use ztool for scan directly"?
Because, to me it seems GFS and ztool are about same speed and only difference is disk writing process on the ztool side. And ztool not only never hang, it give you 100% accurate result of what you would actually get during recompression!

So, this calls for cmd scripting, I only tried basic one if it work on single file. And it does:
Attachment 19361

Just download dd for windows and pipe it to ztool. Make sure you /dev/null output.
Now, to make it more complex batch script for whole directory.... I guess tarring+pipelining would do(or 7z -m0 "store" + pipe), but for now you get an idea. It doesnt give you all the info, but then again what more you need than seeing size differences + this is 100% accurate to real result - no false positives and no missed streams.

elit 23-09-2017 16:49

2 Attachment(s)
Alright so I made the script. Edit it for your game path, change ztool parameters as needed and run it. It need DD command for windows which you can get here:
http://www.chrysocome.net/dd.
Next you need 7zip, specifically 7z.exe and 7z.dll only, and ztool.

Place everything in one folder, including my attached script Attachment 19363 and you are good to go. This script will show time at the beginning and the end of work(not shown on the pic as I added it later) and it will show original as well as pre-processed size at the end:
Attachment 19362

This script is slower than GFS as I found, probably because inefficient serial piping, but still "ok" and reliable. Unlike GFS, feel free to set up as many threads on ztool as you can to speed it up without reliability cost.

I recommend this for plz4 and plzo since they hang, you can keep using pzlib on GFS(with dynamic streams on) to get more or less same accuracy while being quicker. But if you want to have exact size that you would get using ztool, you can still use this for pzlib as well.

PS: since this doesnt utilize disk fully(like GFS do), you could have say 3 different batch script versions in the folder, one for pzlib, plz4 and plzo respectively and run all 3 of them at once.

Razor12911 23-09-2017 17:09

Nice, problem is GFS finds more stuff, stuff that was incomplete in ztool. the leaked version for example cannot process crilayla streams, nor lzo streams from unreal engine games and so forth so yes, your alternative method works but to a certain extent

elit 24-09-2017 04:54

Quote:

Originally Posted by Razor12911 (Post 462537)
Nice, problem is GFS finds more stuff, stuff that was incomplete in ztool. the leaked version for example cannot process crilayla streams, nor lzo streams from unreal engine games and so forth so yes, your alternative method works but to a certain extent

Indeed it look so. With that said though, to us regular people, the only relevant streams are the ones we can actually process. Even if GFS can find more, it is of no use if we lack the tool to process all of them. Thats why I think using ztool is(for us) better - to show us exactly what we get during actual packing.


All times are GMT -7. The time now is 15:00.

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