NetHack 5.0.0

NetHack 5.0.0

The NetHack DevTeam is announcing the release of NetHack 5.0.0 on May 2, 2026. NetHack 5.0 is an enhancement to the dungeon exploration game NetHack, which is a distant descendent of Rogue and Hack, and a direct descendent of NetHack 3.6. NetHack 5.0.0 is a release of NetHack. As a .0 version, there may be some bugs encountered. Constructive suggestions, GitHub pull requests, and bug reports are all welcome and encouraged.

NetHack 开发团队宣布于 2026 年 5 月 2 日发布 NetHack 5.0.0。NetHack 5.0 是对地牢探索游戏 NetHack 的增强版本,该游戏是 Rogue 和 Hack 的远亲,也是 NetHack 3.6 的直接后继者。NetHack 5.0.0 是 NetHack 的一个正式版本。由于这是一个 .0 版本,可能会遇到一些漏洞。我们欢迎并鼓励大家提出建设性建议、提交 GitHub 合并请求(Pull Requests)以及报告漏洞。

Along with the game improvements and bug fixes, NetHack 5.0 strives to make some general architectural improvements to the game or to its building process. Among them, 5.0: Has its source code compliant with the C99 standard. Removes barriers to building NetHack on one platform and operating system, for later execution on another (possibly quite different) platform and/or operating system. That capability is generally known as “cross-compiling.” See the file “Cross-compiling” in the top-level folder for more information on that.

除了游戏改进和漏洞修复外,NetHack 5.0 还致力于对游戏及其构建过程进行一些通用的架构改进。其中包括:5.0 版本使其源代码符合 C99 标准;消除了在一个平台和操作系统上构建 NetHack 以便在另一个(可能完全不同)平台和/或操作系统上运行的障碍。这种能力通常被称为“交叉编译”。有关更多信息,请参阅顶层文件夹中的“Cross-compiling”文件。

The build-time “yacc and lex”-based level compiler, the “yacc and lex”-based dungeon compiler, and the quest text file processing previously done by NetHack’s “makedefs” utility, have been replaced with Lua text alternatives that are loaded and processed by the game during play.

此前由 NetHack 的“makedefs”工具完成的基于“yacc 和 lex”的构建时关卡编译器、基于“yacc 和 lex”的地牢编译器以及任务文本文件处理程序,现已被 Lua 文本替代方案所取代,这些方案会在游戏运行期间由游戏加载和处理。

A list of over 3100 fixes and changes can be found in the game’s sources in the file doc/fixes5-0-0.txt. The text in there was written for the development team’s own use and is provided “as is”. Some entries might be considered “spoilers”, particularly in the “new features” section. Existing saved games and bones files will not work with NetHack 5.0.0.

超过 3100 项修复和更改的列表可以在游戏源代码的 doc/fixes5-0-0.txt 文件中找到。其中的文本是为开发团队自身使用而编写的,并按“原样”提供。某些条目可能会被视为“剧透”,特别是在“新功能”部分。现有的存档和骨骼文件(bones files)将无法在 NetHack 5.0.0 中使用。

Checksums (sha256) of binaries that you have downloaded from nethack.org can be verified on Windows platforms using: certUtil -hashfile nethack-500-win-x64.zip SHA256 or certUtil -hashfile nethack-500-win-arm64.zip SHA256. The following command can be used on most platforms to help confirm the location of various files that NetHack may use: nethack —showpaths

您从 nethack.org 下载的二进制文件的校验和(sha256)可以在 Windows 平台上使用以下命令进行验证:certUtil -hashfile nethack-500-win-x64.zip SHA256certUtil -hashfile nethack-500-win-arm64.zip SHA256。在大多数平台上,可以使用以下命令来帮助确认 NetHack 可能使用的各种文件的位置:nethack --showpaths

As with all releases of the game, we appreciate your feedback. Please submit any bugs using the problem report form. Also, please check the “known bugs” list before you log a problem - somebody else may have already found it. Happy NetHacking!

与游戏的所有版本一样,我们感谢您的反馈。请使用问题报告表提交任何漏洞。此外,在记录问题之前,请检查“已知漏洞”列表——可能已经有人发现了该问题。祝您 NetHacking 愉快!