Tung's Word Box

NetHack

Role: Upstream bug fixes; developed mods in various personal forks.

Last involved: Early 2016

NetHack is a classic fantasy roguelike game; one of the most famous and venerable of its kind, with scores of contributors over a development history stretching back to its first release in 1987. The player takes on the role of an adventurer sent on a divine quest to retrieve the fabled Amulet of Yendor, hidden deep in the firey pits of Gehennom below the perilous and ever-shifting Dungeons of Doom.

As a roguelike, NetHack continues in the biggest traditions of its genre. Permanent death prevents players from saving and reloading their way out of trouble, forcing them to think on their feet. Meanwhile, procedural content generation all but guarantees that no two journeys into the Dungeons of Doom are met with quite the same levels, monsters, items and situations.

NetHack is notable amongst roguelikes for a number of reasons:

Contributions

The current version of NetHack includes a couple of bug fixes that can be attributed to me:

My NetHack variant DynaHack is credited in the official NetHack Guidebook as one of the variants that helped maintain interest in NetHack during the long release cycle spanning NetHack 3.4.3 in 2003 and NetHack 3.6.0 in 2015.

Personal Forks

I have a few forks of the NetHack source code where I've made modifications to the game.

NAOHack Fork

Before the release of NetHack 3.6.0, the most-played version of NetHack was the one hosted on the alt.org public server. Dubbed "NAOHack" by many players, this version was lightly patched relative to NetHack 3.4.3 to support server play, and could be considered a "polished" version of it.

I made a fork of NAOHack to add some quality-of-life improvements and fixes while still keeping the original NetHack 3.4.3 feeling:

All of the above can be found on the patches branch of my NAOHack fork on GitHub.

NetHack 3.6.0 statuscolors Fork

NAOHack included a community patch called statuscolors that allowed players to add configurable colors the otherwise monochrome numbers and labels in the game's status area; this was often used to draw attention to it when the player was in danger.

When NetHack 3.6.0 was released, it shipped a similar feature that it called "Status Hilites". Status hilites was unfortunately inferior to the community statuscolors patch: not only was its configuration syntax incompatible, it was unable to express highlighting criteria that statuscolors supported out-of-the-box.

This spurred me to create statuscolors2: a version of the statuscolors patch that not only worked with the newly-released NetHack 3.6.0, but also enhanced it in a number of ways:

I bundled this together with hit point bar coloring, culminating in the creation of the Statuscolors and hitpointbar 2 patch that I submitted to the NetHack Patch Database. The NetHack Dev Team eventually improved their in-house status hilites system, and everybody updated their configuration files to match the new syntax, rendering this patch mostly redundant. The development of this patch is preserved in this fork for historical reasons.

My NetHack 3.6.0 fork with statuscolors2 patch development on GitHub.

NetHack 3.6.0 Post-Release Patches Fork

I created a fork of NetHack 3.6.0 not long after its release to house enhancements and fixes that I felt were suitable for upstream inclusion. Each change is contained in its own branch:

win-neutral-statuscolors-hitpointbar: The aforementioned Statuscolors and hitpointbar 2 patch in branch form.

tty-menu-enhancements: Prevent the > key from closing menus in the TTY windowport, so the < and > keys can be safely used to change menu pages.

tty-full-text-scroll: Allow full text windows, such as the message history and help windows, to be navigated backwards and forwards by page, instead of just forwards. The <, >, ^ and | keys work like PgUp, PgDn, Home and End respectively in such windows.

attack-mode-option: Adds an attack_mode option with the following values and behaviors:

quest-artifact-stealing-fix: Stop the Wizard of Yendor from stealing the quest artifact of the player's current role.

map-coloring: Add thematic coloring for branches, special levels, rooms and dungeon features in the TTY windowport. Adapted from L's Coloured Walls and Floor v1 patch, but for NetHack 3.6.0.

general-main-daemon-fix: Fix mail daemons being randomly generated on special levels that place random demons; the fix is generalized for any requested class of monsters that are all flagged to not be randomly spawned.

infinite-travel-fix: Fixes a bug where the automatic travel system will waste hundreds of turn oscillating while trying and failing to reach its destination.

My NetHack 3.6.0 post-release patches fork on GitHub and the list of branches mentioned above.

More Information