The HACKDIR directory path is used to store "Guidebookt.txt" and "opthelp". We expect the player to use the same ".nethackrc" files across various versions of the game. This file is an example file the player may copy from.Īlso upon launch, the game will write a default ".nethackrc" file in this directory if it does not exist. Upon game launch, the game will store the file ".nethackrc.template" in this directory. The CONFIGDIR directory path is used to find the ".nethackrc" file. The user says no, the "symbols" file will remained unchanged but its modification date to avoid the user being prompted again. If the user says yes, the "symbols" file will be replaced and a copy of the original "symbols" file will be saved to "symbols.save" in SYSCONFDIR. The user will be prompted to ask whether the file should be replaced. These files are example configuration files that the player can copy from.Īlso upon launch, the game will write a default "sysconf" and "symbols" file to this directory if they do not exist.Īlso upon game launch, the game will attempt replace the current "symbols" file with the latest "symbols.template" file if the template file is newer. Upon game launch, the game will store the file "sysconf.template" and "symbols.template" in this directory. The SYSCONFDIR directory path is used to find the "sysconf" and "symbols" files. What follows are a description of these paths. The game uses many directory paths in order to work with various files during game play. GLOBAL_DATA_PATH - %ALLUSERPROFILE%\NetHack\3.6, example "C:\ProgramData\NetHack\3.6".USER_DATA_PATH - %USERPROFILE%\AppData\Local\NetHack\3.6, example "C:\User\Bob\AppData\Local\NetHack\3.6".VERSIONED_PROFILE_PATH - %USERPROFILE%\NetHack, example "C:\User\Bob\NetHack\3.6".PROFILE_PATH - %USERPROFILE%\NetHack, example "C:\User\Bob\NetHack".EXECUTABLE_PATH - the directory that holds the executable.There are several known locations that are used as part of determining the set of default directory paths NetHack will use. In previous versions of NetHack, the game would read the system environment variable "HACKDIR" in determining various directory paths. This is a directory path name that NetHack uses and should not be confused with the windows system environment variable called "HACKDIR". Below we will refer to the directory path HACKDIR. NOTE: NetHack will no longer use the windows system environment variables "NETHACKDIR" and "HACKDIR". ![]() ALLUSERPROFILE - %SYSTEMDRIVE%\ProgramData, example "C:\ProgramData".USERPROFILE - %SYSTEMDRIVE%\Users%USERNAME%, example "C:\User\Bob".SYSTEMDRIVE - set by the system, typically "C:".USERNAME - set by the system, example "Bob".There are several environment variable that are used to help determine the directory paths. Due to limitations placed on Windows Store applications, we needed to revisit how we managed where NetHack accesses its various files and we have had to make several changes. If you've downloaded the Windows 3.6.4 binary, read this first:Ī Windows Store based release of NetHack was introduced, starting with NetHack 3.6.3.
0 Comments
Leave a Reply. |