`man recover` says I should be able to use recover if INSURANCE was
#def'd in config.h (which it was) and the 'checkpoint' option is true
(yes). From the nethack playground I configured into the toplevel
Makefile (/usr/games/lib/nethackbetadir) I try running:
# ./recover -d /usr/games/lib/nethackbetadir save/500Priest.e
but all that comes back is:
'Cannot open level 0 for save/500Priest.e'
What was/am I doing wrong?
Peter
> The dungeon collapsed while I was using the downstairs[...]
> `man recover` says I should be able to use recover [...]
You'd need recover if the game crashed. A dungeon collapse (aka panic)
isn't a game crash as such, and on a Unix you should certainly get a
panic save file.
> # ./recover -d /usr/games/lib/nethackbetadir save/500Priest.e
Looks like you have a panic save file there, called 500Priest.e.sav, or
something of that nature? Rename it to what a normal save file would be
called, and you should be back in business, assuming whatever caused the
panic isn't lurking in the save file.
You might also want to see if your paniclog has any messages of
interest.
> but all that comes back is:
> 'Cannot open level 0 for save/500Priest.e'
Recover wants the checkpoint files, which won't exist if the game was
saved.
--
Darshan Shaligram dars...@aztec.soft.net
Tried renaming to 500Priest.Z, but that didn't work (i.e. nethackbeta -u
Priest gave an error message about an uncompressed save file). Tried
'compress' on 500Priest.e, but that failed silently (returning 2).
> You might also want to see if your paniclog has any messages of
> interest.
My include/config.h reads:
#define PANICLOG "paniclog" // etc.
but there's nothing in the playground by that name...
> > but all that comes back is:
> > 'Cannot open level 0 for save/500Priest.e'
>
> Recover wants the checkpoint files, which won't exist if the game was
> saved.
Looking pretty bad at this point. Thanks for your help nonetheless. Had
a tame purple worm, too. :-(
> Tried renaming to 500Priest.Z, but that didn't work (i.e. nethackbeta -u
> Priest gave an error message about an uncompressed save file). Tried
> 'compress' on 500Priest.e, but that failed silently (returning 2).
Well, it might be an uncompressed file... try renaming it to 500Priest
Incidentally, is there a good reason why you're using *compress* instead of
gzip?
Because it's the default in the source and you have to explicitly change
it to get gzipped files? (I do exactly that, by the way)
Raisse, killed by a falling object
--
ir...@valdyas.org LegoHack: http://www.valdyas.org/irina/nethack/
Status of Raisse (piously neutral): Level 8 HP 63(67) AC -3, fast.
Thanks -- file reports that the uncompressed, renamed 'Priest' is the
same 'raw G3 data, byte-padded' as all the other files (when they're
uncompressed, that is). Still no clue why it won't compress, though. I
used compress rather than gzip only because I never bothered changing
the default compression method when I compiled...
Oh well. Thanks for the help, at least I've learned a bit.
--
Fear can sometimes be a useful emotion. For instance, let's say you're an
astronaught on the moon and you fear that your partner has been turned
into Dracula. The next time he goes out for the moon pieces, wham!, you
just slam the door behind him and blast off. He might call you on the
radio and say he's not Dracula, but you just say, "Think again, bat man."
-- Jack Handey
You don't say whether you did the combination of these, though; rename
500Priest.e to 500Priest, _then_ compress it.
(You'll also want to make sure that the ownership and permissions of
the resulting file match those of the other savefiles.)
--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "Any sufficiently arcane magic is indistinguishable from technology." :
: -- Lebling's Inversion of Clarke's Third Law :
Thanks again -- no joy, though. Checked ownership/perms, renamed to
500Priest, got:
# compress -v 500Priest
500Priest: No compression -- 500Priest unchanged
Whoops. Duh. Just noticed the file size of the original -- there's
almost nothing there! (46 bytes). No wonder it wouldn't compress.
Something terrible happened along the way, and this character is no
more. RIP.
Thanks very much for the nethack recovery lessons, though! :-)
--
"...while he maintain'd, that there was nothing the World stood so much in
need of as Knights-Errant; wherefore he was resolved to revive the Order:
In which Disputes Mr Curate sometimes contradicted him, and sometimes
submitted; for had he not now and then given way to his Fancies, there
would have been no conversing with him." -- Don Quixote, 1.7