Difference between revisions of "Xlogfile"

From NetHackWiki
Jump to navigation Jump to search
m (Grammar/style)
(File format: xNetHack uses tabs as separators, not colons)
Line 14: Line 14:
 
== File format ==
 
== File format ==
  
The data is saved into a file named <code>xlogfile</code> in the same directory as the normal logfile. Each line contains several <tt>field=value</tt> pairs, separated by a colon. For example:
+
The data is saved into a file named <code>xlogfile</code> in the same directory as the normal logfile. Each line contains several <tt>field=value</tt> pairs, separated by a colon (or a tab in some variants, which may also add extensions such as <code>conductX</code> and <code>achieveX</code> with text-format conducts and achievements). For example:
 
  version=3.4.3:points=55590:deathdnum=0:deathlev=7:maxlvl=12:hp=-14:maxhp=92:deaths=1:deathdate=20090502:birthdate=20090501:uid=5:role=Tou:race=Hum:gender=Fem:align=Neu:name=gibbas:death=killed by a mumak:conduct=0xf86:turns=16662:achieve=0x400:realtime=18452:starttime=1241195443:endtime=1241214565:gender0=Fem:align0=Neu
 
  version=3.4.3:points=55590:deathdnum=0:deathlev=7:maxlvl=12:hp=-14:maxhp=92:deaths=1:deathdate=20090502:birthdate=20090501:uid=5:role=Tou:race=Hum:gender=Fem:align=Neu:name=gibbas:death=killed by a mumak:conduct=0xf86:turns=16662:achieve=0x400:realtime=18452:starttime=1241195443:endtime=1241214565:gender0=Fem:align0=Neu
  

Revision as of 17:51, 14 June 2021

This page is a stub. Should you wish to do so, you can contribute by expanding this page.
xlogfile
Author Aardvark Joe
Download unknown
NetHack PatchDB 289

xlogfile, or the extended logfile, is a compile-time option for NetHack that makes the game log more data at the end of a game.

The xlogfile began as a patch for NetHack 3.4.3. It was incorporated into the mainline in NetHack 3.6.0. It is an optional feature, and can be removed by commenting out the definition of XLOGFILE in include/config.h.

File format

The data is saved into a file named xlogfile in the same directory as the normal logfile. Each line contains several field=value pairs, separated by a colon (or a tab in some variants, which may also add extensions such as conductX and achieveX with text-format conducts and achievements). For example:

version=3.4.3:points=55590:deathdnum=0:deathlev=7:maxlvl=12:hp=-14:maxhp=92:deaths=1:deathdate=20090502:birthdate=20090501:uid=5:role=Tou:race=Hum:gender=Fem:align=Neu:name=gibbas:death=killed by a mumak:conduct=0xf86:turns=16662:achieve=0x400:realtime=18452:starttime=1241195443:endtime=1241214565:gender0=Fem:align0=Neu

Most of the fields are self-explanatory, or are the same as in the normal logfile. Exceptions are:

  • conduct: A bitfield in hexadecimal format:
    • 0x001: Foodless
    • 0x002: Vegan
    • 0x004: Vegetarian
    • 0x008: Atheist
    • 0x010: Weaponless
    • 0x020: Pacifist
    • 0x040: Illiterate
    • 0x080: Polypileless
    • 0x100: Polyselfless
    • 0x200: Wishless
    • 0x400: Artifact wishless
    • 0x800: Genocideless
  • achieve: A bitfield in hexadecimal format:
  • realtime: How long the game was, in seconds.
  • starttime and endtime: Seconds since UNIX Epoch.
  • gender0: The original (starting) gender.
  • align0: The original (starting) alignment.
  • death: All colons are replaced with underscores, otherwise the same as in the normal logfile.
  • flags: A bitfield in hexadecimal format:[1]

References

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

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

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