RECOVER(6)
π RECOVER(6) β bestie edition π
the manual page for recover, straight outta the Games Manual. she recovers a NetHack game that got interrupted by disaster β¨
πΈ NAME πΈ
recover β recover a NetHack game interrupted by disaster π«Ά
β¨ SYNOPSIS β¨
recover [ -d directory ] base1 base2 ...
π DESCRIPTION π
okay so. occasionally a NetHack game gets interrupted by disaster when the game or the system crashes. π prior to NetHack v3.1, those games were just lost, because stuff like the player's inventory was kept only in memory. but now? now all the pertinent information can be written out to disk, so those games can be recovered at the point of the last level change. iconic behavior honestly π
the base options tell recover which files to process. each base option specifies recovery of a separate game. one per game, no cap.
the -d option, which must be the first argument if it appears, supplies a directory which is the NetHack playground. it overrides the value from NETHACKDIR, HACKDIR, or the directory specified by the game administrator during compilation (usually /usr/games/vulturesclaw). so like, it wins. always. π―
for recovery to even be possible, nethack must have been compiled with the INSURANCE option, and the run-time option checkpoint must also have been on. NetHack normally writes out files for levels as the player leaves them, so they'll be ready for return visits. when checkpointing, NetHack also writes out the level entered and the current game state on every level change. which naturally slows level changes down somewhat. π tiny price, big payoff.
the level file names are of the form base.nn, where nn is an internal bookkeeping number for the level. the file base.0 is used for game identity, locking, and, when checkpointing, for the game state. various OSes use different strategies for constructing the base name:
- microcomputers use the character name, possibly truncated and modified to be a legal filename on that system.
- multi-user systems use the (modified) character name prefixed by a user number to avoid conflicts, or
"xlock"if the number of concurrent players is being limited.
it may be necessary to look in the playground to find the correct base name of the interrupted game. π recover will transform these level files into a save file of the same name as nethack would have used.
since recover must be able to read and delete files from the playground and create files in the save directory, it has interesting interactions with game security. π giving ordinary players access to recover through setuid or setgid is tantamount to leaving the playground world-writable, with respect to both cheating and messing up other players. for a single-user system, this of course does not change anything, so some of the microcomputer ports install recover by default. slay, single-user girlies. π
β οΈ for real though, for a multi-user system thatsetuid/setgidthing is a no. cheating AND griefing in one move, that's a yikes.
for a multi-user system, the game administrator may want to arrange for all .0 files in the playground to be fed to recover when the host machine boots, and handle game crashes individually. if the user population is sufficiently trustworthy, recover can be installed with the same permissions the nethack executable has. in either case, recover is easily compiled from the distribution utility directory. π οΈ
π NOTES π
like nethack itself, recover will overwrite existing savefiles of the same name. not a drill, bestie. π³
savefiles created by recover are uncompressed; they may be compressed afterwards if desired, but even a compression-using nethack will find them in the uncompressed form. so it's fine either way, she's flexible. π¦
π SEE ALSO π
π BUGS π
recover makes no attempt to find out if a base name specifies a game in progress. if multiple machines share a playground, this would be impossible to determine. π¬
recover should be taught to use the nethack playground locking mechanism to avoid conflicts. noted, bestie. βοΈ
that's the whole page, and it's from the 4th Berkeley Distribution, dated 9 January 1993 β old money, timeless icon. π«Άπβ¨ stay slaying in the dungeon, and may your saves always be recoverable β¨π°π
π¦ where this page comes from
- fedora 43: nethack-vultures 2.1.2-44.fc43 Β· NGPL
- fedora 44: nethack-vultures 2.1.2-45.fc44 Β· NGPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms