Difference between revisions of "Logfile"

From NetHackWiki
Jump to navigation Jump to search
(topten.c, dungeon numbers)
m (more on dungeon numbers and dungeon levels)
Line 10: Line 10:
 
#version. In this case, it's <tt>3.4.3</tt>
 
#version. In this case, it's <tt>3.4.3</tt>
 
#score
 
#score
#dungeon number
+
#dungeon number. These correspond to the DUNGEON-definitions in [[dungeon.def]]-file.
#*-5 Astral Plane
 
#*-4 Plane of Water
 
#*-3 Plane of Fire
 
#*-2 Plane of Air
 
#*-1 Plane of Earth
 
 
#*0 The Dungeons of Doom
 
#*0 The Dungeons of Doom
 
#*1 Gehennom
 
#*1 Gehennom
Line 23: Line 18:
 
#*5 Fort Ludios
 
#*5 Fort Ludios
 
#*6 Vlad's Tower
 
#*6 Vlad's Tower
#*7 unknown
+
#*7 Elemental Planes. The dungeon level -field denotes the plane.
#dungeon level
+
#dungeon level. This is normally positive, except in the case of [[Elemental Planes]]:
 +
#*-5 Astral Plane
 +
#*-4 Plane of Water
 +
#*-3 Plane of Fire
 +
#*-2 Plane of Air
 +
#*-1 Plane of Earth
 
#maximum level
 
#maximum level
 
#hit points
 
#hit points

Revision as of 14:50, 17 July 2007

logfile is the file that contains a line of data for each game played. This file is in the same directory as the nethack executable binary.

Each line contains several fields, separated by a space, for example:

   #: 1     2   3 4 5 6 7  8 9        10       11   12  13  14  15  16
data: 3.4.3 916 0 5 6 0 28 1 20060611 20060611 1031 Wiz Gno Fem Neu paxed,killed by a boiling potion

The fields are as follows:

  1. version. In this case, it's 3.4.3
  2. score
  3. dungeon number. These correspond to the DUNGEON-definitions in dungeon.def-file.
    • 0 The Dungeons of Doom
    • 1 Gehennom
    • 2 The Gnomish Mines
    • 3 The Quest
    • 4 Sokoban
    • 5 Fort Ludios
    • 6 Vlad's Tower
    • 7 Elemental Planes. The dungeon level -field denotes the plane.
  4. dungeon level. This is normally positive, except in the case of Elemental Planes:
    • -5 Astral Plane
    • -4 Plane of Water
    • -3 Plane of Fire
    • -2 Plane of Air
    • -1 Plane of Earth
  5. maximum level
  6. hit points
  7. maximum hit points
  8. number of deaths. This increases even if the death was averted with amulet of life saving.
  9. end date in YYYYMMDD format
  10. start date in YYYYMMDD format
  11. user ID. This is the UID NetHack runs as, and is only relevant for operating systems that use userIDs.
  12. role
  13. race
  14. gender
  15. alignment
  16. name and reason for game ending, separated by a comma

References