So my lawful female archeologist was making good time through Gehennom with the blessed +6 Grayswandir (she had a small run-in with a gremlin on Jubilex's level that promptly turned into a big green mess, and required her to retreat to her stash to genocide the little exponentially-replicating barstids). Then the game crashed.
My computer has done this before, so I have a backup savefile, but it's a few thousand turns and five excruciatingly dull maze levels old and I'd rather have the gamefile back. I was using Nethack Carbon (on Mac OSX); Nethack Carbon does not seem to have a recover function I stole the Recover module out of the Nethack QT package, but have had no luck getting it to work. It seems to see the files (and as far as I can tell all the level files are present and accounted for), but it just says "cannot create savefile <gamename>" and then quits. (I have several crashed games cluttering up my harddrive, and this is the best it will do for any of them.) Anyone have any idea what's going wrong, and how I can get it to go right?
Also, has anyone ever made a GUI for recover for Mac? Command lines are just so 1980's...
> So my lawful female archeologist was making good time through Gehennom > with the blessed +6 Grayswandir (she had a small run-in with a gremlin > on Jubilex's level that promptly turned into a big green mess, and > required her to retreat to her stash to genocide the little > exponentially-replicating barstids). Then the game crashed.
> My computer has done this before, so I have a backup savefile, but > it's a few thousand turns and five excruciatingly dull maze levels old > and I'd rather have the gamefile back. I was using Nethack Carbon (on > Mac OSX); Nethack Carbon does not seem to have a recover function I > stole the Recover module out of the Nethack QT package, but have had > no luck getting it to work. It seems to see the files (and as far as I > can tell all the level files are present and accounted for), but it > just says "cannot create savefile <gamename>" and then quits. (I have > several crashed games cluttering up my harddrive, and this is the best > it will do for any of them.) Anyone have any idea what's going wrong, > and how I can get it to go right?
> Also, has anyone ever made a GUI for recover for Mac? Command lines > are just so 1980's...
No one's even made it for linux or Microsoft land. I *has* been made automatic in some nethacks.
Did yu compile the source yourself or did you download the binary? It sounds like reading the man page for recover would be a valid step. It's either called recover.6 or recover.txt. It's also in the source code if you don't have it. The recover executable *is* in the directory with the maps, nethack itself and the bones files (along with the lock files) right?
if you have your game lock files called alock.1, alock.2 and so on, you would recover by typing
./recover -d<path of current nethack playground> alock
The "playground" is the full directory name mentioned in the above paragraph.
The ./ is the unix method to specify the recover executable *in* that directory. I have no idea if it's the same procedure in OS/x. Along those lines you might want to make sure that there is no other copies of recover elsewhere.
On Nov 4, 7:13 am, JRBrown <juliana.rb.br...@gmail.com> wrote:
> [...] I was using Nethack Carbon (on > Mac OSX); Nethack Carbon does not seem to have a recover function I > stole the Recover module out of the Nethack QT package, but have had > no luck getting it to work. It seems to see the files (and as far as I > can tell all the level files are present and accounted for), but it > just says "cannot create savefile <gamename>" and then quits. (I have > several crashed games cluttering up my harddrive, and this is the best > it will do for any of them.) Anyone have any idea what's going wrong, > and how I can get it to go right?
Two of the three binary packages for Mac OSX available at www.nethack.org neglected to include recover. The Qt package has it, and that one with also work for tty binary, but it won't work for the Carbon binary. You're out of luck unless you can build the Carbon version of nethack yourself, and then build recover for it with that same configuration.
You could get a step further with Qt's recover by creating a save sub-folder; running that recover will make a file there. Then you'd need to move the save file to nethack's directory and change the name to be prefixed by "save:", since that's what the Carbon binary expects. But attempting to play using the same character name results in a new game, with the recovered save file being silently deleted. Evidently the file contents are incompatible. That's a little surprising even though Qt's recover was built with a different compiler than the Carbon nethack, since recover does almost no interpretation of the level file contents when copying a byte at a time to concatenate them into a save file. Anyway, that's as far as I got when I went through this exercise six months ago....
> Two of the three binary packages for Mac OSX available at > www.nethack.org neglected to include recover. The Qt package has > it, and that one with also work for tty binary, but it won't work > for the Carbon binary. You're out of luck unless you can build > the Carbon version of nethack yourself, and then build recover > for it with that same configuration.
> You could get a step further with Qt's recover by creating a > save sub-folder; running that recover will make a file there. > Then you'd need to move the save file to nethack's directory and > change the name to be prefixed by "save:", since that's what the > Carbon binary expects. But attempting to play using the same > character name results in a new game, with the recovered save > file being silently deleted. Evidently the file contents are > incompatible. That's a little surprising even though Qt's recover > was built with a different compiler than the Carbon nethack, since > recover does almost no interpretation of the level file contents > when copying a byte at a time to concatenate them into a save file. > Anyway, that's as far as I got when I went through this exercise > six months ago....
Aww, f**k. I thought it might me something like that. But thanks for letting me know.
Off to see if I can figure out how to compile on OSX...
> On Nov 4, 8:18 pm, Pat Rankin <ran...@pactechdata.com> wrote:
>> Two of the three binary packages for Mac OSX available at >> www.nethack.org neglected to include recover. The Qt package has >> it, and that one with also work for tty binary, but it won't work >> for the Carbon binary. You're out of luck unless you can build >> the Carbon version of nethack yourself, and then build recover >> for it with that same configuration.
>> You could get a step further with Qt's recover by creating a >> save sub-folder; running that recover will make a file there. >> Then you'd need to move the save file to nethack's directory and >> change the name to be prefixed by "save:", since that's what the >> Carbon binary expects. But attempting to play using the same >> character name results in a new game, with the recovered save >> file being silently deleted. Evidently the file contents are >> incompatible. That's a little surprising even though Qt's recover >> was built with a different compiler than the Carbon nethack, since >> recover does almost no interpretation of the level file contents >> when copying a byte at a time to concatenate them into a save file. >> Anyway, that's as far as I got when I went through this exercise >> six months ago....
> Aww, f**k. I thought it might me something like that. But thanks for > letting me know.
> Off to see if I can figure out how to compile on OSX...
The nethack wiki has walk through docs on compiling nethack. I would suggest copying over the lock files to somewhere *before* you do anything else however.