NFORenum is a format correcter and linter for the NFO programming language.
It takes as input any number of files that contain something that vaguely resembles valid NFO, and produces, to the best of its ability, encodable NFO files, one for each input file.
It also detects and warns about some common mistakes made in NFO coding. All errors that will cause TTDPatch to reject the GRF during the initialization or activation phases should be detected; if any are not, it is a bug and should be reported as such.
Sprites that are too short, not of the correct type (real/pseudo/&c.), too long, or otherwise not in agreement with their data or the preceeding sprites are all detected.
A pretty-printer is included. If enabled, it reformats code basically according to these instructions.
The latest release version of NFORenum is 3.4.6 (r1795).
Source code may be acquired by checking out revision 1795 of /misc/nforenum from TTDPatch's SVN repository, or from the web interface
See the NFORenum thread for a partial changelog or the included CHANGELOG.txt file for a more complete changelog. A list of all changes can be acquired from the SVN server.
A prebuilt Windows executable can be found here. Some old versions are available in the old/ directory.
The following data files have been updated since the above release:
| File | Date (GMT) | Changes |
|---|---|---|
| 2v.dat | 2008/Feb/02 19:21 | Variable 12. |
| 0.dat | 2008/Feb/06 04:53 | Bridge properties 10..12. |
| 2v.dat | 2008/Apr/18 03:35 | Fix parameter limits on station variable 60. |
To use these files, place them in your .renum directory/directories.