Jukka's old Nethack patches

These patches are no longer maintained and not directly linked to my main Nethack page, because they are obsolete for the newest Nethack version, but I still keep them available for now. See http://www.nethack.org for the newest version of the game.

Patches for the newest version

3.4.0 patches: compatibility autocomplete statue_contents

Herorace, obsolete since 3.4.1

The "herorace" patch will enable displaying the player with the race-specific symbol (dwarf, gnome, orc) instead of always using the symbol for humans. Version 3.4.1 has the "showrace" option that does the same (except that with it the symbol color doesn't change like it does with 3.4.0 and this patch).

Download and apply the patch, add the definition
#define HERO_RACE
somewhere in your include/config.h to compile the feature in, and
OPTIONS=hero_race
in your configuration file to activate the option.

Author: Jukka Lahtinen
Download: herorace.diff
Affected files: include/display.h, include/flag.h, src/options.c, dat/opthelp, doc/Guidebook.mn, doc/Guidebook.tex, doc/Guidebook.txt
Bones / save files: NOT affected.

Compatibility of bones and save files (included in the makedefs diffs for newer versions)

This patch will make the compatibility check for bones and save files a little bit more relaxed. For now, it will cause the compile time flags TIMED_DELAY, SCORE_ON_BOTL, EXP_ON_BOTL and TEXTCOLOR to be ignored when comparing the feature_set magic number of the files to what the game expects, so the files should remain compatible if you change some of them between compilations.

3.4.1 added the IGNORED_FEATURES macro to util/makedefs.c for the same purpose, but it only defines TIMED_DELAY as an ignorable option. I added the rest of the options mentioned above to be ignored with the makedefs patch for newer versions.

Author: Jukka Lahtinen
Download: compat.diff
Affected file: src/version.c
Bones / save files: NOT affected.

Autocomplete enhancemenet, obsolete since 3.4.1

This patch makes the extended command autocomplete a little bit more intelligent by ignoring typed characters of the rest of the extended command after the command name has been autocompleted. For example, if you type #e and the game completes that to #enhance, the game discards the 'n' character if you type it next. Apparently this patch works with the tty interface only.
3.4.1 has the extended command interface changed so that this patch isn't needed with it.

Author: Sam Dennis
Download: autocomplete.diff
Affected file: win/tty/getline.c
Bones / save files: NOT affected.

Statue contents (included in the 3.4.1 dump patch and official versions since 3.4.2)

This patch makes the contents of carried statues be shown in your inventory listing when the game ends, just like the contents of bags and boxes. Actually the contents of every item will be checked with this patch, but I am not aware of anything else but statues that can contain something and isn't checked for contents in the official 3.4.0.
I merged this with the dump patch for 3.4.1, thinking that people who want this probably also want the dump patch, and 3.4.2 already lists the statue contents in the official version.

#define STATCONT in include/config.h to activate the patch.

Author: Jukka Lahtinen
Download: statcont.diff
Affected file: src/end.c
Bones / save files: NOT affected.