Author Topic: TrID Scan v1.56 error  (Read 10633 times)

Sam.

  • Newbie
  • *
  • Posts: 3
    • Sam. at SHS
TrID Scan v1.56 error
« on: October 28, 2011, 01:30:59 AM »
I am in the process of analyzing several dozen game file formats for submission, but it seems that I have tried to pass far more than the maximum number of files supported to TrID Scan v1.56.  I am not sure if it is TrID Scan or the command prompt that is the limiting factor, but when I try to have it analyze roughly 14,000 files, it only processes the first 2048.  The command I used via a .bat file is:

Code: [Select]
tridscan.exe "D:\Program Files\TrID - File Identifier\TrIDScan - Patterns scanner\Infinity Engine File Formats\BAM\*.bam"
and the output is:

Code: [Select]
TrID/32 - Scan Module v1.56 - (C) 2003-04 By M.Pontello

Checking files...
Found 2048 matching files
Header Block Size: 1099
Scanning for patterns...
Pattern(s) found: 111
Last Pattern end at offset: 1059
Scanning for raw strings...
Raw string(s) found: 444
Pre-filtering strings...
Phase 1... 13% 27% 41% 55% 68% 82% 96% 100%
Phase 2... 0% [...] 100%
Erasing substrings... 19% 39% 59% 79% 98% 100%
String(s) found: 1
Writing XML file <newtype.trid.xml>...
Finished!

Which program (TrID Scan or CMD.exe) is the limiting factor, and is there a workaround?

PS:  Thanks for the awesome tool!

Sincerely,
Sam.

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: TrID Scan v1.56 error
« Reply #1 on: October 28, 2011, 01:40:35 AM »
Hi!

It's actually an hard coded limit in the program. Never thought it could be really reached! :-)
As a work around, you can simply split the files in groups of 2K.
After the first scan, assign a proper name at the def and proceed with the other groups refining it, like in:

Code: [Select]

tridscan \mydir\*.bam bam.trid.xml
 

Thanks for the feedback,
Bye!

Sam.

  • Newbie
  • *
  • Posts: 3
    • Sam. at SHS
Re: TrID Scan v1.56 error
« Reply #2 on: October 28, 2011, 02:21:32 AM »
Would you be willing to remove the hard-coded limit?  I will be analyzing quite a few file formats in the near future that will have considerably more than 2048 files...  I can write a program that will automatically utilize the workaround you specified, but I'm hoping it will be easier for you to comment a line or two of code...?

Sam.

  • Newbie
  • *
  • Posts: 3
    • Sam. at SHS
Re: TrID Scan v1.56 error
« Reply #3 on: January 27, 2012, 04:47:23 AM »
As promised, I have finished creating Defs for all of the Infinity Engine file formats that I have access to (I don't have PST).  To anyone interested, see the IESDP for a detailed description of all of the file formats.

---------------------------
Statistics:
---------------------------
Total Files Scanned = 111077
File Defs Created = 52
---------------------------

I will be emailing the Defs shortly :) .