This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an xlogfile to the generation of the ttyrecs.
An xlogfile is a logfile that gives details of the episodes that have just passed (https://nethackwiki.com/wiki/Xlogfile). These were previously being generated in the HACKDIR (temporary var dir). By setting the SCOREPREFIX and touching the file, you can can change the path that the file (always ending 'xlogfile') is generated. NB: There is a lock based on fnctl on the logfile. To avoid multiple nles in different trying to write to the same file (with the same savedir) we prepend the process number, like ttyrecs. For writing to same savedir within same process, an id should be added to both ttyrec and xlogfile. This can be done in future (along with relabelling ttyrec to ttyrec2). The log file records all COMPLETED episodes (in the NetHack sense), since it derives from the features used to calculate top ten. In standard usage it should lead to one row per episode, with all ttyrecs from the same process in the same file. You can then find the ttyrec corresponding to each row (start counting at 0th row).
- Loading branch information
Showing
7 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters