This tool will read grfdebug.log and the associated NFO file, and produce a grfdebug.txt with lines that look like:
Code: Select all
Retrieving graphics for feature 3, ID db.
Processing sprite 222.
Testing variable c. Value: 0.
Processing sprite 219.
Testing variable 7f, param 0. Value: 0.
Processing sprite 218.
Testing bits 1 of random value 1b.
Processing sprite 217.
Testing variable 47. Value: 1.
Processing sprite 211.
Returning real sprite number 177.
<...>
Calling callback 15 for feature 3, ID db.
Processing sprite 222.
Testing variable c. Value: 15.
Processing sprite 221.
Testing variable 47. Value: 204ff, Masked: ff.
Processing sprite 220.
Testing variable 1a. Value: ffffffff, Adjusted: ffff0370, Masked: 370.
Testing variable 47. Value: 204, Adjusted: 4.
Returning calculated callback result dc.
Returning real sprite number -1.
Run it from the command line. It takes a single argument, which is the name of the nfo file that you want to debug. grfdebug.log must be in the same directory as the binary.
The search order for the nfo file is the same as for NFORenum:
file
file.nfo
sprites/file
sprites/file.nfo
The attachments contain the usual: A win32 binary in the first, and the source, with DOS and Unix linefeeds, in the second and third, respectively.