Touhou Patch Center:Download/zh-hans: Difference between revisions

From Touhou Patch Center
Jump to navigation Jump to search
(Updating to match new version of source page)
No edit summary
(One intermediate revision by the same user not shown)
(No difference)

Revision as of 18:58, 26 March 2022

{{Project overview/Template:Pagelang}}

主程序包 (多语言多作品对应)

Gnome-dev-zipdisk.svg 从Github下载
更新履历
源代码: @ GitHub
基于英文翻译分支预打包补丁 (不推荐).
Universal THCRAP Launcher, recommended quick launch addon, and Read this for how to install


系统要求

  • 安装了Service Pack 2的XP版本或更高版本的Windows,适配Wine。
  • 仅初始化配置和升级操作会用到网络连接。离线情况下thcrap会直接使用已经下载好的最新补丁。

安装方法

视频教程(需要梯子)

备用英文补丁安装文字教程

简易使用方法

  • 开始之前,不需要将thcrap解压到特定的作品目录之下。thcrap可以在任意目录运行。
  • 运行 thcrap_configure.exe 并按照说明进行补丁配置。
  • 最后会创建一个.js文件(即配置数据)和连接这个配置的、用于启动游戏的各个快捷方式。注意thcrap 不会 修改任何已有的东方游戏文件。

详细使用方法

  1. 下载thcrap并解压(不需要解压到某个必须的目录或者哪一作的目录,扔哪里都可以)
  2. 运行 thcrap_configure.exe
  3. 选择想要的所有语言包。
    是的,可以是复数个。如果你还是懂一点点英语的话,我们推荐你总是在最后包含英语分支 lang_en ,并将你的母语分支放在它的上面。 点此阅读更多关于补丁叠加机制的内容。
  4. 等待数据下载。
  5. 在扫描游戏环节,选择存放着东方游戏的文件夹,或点击取消直接扫描整个系统。
  6. 当thcrap发现有多个版本的游戏可供补丁生效的时候,请选择你需要的那一个版本。
  7. 使用生成的快捷方式启动游戏。
  8. 享受thcrap带来的无缝翻译吧!

在vpatch上运行

这在2013-10-25版本上是可能的。由于vpatch以dll为中心设计,thcrap_configure还没有实现自动化,所以现在需要一些手动步骤:

  1. 如果你还没有vpatch,请从Touhou Wiki或者 从作者的下载页面下载。
  2. 像往常一样配置补丁。如果你安装的游戏有多个版本,请确保选择正确的路径。
  3. 在文本编辑器中打开生成的games.js,并将游戏的.exe文件名替换为vpatch.exe(或者路径下vpatch可执行文件的名称)。
  4. 通过生成的快捷方式启动游戏,thcrap和游戏本体会自动启动. thcrap会自动转码日语文字和文件名,所以内码转换器是不需要的(没错,就算文件名为東方紅魔郷.exe而不是搶曽峠杺嫿.exe)。

⑨命!我的红魔乡Icon th06.png Embodiment of Scarlet Devil像打了鸡血的天狗喷气战斗机一样高速咏唱了!!

在Windows 10上游玩红魔乡需要vpatch。

  1. 点此下载vpatch红魔乡thcrap适配版完整包。这个包包含了vpatch (rev4版) 以及我们的魔改版Unicode vpatch DLL
  2. 解压上述压缩包的内容到你的红魔乡文件夹。
  3. 如果你的红魔乡文件夹里已经有了 vpatch_th06.dll ,请删掉。以后你只需要 vpatch_th06_unicode.dll
  4. 如果你的游戏程序文件名是 th06.exe,请更名为 東方紅魔郷.exe ,因为 vpatch.exe 只会查找这个名字的程序。特别的,如果你的文件名是 th06e.exe 同时并没有 東方紅魔郷.exe 或者 th06.exe,那你正在使用的是直接修改版的英文补丁。我们强烈建议使用日文原版的1.02h。
  5. 使用文本编辑器打开 thcrap\config\games.js ,并修改 th06 的路径为vpatch.exe 的路径而非游戏程序的路径。
  6. 如果你遇到了画面撕裂,打开 vpatch.ini ,将 vsync = 0 改为 vsync = 1

小技巧

文件输出

这个功能会在游戏运行时,导出其所有的原版文件。

方法:

  1. 找到通过thcrap_configure.exe创建的.js配置文件。(文件名应该和生成的快捷方式末尾的名字一样,例如如果快捷方式是以"en"结尾的,那么要找的文件就是en.js)
  2. 用文本编辑器打开该文件(记事本、EditpadPro,或者其它编辑器都可以。)
  3. "dat_dump": false 一行改为:
  • "dat_dump": true → 将会在游戏原目录新建一个名为 dat 的文件夹,并将文件解压到这里。
  • "dat_dump": "C:/name/to/dump/path/" → 直接解压文件到指定的目录下。

然后,运行之前的快捷方式。

与Steam整合

教程征求中。

Troubleshooting

How to debug a game crash, freeze, or other issue unrelated to translation

A complete patch setup is made up of a number of individual parts, any one of which will be responsible for the issue you're experiencing. If possible, please try to pin down the cause before reporting an issue to us.

  • Does the issue appear in the original, unpatched game?
While thcrap fixes some of the bugs in the original games as part of its patch support, we sadly don't have the capacities to fix all of them, as we are mostly busy with thcrap's own bugs and features, first and foremost. Still, please report the issue, maybe it is trivial enough that one of our developers can look at it and fix it fairly quickly.
  • Try removing patches from your stack, one by one, starting at the bottom.
  • To do this, edit the run configuration .js file generated by thcrap_configure in a plaintext editor like Notepad.
For example, if you only selected the English translation, you'd edit en.js (or whatever you've named it). You'd first remove the
, { "archive": "thpatch/lang_en/" }
section, then check whether that fixed your error, using your existing shortcuts or launchers. If it didn't, remove the next patch, and so on.
If you are unfamiliar with JSON, use JSONLint or JSON Formatter to verify the syntax of your edited file. This site also gives you helpful error messages if you e.g. left a comma at the end of the "patches" section.
  • If necessary, repeat this until you have no patches left. Note that running thcrap with no patches is still different from running the original, unpatched game. It still applies the game-independent features of thcrap, like its locale independence code or its propagation to child processes, onto the game, which might be the cause of your bug.
If the bug still appears with no patches, you're done. But if you could identify a patch that caused your issue:
  • Temporarily delete or rename thcrap_update.dll in the thcrap directory in order to disable automatic updates.
  • Look at thcrap_log.txt and check which files of that patch are actually loaded by the game. These are indicated by lines beginning with a + .
  • Delete those files one by one, until the bug doesn't appear any more.
These files will be re-downloaded once you restore thcrap_update.dll.

已知问题

配置程序无法识别我的游戏,快捷方式也没有创建

如果游戏是萃梦想(Icon th075.png Immaterial and Missing Power):thcrap并不支持萃梦想。

如果不是,请把游戏exe文件发送至 discord.png Discordirc.freenode.net#thcrap irc.png IRC频道。我们会查看并分析的。

对话文本问题

在Wine上,未翻译的日文显示为空白

那是Wine的一个bug,且直到2017年10月仍未修复。 即使日文字体已经安装 and work as intended on an unpatched game, Wine's font substitution is not sophisticated enough yet to use glyphs from these fonts in case the currently selected font (Touhou Biolinum for Latin script languages) does not contain Japanese glyphs.

对话文本出框了

很不幸,ZUN的游戏引擎并不支持自动换行,并且我们也不想让Wiki分析器来自动分析哪里需要插一个自动换行。这意味着 所有对话的换行都得人力操作

如果你发现有对话文本出现了这种情况,登录thpatch,找到对应的翻译页面自行换行即可。如果是第三方补丁,向补丁制作者联系反馈(比如留下的Email或其托管的github仓库)。

各种错误

弹出日语文字的错误框
ZUN的禁止双开

右边这个错误框会在系统中有两个东方游戏(已经有一个在运行然后打开第二个)的时候弹出,意思是不允许双开游戏。
检查任务管理器是否有僵死的进程,并在需要时强制停止运行。

有些翻译未完成或没有

看看thpatch上相应的翻译页面。大多数时候是翻译还没做完。

补丁配置

为啥补丁A和补丁B不兼容?
啊哦!

如果要应用多个补丁,应用的顺序就很重要。
举个例子,某人要应用 Gamer251的魅魔补丁 来适配魅魔的图像和对话,Alphes风补丁用于适配Alphes绘,以及我们的英文补丁保证余下的文字都是英文。
如果他先加载魅魔的补丁,接着是Alphes绘,最后是英文补丁,就会看到当前两个补丁应用后,英语翻译(魔理沙的名字)就把魅魔的名字给盖住了。
所以对于常规补丁配置而言,如果该补丁还没有选上,正确的选择顺序是翻译类补丁在前,其它补丁在后。(参考 Nazeo的Gangster补丁

使用Wine(Linux和Mac)时出现"未找到"version.js错误

这是个已知的bug。复制thcrap/bin下所有DLL文件至thcrap目录下然后再试一次,应该就没问题了。

补丁好像没更新

完整手动重装新版本thcrap通常有用。

还是没解决!

找不到解决方法?没任何效果?我们可以帮你!(大多数时候)

访问我们的 discord.png Discord 或我们在 irc.freenode.net 的 IRC 频道 #thcrap
我们需要你的操作系统、出问题的游戏、你之前的一些操作以及thcrap的记录文件(thcrap_log.txt)。

配置文件运行参数

根层级

dat_dump

在补丁应用的同时,从dat档案中输出原版的游戏文件。
从2013-07-29版开始增加输出贴图的切图框功能。
值: false 以禁用。目录字符串指定特定输出位置。其余值会启用并输出至 <游戏文件夹>/dat 内。

console

启用或禁用调试命令行。
值: true / false

font

更改应用于游戏中的字体。
只能是计算机中已经安装的字体。该参数不会影响从服务器上下载的字体配置,只作用于本地。
值: 字符串型

补丁(Patch)层级

archive

指定要应用的补丁的目录,必须以斜杠(/)结尾。
从2014-01-03版开始,此参数的值可以是以该文件为基准的相对路径。
值: 字符串型

ignore

忽略(跳过)应用补丁中符合名字的文件。可以使用通配符一次性应用复数个文件。
值:字符串 数组
例:对某个语言补丁禁用音乐标题和符卡名翻译
{
	"archive": "thpatch/lang_en/"
},
{
	"archive": "thpatch/lang_pt-br/",
	"ignore": ["*themes.js", "*spells.js"]
},

update

设置为 false 以禁用该补丁的自动更新。
值: true/false

另外,你可以在配置结束后安全地删除 thcrap_update.dll 来移除thcrap的所有联网功能。