Phantom Brave PC

Phantom Brave PC

View Stats:
灵武战记 / 通灵战士 1代 机翻简体汉化补丁 + 工程文件 + 拆包打包工具
补丁使用时给1.23版的日文本体的文件夹,直接覆盖就行。然后删除/ph3_assets/anm××××,一共3个文件夹。



90% 的 gpt5 + 10% claude ,费了一周半没想到还真能做出来。。。 感觉比瑪魯王國的人形姬简单

一行代码没写也没自己看过到底质量如何,反正游戏封包之后能正常用,刚打到第三话。等玩通关就知道质量如何了。

大部分的硬骨头都啃下来了,各位汉化组的大哥有兴趣的话把这些工程文件复制给llm研究去吧



游戏自带的/ph3_assets 是做PC移植的工作室留下的debug工具包。看上去用来替换资产很有效率,但是具体要怎么用就不知道了。

这里把里面的 /ph3_assets/anm×××× 开头的文件夹都删除掉就不会覆盖掉部分中文过场字幕了。



启动需要注入3个DLL,补丁附带的简易启动器可以代劳。

一个比较麻烦的主脚本索引文件里面附带的日文文本,和总体字库加载函数是靠两注入DLL来hook替换,普通的文本就全是改原包了。

但是不知道为什么改原包后会导致ph3_assets的资产替换功能出冲突死机,再弄了第三个DLL忽略掉所有报错



字库编码是魔改过的SJIS,由于游戏原带的字形文件数量比较少,做中文字形时基本全部征用了。所以游戏“旧版UI”功能暂且废掉了。

另外字码本身的编码索引文件的工具没写,我是直接上传让gpt5改的,对应字形也没细调尺寸。



游戏文件结构总体和魔界战记差不多,但是贴图打包方式是比较复杂的变体。拿魔界战记的工具的治疗文档复制给claude让它自己琢磨出了套一键改包工具。 外包封包后体积变大是因为为了方便测试,改过的内包文件都追加在文件尾。

暂且没碰各种标题图片的贴图,一是不想被剧透二比较懒。

其他有意义的文本都改了,游戏本身就被做PC移植的工作室魔改过。剩下一堆硬编码在exe里面的游戏内滤镜名称和键位标签之类的文本,也就没吃饱撑着去动

已知少量贴图式的过场字幕不能完整加载,比如本来开局场景该显示第张三字幕的时候却又会显示一遍第二张。玩到这些地方时直接去工程文件夹里看原始字幕的贴图吧。
< >
Showing 1-3 of 3 comments
出色的工作,可以把这个做成巴西葡萄牙语版本吗?我该怎么做?
Originally posted by RodrigoDerby#8589:
出色的工作,可以把这个做成巴西葡萄牙语版本吗?我该怎么做?
I don't know s*it about coding. Copy and paste everything into your favourite LLM subscription, and they should tell you more about how it works...

As far as I could understand, most of the fixed text inside the main EXE has already been redirected to RAM at runtime through hooks. Text stored inside the DAT packages was unpacked, edited, repacked, and then placed back into the package by those editors.

The game appears to only have a single text rendering path, but almost all visible text ultimately passes through the SJIS glyph pipeline. Because of that, the practical approach is to modify the glyphs and use a custom encoding map. That part is the easiest.

I’m still unsure about whether all thetext in side those DAT packages can be safely redirected through live runtime hooks. Rebuilding the packaged text with longer strings is also not always safe (sometimes even those LLMs couldn't identify the encoding rules), especially for those seems to have a fixed slot with strange control codes.

For languages that took more bytes than English, one possible workaround might be to clear the original sentence right before it is displayed, then draw an external subtitle layer over the game screen instead. That might work.

At this point Chatgpt is useful for analysing the overall structure, sorting files, building helper tools, check the simple patterns and doing the translation of course. Save Claude for the parts where it really matters like the parts that really need deeper reasoning or careful code review. Google AIStudio is hopeless.
< >
Showing 1-3 of 3 comments
Per page: 1530 50