Difference between revisions of "Record file"

From NetHackWiki
Jump to navigation Jump to search
(first info. stub.)
 
m (point to topten.c for some compile-time changes)
Line 1: Line 1:
'''record file''' is the high-score file. The file is in the same directory as the NetHack executable binary and the file format is the same as [[logfile]]
+
'''record file''' is the high-score file. The file is in the same directory as the NetHack executable binary and the file format is the same as [[logfile]].
 +
 
 +
When [[compiling]] NetHack from [[source]], you can change the number of entries saved into the record file by editing {{sourcecode|topten.c|36}} and thereabouts:
 +
*<tt>PERSMAX</tt> defines how many player characters are allowed for a single player. If <tt>PERS_IS_UID</tt> is also defined, then the UID of the NetHack process is used to distinguish users, otherwise the user name is used.
 +
*<tt>POINTSMIN</tt> says how many points are needed, at minimum, to get into the record file.
 +
*<tt>ENTRYMAX</tt> is the maximum number of entries kept in the record file.
  
 
[[Category:Stubs]]
 
[[Category:Stubs]]
 
[[Category:Annotations]]
 
[[Category:Annotations]]

Revision as of 11:55, 13 March 2008

record file is the high-score file. The file is in the same directory as the NetHack executable binary and the file format is the same as logfile.

When compiling NetHack from source, you can change the number of entries saved into the record file by editing topten.c, line 36 and thereabouts:

  • PERSMAX defines how many player characters are allowed for a single player. If PERS_IS_UID is also defined, then the UID of the NetHack process is used to distinguish users, otherwise the user name is used.
  • POINTSMIN says how many points are needed, at minimum, to get into the record file.
  • ENTRYMAX is the maximum number of entries kept in the record file.