A morgue folder cleanup tool?

Hi everyone, apologies if this isn’t the right place to talk about this.

I’ve been playing Crawl for… a long time. And dying a lot. I religiously backup my crawl folder, for high scores and save games and such, but my morgue now is approaching 30k files. (Told you I was dying a lot! Especially since the game introduced the Delver class…)

Anyway, I was toying with the idea of writing a tool to erase everything from the morgue except the (300 or so) files relative to the top-100 High Scores list. I could put together something in Python, but I’d rather have an integrated tool, perhaps added to the High Scores page? And written better than anything I could do?

So, it’s just an idea. But it would be nice to tidy up that folder :slight_smile:

1 Thank

I’m pretty sure this doesn’t exist as-is, but it would probably get some use if it did. The hi score format is (iirc) identical to the logfile format that servers use, so one could use an existing parser for this to line up game lines in there with morgue file names.

but I’d rather have an integrated tool, perhaps added to the High Scores page?

Just to clarify what you’re asking for, do you mean the built-in high score ui in the game?

Yes. Basically you would go in the High Scores page from the main menu and there, more or less hidden in the options (since it would certainly not be a main feature), you could be offered the option to have your morgue directory “cleaned up” so that only the top scores are kept. It would be cool!