Difference between revisions of "Record file"

From NetHackWiki
Jump to navigation Jump to search
(first info. stub.)
 
 
(6 intermediate revisions by 3 users not shown)
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 NetHack's [[playground]] directory (on some systems 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>NAMSZ</tt> defines the maximum length of username saved into the record file.
 +
*<tt>PERSMAX</tt> defines how many entries are allowed for a single player for each [[role]]. 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]]
 +
{{nethack-343}}

Latest revision as of 22:38, 20 December 2015

record file is the high-score file. The file is in NetHack's playground directory (on some systems 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:

  • NAMSZ defines the maximum length of username saved into the record file.
  • PERSMAX defines how many entries are allowed for a single player for each role. 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.

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.