Nethack

Nethack

I've suddenly gotten into Nethack, and was lucky enough to ascend. This is a page with some of my nethack related stuff.

I wrote a quick and dirty little little python script that converts the ibm437 codepage used by the IBMgraphics setting in nethack to UTF-8. It also manually converts a few characters used in the rogue level which draw incorrectly in some terminals (such as the smiley face used for your character) manually to their unicode equivalents.

You may want to look at my nethackrc to get a set of options that works well with that filter. In particular, the script looks for a couple characters that I specify that it maps to unicode characters not available in the ibm437 codepage (e.g. "clubs" for trees, "sun" for spiderwebs, etc.).

This is the default set of characters used under IBMgraphics, which may be useful to you. Because of the way this option works, any zeros default to the default, non-fancy set of characters:

DUNGEON=  0 179 196 218 191 192 217 197 193 194 180 195 250 254 \
    254   0   0 240 241 250 176 177   0   0   0   0   0   0 \
      0   0 244 247 250 247 250 250   0   0   0   0 247

I wrote fastttyrec as a quick and dirty mangler of .ttyrec files. It takes an existing ttyrec (uncompressed) into stdin and writes a new one to stdout. It takes exactly one parameter - a time in seconds (supporting fractional seconds down to microsecond precision). It goes through the whole file, and if it finds any pauses longer than the specified time, it reduces them to that amount. So, if in the middle of your ascension run, you take a 10 minute break, you can edit that out for later playback. It's GPLed free software.

I've also written randhack to assist with choosing random roles, in a more controllable, powerful fashion than the built in nethack RNG. You'll have to read the source to see how to use it, cause I'm not going to try to explain it right now. Also, you'll need an empty save file for it to work. It's just a quick hack. You're free to download it for personal use. When I get time, I may create a proper package and GPL it also.

Nethack links:

The voice of The Lady booms out: "Congratulations, mortal!"--More--



                                   ┌───────┐
                                   │·······│
            ────┐                  │·······│                  ┌────
             ···│                  │···_···│                  │···@
     ┌───────┐··└┐    ─            │·······│          ───┐   ┌┘·@┌───────┐@A
     │·······│···└┐ ┌┘          │    ·····    │          └┐ ┌┘%@a│·@·····│ D
     │·······│····└┬┘    $      │· └───·───┘ ·│           └┬┘···a│·AAaa··│A
     │···_········   )%       │·············│        )   ··@·@@%·AA@@··│
     │·······│····┌┴┐    $      └─┐·········┌─┘      %%%  ┌┴┐·a%·│··a·a··│
     │·······│···┌┘ └┐    %       └┬──────┬┘        %   ┌┘ └┐·@·│··a····│
     └───────┘··┌┘   └─┬─%─┬─         !           ─┬─%─┬─┘   └┐·a└───────┘ A
             ···│      │   └─────┐     %%    ┌─────┘   │      │···       @
            ────┘      │         │    $ )    │         │      └────
                       └─────┐   └┐         ┌┘   ┌─────┘
                             │    └┐  %%  $┌┘    │
                             └─┐   └───·───┘   ┌─┘
                               │               │
                               └───────────────┘
Fwiffo the Explorer         St:25 Dx:18 Co:18 In:22 Wi:22 Ch:18  Neutral S:2387
Astral Plane $:44 HP:253(269) Pw:209(209) AC:-39 Exp:28 T:96074 Conf