DanielT / NitroHack

A fork of NetHack 3.4.3
nitrohack.org
21 stars 2 forks source link

Can't play "in progress" game on nitrohack.org #6

Closed tung closed 12 years ago

tung commented 12 years ago

I've connected to and played a few games online on nitrohack.org as 'tungtn', but I had some server issues a few days ago, and now I can't continue my most recent game because it's marked as "(in progress)".

Screenshot: http://dl.dropbox.com/u/6290295/nitrohack-online-load-game.png

Is it possible to get this unmarked so I can continue the game?

DanielT commented 12 years ago

This should be fixed now.

It's a weird problem: "in progress" is only displayed if a different process has locked the file. There was no other process I could see, but I don't know how the fcntl locks interact with crashed processes. in the end I just renamed the save and copied it back; any existing lock would still reference the old moved file.

I did discover an actual bug by looking at your save; Steed info wasn't being stored correctly in the binary portion of the save (now fixed), which caused your game to fail to load on the first try and go into recovery via the log. Perhaps these load failures were somehow responsible for the fact that the file was locked.

Anyway, let me know if it works.

tung commented 12 years ago

Yeah, it's working now. Thanks!