FORMAT OF ENTRIES IN THE NETHACK LOGFILE (as of v.3.4.3) As a Perl regex, each line matches: /^(\d\.\d\.\d) (\d+) (\d+) (-?\d+) (\d+) (-?\d+) (\d+) (\d+) (\d{8}) (\d{8}) (\d+) (\w+) (\w+) (\w+) (\w+) ([^,]+),(.*)$/ Meanings of the subpatterns: - $1 - version string - $2 - score - $3 - dungeon number: - 0 - The Dungeons of Doom - 1 - Gehennom - 2 - The Gnomish Mines - 3 - The Quest - 4 - Sokoban - 5 - Fort Ludios - 6 - Vlad's Tower - 7 - The Elemental Planes - $4 - final dungeon level - $5 - maximum dungeon level - $6 - final health - $7 - maximum health - $8 - number of deaths - $9 - end date - $10 - start date - $11 - user ID number - $12 - role - $13 - race - $14 - gender - $15 - alignment - $16 - name - $17 - reason for end of game/cause of death Notes: - The maximum length of the role, race, gender, & alignment fields is defined by the constant ROLESZ in src/topten.c; the default is 3. - The maximum length of the player name is defined by the NAMSZ constant in src/topten.c; the default is 10. - The maximum length of the cause of death is defined by the DTHSZ constant in src/topten.c; the default is 100. - Numbers for special final levels: - -1 - Plane of Earth - -2 - Plane of Air - -3 - Plane of Fire - -4 - Plane of Water - -5 - Astral Plane - If NO_SCAN_BRACK is defined in src/topten.c (which it is not by default, and there is no placeholder for defining it anywhere), then the literal punctuation in the above pattern will be replaced by spaces. - Commas in player names are converted to spaces when the game begins in order to avoid problems with the logfile. $Id: nhlog.txt 35 2008-12-12 19:33:45Z jwodder $