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

From Touhou Patch Center
Jump to navigation Jump to search
(Created page with "=== 救命!我的红魔乡像磕了药的天狗一样高速咏唱了!! === 要在Windows 10上游玩红魔乡,你需要vpatch辅助压制帧数暴走。")
(Updating to match new version of source page)
 
(52 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Project overview/{{pagelang}}}}
{{Project overview/{{PAGELANGUAGE}}}}
<languages /><div style="float:right;">__TOC__</div>
<languages /><div style="float:right;">__TOC__</div>
<span id="Main_Package_(Multi-Language,_Multi-Game)"></span>
== 主程序包 (多语言多作品对应) ==
== 主程序包 (多语言多作品对应) ==
:[[File:Gnome-dev-zipdisk.svg|64px|link=]] <font size=26>[https://github.com/thpatch/thcrap/releases/latest/download/thcrap.zip 从Github下载]</font>
:[[File:Gnome-dev-zipdisk.svg|64px|link=]] <font size=26>[https://github.com/thpatch/thcrap/releases/latest/download/thcrap.zip 下载]</font>
:<span class="plainlinks">'''[https://github.com/thpatch/thcrap/releases 更新履历]'''</span>
:<span class="plainlinks">'''[https://github.com/thpatch/thcrap/releases 更新历史]'''</span>
:'''源代码:''' [https://github.com/thpatch/thcrap @ GitHub]
:'''源代码:''' [https://github.com/thpatch/thcrap @ GitHub]


:基于[[Portal:en|英文翻译分支]]的[[Standalone_Patches|预打包补丁]] (不推荐).
:基于[[Portal:en|英文翻译分支]]的[[Standalone_Patches|预打包补丁]](不推荐)
 
:[https://github.com/thpatch/Universal-THCRAP-Launcher/releases Universal THCRAP Launcher, recommended quick launch addon], and [https://github.com/thpatch/Universal-THCRAP-Launcher#readme Read this for how to install]


:[https://github.com/thpatch/Universal-THCRAP-Launcher/releases Universal THCRAP Launcher, recommended quick launch addon]


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


<span id="Setup_Instructions"></span>
== 安装方法 ==
== 安装方法 ==
=== [http://radlionheart.tumblr.com/post/51430332438/image-walkthrough-on-how-to-use-the-translation 图文教程] <small>(虽然有点过时了,嗯)</small> ===
=== [https://www.bilibili.com/video/BV1TY411G7Af 中文视频教程] ===
=== [https://www.youtube.com/watch?v=yr22qZudfzg 视频版教程]<small>(Via YouTube)</small> ===
=== <div class="mw-translate-fuzzy">
[https://github.com/Yanstory/tpZHCNex/blob/master/thcrap_CNmanual_v0.53.pdf 中文配置手册]
</div> ===
=== 简易使用方法 ===
=== 简易使用方法 ===
* 开始之前,'''不需要将thcrap解压到特定的作品目录之下'''。thcrap可以在任意目录运行。
* 开始之前,'''不需要将thcrap解压到特定的作品目录之下'''。thcrap可以在任意目录运行。


* 运行 <tt>thcrap_configure.exe</tt> 并按照说明进行补丁配置。
* 运行 <code>thcrap.exe</code> 并按照说明进行补丁配置。


* 最后会创建一个.js文件(即配置数据)和连接这个配置的、用于启动游戏的各个快捷方式。注意thcrap ''不会'' 修改任何已有的东方游戏文件。
* 最后会创建一个.js文件(即配置数据)和连接这个配置的、用于启动游戏的各个快捷方式。注意thcrap ''不会'' 修改任何已有的东方游戏文件。
Line 26: Line 31:
=== 详细使用方法 ===
=== 详细使用方法 ===
# 下载thcrap并解压(不需要解压到某个必须的目录或者哪一作的目录,扔哪里都可以)
# 下载thcrap并解压(不需要解压到某个必须的目录或者哪一作的目录,扔哪里都可以)
# 运行 <tt>thcrap_configure.exe</tt>
# 运行 <code>thcrap.exe</code> 以扫描东方游戏。
# 选择'''想要的所有'''语言包。<br />是的,可以是复数个。如果你还是懂一点点英语的话,我们推荐你''总是''在最后包含英语分支 <tt>lang_en</tt> ,并将你的母语分支放在它的上面。 [[Special:MyLanguage/Project:Patch stacking|点此阅读更多关于补丁叠加机制的内容。]]
# 选择'''想要的所有'''语言包。<br />是的,可以是复数个。如果你还是懂一点点英语的话,我们推荐你''总是''在最后包含英语分支 <code>lang_en</code> ,并将你的母语分支放在它的上面。 [[Special:MyLanguage/Project:Patch stacking|点此阅读更多关于补丁叠加机制的内容。]]
# 等待数据下载。
# 等待数据下载。
# 在扫描游戏环节,选择存放着东方游戏的文件夹,或点击取消直接扫描整个系统。
# 在扫描游戏环节,选择存放着东方游戏的文件夹,或点击取消直接扫描整个系统。
Line 34: Line 39:
# 享受thcrap带来的无缝翻译吧!
# 享受thcrap带来的无缝翻译吧!


=== Running on top of vpatch ===
=== 在vpatch上运行 ===
This is possible as of the 2013-10-25 build. Due to the DLL-centric design of vpatch, thcrap_configure doesn't automate this yet, so this requires a few manual steps for now:
这在2013-10-25版本上是可能的。由于vpatch以dll为中心设计,<code>thcrap</code>还没有实现自动化,所以现在需要一些手动步骤:


# '''If you don't have vpatch yet''', please download it from [https://en.touhouwiki.net/wiki/Game_Tools_and_Modifications#Vsync_Patches Touhou Wiki] or [https://ux.getuploader.com/swmplv75e/ from the author's download page].
# '''如果你还没有vpatch''',请从[https://en.touhouwiki.net/wiki/Game_Tools_and_Modifications#Vsync_Patches Touhou Wiki]或者 [https://ux.getuploader.com/swmplv75e/ 从作者的下载页面]下载。
# Configure your patch stack as usual. If you have multiple versions of the games installed, it is merely important to choose the correct directory at this point.
# 像往常一样配置补丁。如果你安装的游戏有多个版本,请确保选择正确的路径。
# Open the generated <tt>games.js</tt> in a plaintext editor, and replace the game's .exe file names with <tt>vpatch.exe</tt> (or whatever the local vpatch executable is called).
# 在文本编辑器中打开生成的<code>games.js</code>,并将游戏的.exe文件名替换为<code>vpatch.exe</code>(或者路径下vpatch可执行文件的名称)。
# Starting the games through the shortcuts will then launch thcrap, vpatch and the game itself. thcrap will automatically enable support for Japanese characters and file names, so '''AppLocale is not required''' (yes, not even for 東方紅魔郷.exe).
# 通过生成的快捷方式启动游戏,thcrap和游戏本体会自动启动. thcrap会自动转码日语文字和文件名,所以'''内码转换器是不需要的'''(没错,就算文件名为東方紅魔郷.exe而不是搶曽峠杺嫿.exe)。


=== 救命!我的红魔乡像磕了药的天狗一样高速咏唱了!! ===
=== ⑨命!我的红魔乡{{GameLabel|th06}}像打了鸡血的天狗喷气战斗机一样高速咏唱了!! ===
要在Windows 10上游玩红魔乡,你需要vpatch辅助压制帧数暴走。
在Windows 10上游玩红魔乡需要vpatch。


# Download this complete [[:File:vpatch_th06_for_thcrap.zip|vpatch th06 for thcrap package]]. It includes vpatch (rev4) and our [[:File:vpatch_th06_unicode.zip|modified Unicode vpatch DLL]].
# [[:File:vpatch_th06_for_thcrap.zip|点此下载]]vpatch红魔乡thcrap适配版完整包。这个包包含了vpatch (rev4版) 以及我们的[[:File:vpatch_th06_unicode.zip|魔改版Unicode vpatch DLL]]
# Extract the zip contents into your EoSD directory.
# 解压上述压缩包的内容到你的红魔乡文件夹。
# If your EoSD directory already contains a file named <tt>vpatch_th06.dll</tt>, please remove it. You will only need <tt>vpatch_th06_unicode.dll</tt>.
# 如果你的红魔乡文件夹里已经有了 <code>vpatch_th06.dll</code> ,请删掉。以后你只需要 <code>vpatch_th06_unicode.dll</code>
# If your game executable is named <tt>th06.exe</tt>, rename it to <tt>東方紅魔郷.exe</tt>. This is necessary because <tt>vpatch.exe</tt> will expect to find only this file. If you only have <tt>th06e.exe</tt> and neither <tt>東方紅魔郷.exe</tt> or <tt>th06.exe</tt>, you are using the modified English static patch. We highly recommend that you use a proper Japanese original 1.02h version instead.
# 如果你的游戏程序文件名是 <code>th06.exe</code>,请更名为 <code>東方紅魔郷.exe</code> ,因为 <code>vpatch.exe</code> 只会查找这个名字的程序。特别的,如果你的文件名是 <code>th06e.exe</code> 同时并没有 <code>東方紅魔郷.exe</code> 或者 <code>th06.exe</code>,那你正在使用的是直接修改版的英文补丁。我们强烈建议使用日文原版的1.02h。
# Open <tt>thcrap\config\games.js</tt> with a text editor and make <tt>th06</tt> point to <tt>vpatch.exe</tt> instead of the game executable.
# 使用文本编辑器打开 <code>thcrap\config\games.js</code> ,并修改 <code>th06</code> 的路径为<code>vpatch.exe</code> 的路径而非游戏程序的路径。
# If you encounter a lot of screen tearing, open <tt>vpatch.ini</tt> and set <tt><syntaxhighlight lang="javascript" enclose=none>vsync = 0</syntaxhighlight></tt> to <tt><syntaxhighlight lang="javascript" enclose=none>vsync = 1</syntaxhighlight></tt>.
# 如果你遇到了画面撕裂,打开 <code>vpatch.ini</code> ,将 <code><syntaxhighlight lang="json" inline>vsync = 0</syntaxhighlight></code> 改为 <code><syntaxhighlight lang="json" inline>vsync = 1</syntaxhighlight></code>


<span id="Tricks"></span>
==小技巧==
==小技巧==


Line 58: Line 64:


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


保存并通过之前的快捷方式运行即可。
然后,运行之前的快捷方式。


===Steam integration===
===与Steam整合===
We'd actually need a new guide how to do this at this place!
教程征求中。


<div lang="en" dir="ltr" class="mw-content-ltr">
== Troubleshooting ==
== Troubleshooting ==
=== How to debug a game crash, freeze, or other issue unrelated to translation ===
=== 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.
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* ''Does the issue appear in the original, unpatched game?''
* ''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, [[#HALP|please report the issue]], maybe it is trivial enough that one of our developers can look at it and fix it fairly quickly.
: 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, [[#HALP|please report the issue]], maybe it is trivial enough that one of our developers can look at it and fix it fairly quickly.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* ''Try removing patches from your stack, one by one, starting at the bottom.''
* ''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.
:* To do this, edit the run configuration .js file generated by <code>thcrap</code> in a plaintext editor like Notepad.
:: For example, if you only selected the English translation, you'd edit <tt>en.js</tt> (or whatever you've named it). You'd first remove the <syntaxhighlight lang="javascript">, { "archive": "thpatch/lang_en/" }</syntaxhighlight> 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.
:: For example, if you only selected the English translation, you'd edit <code>en.js</code> (or whatever you've named it). You'd first remove the <syntaxhighlight lang="json">, { "archive": "thpatch/lang_en/" }</syntaxhighlight> 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 [https://jsonlint.com/ JSONLint] or [https://jsonformatter-online.com 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 <tt>"patches"</tt> section.
:: If you are unfamiliar with JSON, use [https://jsonlint.com/ JSONLint] or [https://jsonformatter-online.com 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 <code>"patches"</code> 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 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:
:: 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 <tt>thcrap_update.dll</tt> in the thcrap directory in order to disable automatic updates.
::* Temporarily delete or rename <code>thcrap_update.dll</code> in the thcrap directory in order to disable automatic updates.
::* Look at <tt>thcrap_log.txt</tt> and check which files '''of that patch''' are actually loaded by the game. These are indicated by lines beginning with a <tt> + </tt>.
::* Look at <code>thcrap_log.txt</code> and check which files '''of that patch''' are actually loaded by the game. These are indicated by lines beginning with a <code> + </code>.
::* Delete those files one by one, until the bug doesn't appear any more.
::* Delete those files one by one, until the bug doesn't appear any more.
::: These files will be re-downloaded once you restore <tt>thcrap_update.dll</tt>.
::: These files will be re-downloaded once you restore <code>thcrap_update.dll</code>.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* Now that you know the exact cause, [[#HALP|report all the info you've gathered to the team]], and they will be happy about your detailed bug report, and certainly less frustrated than if you just posted one screenshot of the bug. ☺
* Now that you know the exact cause, [[#HALP|report all the info you've gathered to the team]], and they will be happy about your detailed bug report, and certainly less frustrated than if you just posted one screenshot of the bug. ☺
</div>


=== 已知问题 ===
=== 已知问题 ===
====配置程序无法识别我的游戏,快捷方式也没有创建====
====配置程序无法识别我的游戏,快捷方式也没有创建====
如果游戏是萃梦想({{GameLabel|th075}}):thcrap并不支持萃梦想。
如果游戏是萃梦想({{GameLabel|th075}}):thcrap并不支持萃梦想。
<div lang="en" dir="ltr" class="mw-content-ltr">
If you're on Linux or MacOS with Wine, there seems to be a bug when when the game is in a subfolder of the selected folder (which happens when you add your folder with all your games in it). If this happens, you'll need to use the "Find games in a specific folder..." button to add each game one by one.
</div>


如果不是,请把游戏exe文件发送至 https://thpatch.net/w/logos/discord.png [https://discord.thpatch.net/ Discord] 或 '''irc.freenode.net''' 的 '''#thcrap''' https://thpatch.net/w/logos/irc.png [https://webchat.freenode.net/?channels=#thcrap IRC频道]。我们会查看并分析的。
如果不是,请把游戏exe文件发送至 https://thpatch.net/w/logos/discord.png [https://discord.thpatch.net/ Discord] 或 '''irc.freenode.net''' 的 '''#thcrap''' https://thpatch.net/w/logos/irc.png [https://webchat.freenode.net/?channels=#thcrap IRC频道]。我们会查看并分析的。


<span id="Dialog"></span>
====对话文本问题====
====对话文本问题====


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


<span id="Errors"></span>
====各种错误====
====各种错误====


=====无法载入函数: thcrap_init=====
<span id="Japanese_text_error"></span>
我们也不知道究竟是哪儿出了问题。如果你不幸遇到了,请联系我们以便调试。<br />有时可能是反病毒软件的锅,重装thcrap和受影响的游戏可能有帮助。
 
=====弹出日语文字的错误框=====
=====弹出日语文字的错误框=====
[[File:The ZUN Mutex.png|frame|right|ZUN的禁止双开]]
[[File:The ZUN Mutex.png|frame|right|ZUN的禁止双开]]
Line 117: Line 135:
看看thpatch上相应的翻译页面。大多数时候是翻译还没做完。
看看thpatch上相应的翻译页面。大多数时候是翻译还没做完。


<span id="Patch_configuration"></span>
====补丁配置====
====补丁配置====


<span id="Why_does_Patch_X_not_work_with_Patch_Y?"></span>
=====为啥补丁A和补丁B不兼容?=====
=====为啥补丁A和补丁B不兼容?=====
[[File:Patch Used Wrong.png|thumb|right|Oops!]]
[[File:Patch Used Wrong.png|thumb|right|啊哦!]]
如果要应用多个补丁,应用的顺序就很重要。<br />举个例子,某人要应用 [https://github.com/Gamer251/thcrap-gamer251/tree/master/mima Gamer251的魅魔补丁] 来适配魅魔的图像和对话,Alphes风补丁用于适配Alphes绘,以及[[Patch:lang_en|我们的英文补丁]]保证余下的文字都是英文。<br />如果他先加载魅魔的补丁,接着是Alphes绘,最后是英文补丁,就会看到当前两个补丁应用后,英语翻译(魔理沙的名字)就把魅魔的名字给盖住了。 <br />所以对于常规补丁配置而言,如果该补丁还没有选上,正确的选择顺序是翻译类补丁在前,其它补丁在后。(参考 [https://github.com/Nazeo/thcrap-nazeo/tree/master/gangster Nazeo的Gangster补丁])
如果要应用多个补丁,应用的顺序就很重要。<br />举个例子,某人要应用 [https://github.com/Gamer251/thcrap-gamer251/tree/master/mima Gamer251的魅魔补丁] 来适配魅魔的图像和对话,Alphes风补丁用于适配Alphes绘,以及[[Patch:lang_en|我们的英文补丁]]保证余下的文字都是英文。<br />如果他先加载魅魔的补丁,接着是Alphes绘,最后是英文补丁,就会看到当前两个补丁应用后,英语翻译(魔理沙的名字)就把魅魔的名字给盖住了。 <br />所以对于常规补丁配置而言,如果该补丁还没有选上,正确的选择顺序是翻译类补丁在前,其它补丁在后。(参考 [https://github.com/Nazeo/thcrap-nazeo/tree/master/gangster Nazeo的Gangster补丁])
<div style="clear: both;">
<div style="clear: both;">
=====使用Wine(Linux和Mac)时出现"未找到"version.js错误=====
确保你的版本为最新版,我们在2021-08-30版本修复了一些有关Wine的重大bug。
同时,如果你之前通过使用DLL文件的方式解决了这个问题,请删除它们。这个解决方案已经无效了,并且在thcrap目录保留旧的DLL文件可能导致崩溃。你的thcrap根目录应该没有任何DLL文件。
====补丁好像没更新====
====补丁好像没更新====
完整手动重装新版本thcrap通常有用。
完整手动重装新版本thcrap通常有用。
Line 129: Line 155:
找不到解决方法?没任何效果?我们可以帮你!(大多数时候)
找不到解决方法?没任何效果?我们可以帮你!(大多数时候)


访问我们的 https://thpatch.net/w/logos/discord.png [https://discord.thpatch.net/ Discord] 或我们在 '''[http://webchat.freenode.net/?channels=#thcrap irc.freenode.net]''' 的 IRC 频道 '''#thcrap'''。 <br />我们需要你的操作系统、出问题的游戏、你之前的一些操作以及thcrap的记录文件(<tt>thcrap_log.txt</tt>)。
访问我们的 https://thpatch.net/w/logos/discord.png [https://discord.thpatch.net/ Discord] 或我们在 '''[http://webchat.freenode.net/?channels=#thcrap irc.freenode.net]''' 的 IRC 频道 '''#thcrap'''。 <br />我们需要你的操作系统、出问题的游戏、你之前的一些操作以及thcrap的记录文件(<code>thcrap_log.txt</code>)。


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


==== <tt>console</tt> ====
==== <code>console</code> ====
:启用或禁用调试命令行。
:启用或禁用调试命令行。
:值: ''true'' / ''false''
:值: ''true'' / ''false''


==== <tt>font</tt> ====
==== <code>font</code> ====
:更改应用于游戏中的字体。
:更改应用于游戏中的字体。
:只能是计算机中已经安装的字体。该参数不会影响从服务器上下载的字体配置,只作用于本地。
:只能是计算机中已经安装的字体。该参数不会影响从服务器上下载的字体配置,只作用于本地。
Line 148: Line 174:


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


==== <tt>ignore</tt> ====
==== <code>ignore</code> ====
:忽略(跳过)应用补丁中符合名字的文件。可以使用通配符一次性应用复数个文件。
:忽略(跳过)应用补丁中符合名字的文件。可以使用通配符一次性应用复数个文件。
:值:字符串 ''数组''
:值:字符串 ''数组''


===== 例:对某个语言补丁禁用音乐标题和符卡名翻译 =====
'''例:对某个语言补丁禁用音乐标题和符卡名翻译'''
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="json">
{
{
"archive": "thpatch/lang_en/"
"archive": "thpatch/lang_en/"
Line 167: Line 193:
},
},
</syntaxhighlight>
</syntaxhighlight>
==== <tt>update</tt> ====
==== <code>update</code> ====
:设置为 <tt>false</tt> 以禁用该补丁的自动更新。
:设置为 <code>false</code> 以禁用该补丁的自动更新。
:值: ''true/false''
:值: ''true/false''
另外,你可以在配置结束后安全地删除 <tt>thcrap_update.dll</tt> 来移除thcrap的所有联网功能。
另外,你可以在配置结束后安全地删除 <code>thcrap_update.dll</code> 来移除thcrap的所有联网功能。
[[Category:Tool]]
[[Category:Tools]]

Latest revision as of 01:18, 2 January 2024

项目总览
关于 教程

FAQ

下载 补丁服务器 github.png Bug 反馈 Wiki 安全性

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

Gnome-dev-zipdisk.svg 下载
更新历史
源代码: @ 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.exe 并按照说明进行补丁配置。
  • 最后会创建一个.js文件(即配置数据)和连接这个配置的、用于启动游戏的各个快捷方式。注意thcrap 不会 修改任何已有的东方游戏文件。

详细使用方法

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

在vpatch上运行

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

  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.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 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并不支持萃梦想。

If you're on Linux or MacOS with Wine, there seems to be a bug when when the game is in a subfolder of the selected folder (which happens when you add your folder with all your games in it). If this happens, you'll need to use the "Find games in a specific folder..." button to add each game one by one.

如果不是,请把游戏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错误

确保你的版本为最新版,我们在2021-08-30版本修复了一些有关Wine的重大bug。

同时,如果你之前通过使用DLL文件的方式解决了这个问题,请删除它们。这个解决方案已经无效了,并且在thcrap目录保留旧的DLL文件可能导致崩溃。你的thcrap根目录应该没有任何DLL文件。

补丁好像没更新

完整手动重装新版本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的所有联网功能。