Difference between revisions of "Environment variable"

From NetHackWiki
Jump to navigation Jump to search
(add NETHACKOPTIONS and NH_HEAPLOG)
m (special room, not shop.)
Line 5: Line 5:
 
*[[WIZKIT]] - Allow [[wizard mode]] games to start with extra items.
 
*[[WIZKIT]] - Allow [[wizard mode]] games to start with extra items.
 
*ROGUEOPTS - Set the ghost name in the [[Rogue level]]. For example, setting ROGUEOPTS's value to <tt>name=Foo</tt> would name the ghost to 'Foo'
 
*ROGUEOPTS - Set the ghost name in the [[Rogue level]]. For example, setting ROGUEOPTS's value to <tt>name=Foo</tt> would name the ghost to 'Foo'
*SHOPTYPE - For [[wizard mode]] debugging, forces a creation of a shop. For example, setting this to <tt>z</tt> will make a [[Treasure zoo]] on every level.
+
*SHOPTYPE - For [[wizard mode]] debugging, forces a creation of a [[special room]]. For example, setting this to <tt>z</tt> will make a [[Treasure zoo]] on every level.
 
*SPLEVTYPE - For [[wizard mode]] debugging, forces NetHack to use certain layouts for the [[special level]]s that have multiple layouts. For example: <tt>bigrm-2,minetn-5</tt> would force the 2nd bigroom variant (with the dark and light areas), and the 5th minetown variant (the grotto town).
 
*SPLEVTYPE - For [[wizard mode]] debugging, forces NetHack to use certain layouts for the [[special level]]s that have multiple layouts. For example: <tt>bigrm-2,minetn-5</tt> would force the 2nd bigroom variant (with the dark and light areas), and the 5th minetown variant (the grotto town).
 
*NH_HEAPLOG - If the value is a file name and NetHack can write to that file, all memory allocations and release information done by NetHack is written there.
 
*NH_HEAPLOG - If the value is a file name and NetHack can write to that file, all memory allocations and release information done by NetHack is written there.

Revision as of 16:20, 23 March 2007

NetHack checks the following environment variables:

  • NETHACKOPTIONS - You can define configuration options here.
  • HACKOPTIONS - The same as NETHACKOPTIONS, but used only if NETHACKOPTIONS was not defined.
  • WIZKIT - Allow wizard mode games to start with extra items.
  • ROGUEOPTS - Set the ghost name in the Rogue level. For example, setting ROGUEOPTS's value to name=Foo would name the ghost to 'Foo'
  • SHOPTYPE - For wizard mode debugging, forces a creation of a special room. For example, setting this to z will make a Treasure zoo on every level.
  • SPLEVTYPE - For wizard mode debugging, forces NetHack to use certain layouts for the special levels that have multiple layouts. For example: bigrm-2,minetn-5 would force the 2nd bigroom variant (with the dark and light areas), and the 5th minetown variant (the grotto town).
  • NH_HEAPLOG - If the value is a file name and NetHack can write to that file, all memory allocations and release information done by NetHack is written there.
  • HOME - Your home directory.
  • MAIL - On window ports that support reading mail, this should point to your mail box file.
  • MAILREADER - On window ports that support reading mail, NetHack will spawn this mailreader to read your mail.
  • TERM - Terminal type.


This page is a stub. Should you wish to do so, you can contribute by expanding this page.