《忍者龙剑传 黑之章》(含飓风版中文汉化 vb-zh-x2.1)与《忍者龙剑传》(2004)的非官方 Windows 原生移植。2.2.36.3。
2.2.36.3:启动失败时说清楚原因;Windows / Linux 运行说明
这是 2.2.36.2 的修正版,只改了下面几处。正常运行时游戏的行为与 2.2.36.2 相同;变化只在“游戏启动不了”的时候。
先看这里:这次更新对你有什么影响
| 你的情况 | 更新后 |
|---|---|
| 游戏能正常运行(绝大多数玩家) | 没有变化 |
| 显卡驱动有问题、Wine 缺少 32 位图形库等,游戏一启动就闪退 | 不再无声闪退,弹出说明:失败在哪一步、错误码的含义、显卡和驱动版本、该怎么办 |
| Linux / Wine 下,报错框里的中文是方块 | 没有中文字体时只显示英文部分 |
| 想在 Linux 上玩 | README 新增“在 Windows 和 Linux 上运行”一节,写清楚实测情况和步骤 |
修了什么
- Direct3D 无法启动时不再崩溃,而是说明原因
- 以前:显卡上的绘图设备建不起来时,游戏照样往下跑,在第一次清屏时崩溃,什么提示都没有。作者在 Linux(Wine 10)里缺少 32 位图形库时实测到。
- 现在弹出说明,然后以代码 3 正常退出。说明里写着:
- 失败的步骤:创建 Direct3D 9 本身,还是在显卡上创建绘图设备(含分辨率、窗口 / 独占全屏);
- 两次尝试(硬件、软件顶点处理)的错误码和含义,例如
0x8876086C(D3DERR_INVALIDCALL)、显存不足、驱动内部错误; - 显卡名称、厂商号、设备号、驱动版本、适配器个数;
- 是 Windows 还是 Wine 及其版本;
- 针对这种情况该怎么办:Wine 下要装哪些 32 位驱动包(Ubuntu、Arch 分别列出),Batocera / Steam Deck 换 Wine 运行器或切换 DXVK;Wine 完全没有 3D 渲染时(显卡显示为 “WineD3D DirectDraw Emulation”)要删哪个设置;Windows 下 Direct3D 9 不可用、显存不足(调低渲染倍数和抗锯齿)、驱动问题、远程桌面。
- 报错框在没有中文字体的系统上只显示英文:Wine 里通常没有中文字体,报错框的中文会变成方块。现在先检查系统里有没有中文字体,没有就只显示英文部分;日志里仍保留中英两份。“找不到游戏”“不支持的游戏版本”这两个已有的提示也一样。Windows 上照常中英文都显示。
- README:在 Windows 和 Linux 上运行(替换原来的 “Steam Deck / Linux” 一节,发布页 README 同步):
- Windows:系统和显卡要求、第一次运行时的显卡首选项、日志在哪(从启动器开始在
logs\black.log,直接双击游戏程序在它旁边的black.log)、启动失败时的说明; - Linux:实测情况表(标准 Wine 10.0、Batocera、Steam Deck 各自测到哪一步)、Steam Deck 步骤、其他 Linux 的步骤(32 位驱动、启动方法、DXVK)、中文字体、剩余空间、缓存损坏的处理、着色器编译器。
- Windows:系统和显卡要求、第一次运行时的显卡首选项、日志在哪(从启动器开始在
已知问题(Linux)
- 部分 Wine 环境下 CG 画面不动、只有字幕在动(Batocera 一位玩家)。作者在标准 Wine 10.0 下实测开场动画正常,原因仍在排查。
测试
- Linux(标准 Wine 10.0,WineHQ 官方包,Ubuntu 24.04 / WSL):
- 用 Wine 的
renderer=no3d设置让 Direct3D 真正无法使用:游戏在 0.35 秒弹出说明,内容正确(失败步骤、两次的错误码、“WineD3D DirectDraw Emulation” 与对应说明、Wine 10.0),点“确定”后以代码 3 正常退出;报错框只显示英文,没有方块。测试设置随后删除。 - 正常启动:作者从开机玩到主菜单、选“退出游戏”,113 秒,没有任何错误,以代码 0 正常退出。
- 用 Wine 的
- Windows:性能(核显,待机演示 160 秒,与 2.2.36.2 各跑 1 次,测试期间无其他负载):游戏速度都是 93.7%;平均帧时间 4.47 对 4.53 ms,99% 帧 16.90 对 17.08 ms,超过 16.7 ms 的帧 605 对 606 个,卡顿都是 0 次(正常运行的代码没有改动,差别在随机波动范围内)。
- 冒烟测试(核显后台,发布包本身):黑之章 150 秒与 2004 更新补丁版 20 秒,绘制状态全部回放、0 条遗漏,0 次卡顿。
- 发布包:Windows Defender 扫描三个程序,无威胁;文件清单与 2.2.36.2 相同(11 个),附带的种子等数据文件逐字节相同;程序文件属性显示 2.2.36.3。
- 新代码只在设备创建失败或弹报错框时运行,正常运行的路径没有改动;没有测试用代码。
源码
本版提交:6e3eebd(Direct3D 失败说明、报错框字体检查)、0f087d8(版本号与 README)。
发布包
ngb-hurricane-pc-2.2.36.3-win32.zip- 大小:3,428,110 字节
- SHA-256:
0b5e4816cd8c6bb99c4195b57f643e5107bbf515c37834cee94254b349d1a60e - 符号包
ngb-hurricane-pc-2.2.36.3-win32-symbols.zip:39,069,018 字节 - SHA-256:
025fc52c91cf304c602b964e51f9fddac0744dbc5f147d4b0624adef86103c1f
作者:b站 哈雅布撒(QQ:2682557218)
English
An unofficial native Windows port of Ninja Gaiden Black (including the Hurricane Chinese translation vb-zh-x2.1) and Ninja Gaiden (2004). 2.2.36.3.
2.2.36.3: what went wrong when the game cannot start; Windows / Linux notes
A fix release of 2.2.36.2; only the following changed. In normal play the game behaves as in 2.2.36.2; the change is only for when the game cannot start.
Start here: what this update means for you
| Your setup | After the update |
|---|---|
| The game runs (almost everyone) | No change |
| A graphics driver problem, a Wine without 32-bit graphics libraries and so on, and the game closed at once | No more silent crash: a message says which step failed, what the error code means, the card and driver version, and what to do |
| Linux / Wine, the Chinese in error boxes was boxes | Without a Chinese font only the English part is shown |
| You want to play on Linux | The README has a new "Running on Windows and Linux" section with what has been tested and the steps |
What was fixed
- No crash when Direct3D cannot start; the reason is shown instead
- Before: when the drawing device could not be made on the card, the game ran on and crashed at its first clear, with no message. Seen by the author on Linux (Wine 10) without the 32-bit graphics libraries.
- Now a message is shown and the game exits with code 3. It gives:
- the step that failed: making Direct3D 9 itself, or the drawing device on the card (with the size, windowed / exclusive fullscreen);
- both tries' (hardware, software vertex processing) error codes and what they mean, e.g.
0x8876086C (D3DERR_INVALIDCALL), out of video memory, an error inside the driver; - the card's name, vendor, device, driver version, and the number of adapters;
- Windows or Wine and its version;
- what to do in that case: under Wine which 32-bit driver packages to install (Ubuntu and Arch listed), on Batocera / Steam Deck another Wine runner or DXVK on / off; when Wine has no 3D renderer at all (the card shows as "WineD3D DirectDraw Emulation"), which setting to remove; on Windows Direct3D 9 missing, out of video memory (lower the render scale and anti-aliasing), the driver, Remote Desktop.
- Error boxes show only their English part without a Chinese font: Wine usually has no Chinese font, and the boxes' Chinese came out as boxes. The program now checks for a Chinese font first and, without one, shows the English part only; the log keeps both. The same for the existing "game not found" and "unsupported build" messages. On Windows both languages are shown as before.
- README: Running on Windows and Linux (replaces the "Steam Deck / Linux" section; the release page's README likewise):
- Windows: system and card needs, the graphics preference at the first start, where the log is (
logs\black.logstarted from the launcher,black.lognext to the game program when it is started directly), the start-failure message; - Linux: a table of what has been tested (standard Wine 10.0, Batocera, Steam Deck), the Steam Deck steps, steps for other Linux (32-bit drivers, how to start, DXVK), Chinese fonts, free space, a broken cache, the shader compiler.
- Windows: system and card needs, the graphics preference at the first start, where the log is (
Known issue (Linux)
- On some Wine setups the CG movies stand still with only the subtitles moving (one Batocera player). In standard Wine 10.0 the author saw the opening movie play fine; the cause is still under investigation.
Tests
- Linux (standard Wine 10.0, WineHQ's own packages, Ubuntu 24.04 / WSL):
- Direct3D made really unusable with Wine's
renderer=no3dsetting: the message came at 0.35 s with the right content (the failed step, both error codes, "WineD3D DirectDraw Emulation" and its advice, Wine 10.0); after OK the game exited with code 3; the box showed English only, no boxes. The setting was removed afterwards. - A normal start: the author played from start to the main menu and chose EXIT GAME, 113 s, no error, exit code 0.
- Direct3D made really unusable with Wine's
- Windows: performance (Iris Xe, attract demo 160 s, one run each against 2.2.36.2, nothing else running): game speed 93.7% in both; average frame 4.47 vs 4.53 ms, 99th percentile 16.90 vs 17.08 ms, frames over 16.7 ms 605 vs 606, no hitch in either (the normal path is unchanged; the differences are run-to-run noise).
- Smoke tests (Iris Xe, background, the package itself): Black 150 s and the NG2004 title update 20 s, all draw states replayed, none left out, no hitch.
- The package: Windows Defender scan of the three programs, no threats; the same 11 files as 2.2.36.2, its seed data files byte for byte; the programs' properties say 2.2.36.3.
- The new code runs only when the device cannot be made or an error box is shown; the normal path is unchanged; no test code.
Source
This release's commits: 6e3eebd (Direct3D failure message, error-box font check), 0f087d8 (version and README).
Package
ngb-hurricane-pc-2.2.36.3-win32.zip- Size: 3,428,110 bytes
- SHA-256:
0b5e4816cd8c6bb99c4195b57f643e5107bbf515c37834cee94254b349d1a60e - Symbols
ngb-hurricane-pc-2.2.36.3-win32-symbols.zip: 39,069,018 bytes - SHA-256:
025fc52c91cf304c602b964e51f9fddac0744dbc5f147d4b0624adef86103c1f
Author: 哈雅布撒 on Bilibili (QQ: 2682557218)