diff --git a/README_zhCN.md b/README_zhCN.md new file mode 100644 index 0000000..60c75cd --- /dev/null +++ b/README_zhCN.md @@ -0,0 +1,72 @@ +

🔍 Where is That From

+

超简单就找到这个话题是谁添加的!

+
啊对对,它的简称就是wtf.
+ +

+ + Latest release + + + Release downloads + + + Reddit badge + + + MIT license badge + + + Discord server + + + Ko-fi badge + +

+ + +## 🌟 特性 + +对于那些热衷于尝试新的子模组并且可能需要帮助找到某个特定主题来源的人来说,这是一个真正必备的工具! + +* 区分官方主题和子模组主题 +* 提供当前主题名称的信息 +* 显示所有者子模组名称和脚本文件位置 + +## ❓ 安装 + +1. 前往[Releases][6],滚动到Assets部分。 +2. 下载 `where-is-that-from-VERSION.zip` 文件。 +3. 从中拖放`Submods`文件夹到你的`game`文件夹中。 +4. 安装完成!~ + +### 📚 如何使用? + +每当您需要找到您当前正在查看的主题的位置以及它所属的子模组时,按下`W`键或`?`(问号,可能需要按住`Shift⬆`键),弹出对话框窗口将向您提供所有可用的信息。 + +### 🙋 常见问题解答 + +*长话短说,归咎于Ren'Py。 不要归咎于MAS,也不要归咎于MAS开发人员或WTF开发人员,归咎于Ren'Py的设计选择不佳。* + +#### 🤔 为什么使用“似乎”和“可能”这样的不确定性词语? + +不幸的是,目前没有一种可靠的直接的编程方法来确定Ren'Py正在使用哪个文件来显示某个特定主题;为了解决这个问题,Where is That From 子模组使用了一些技巧,但这些技巧并不总是可靠且准确。 + +此外,无法确定当前主题是否在您完成它后仍将可访问,因为它可能在最后执行某些锁定逻辑,而且无法确定它是否肯定会再次访问。很抱歉带来的不确定性,但它只能做到这样... + +#### 🤔 为什么它无法检测到所属主题的子模组? + +由于Ren'Py的工作方式和MAS处理事件的方式,无法确定某个主题是否属于具有某些子模组元数据的文件。Where is That From子模组尝试在当前主题文件中搜索子模组元数据,如果没有找到,它也可以尝试在相邻文件中查找。然而,在将.RPY/.RPYC文件放置在`game`或`game/Submods`而不是其自己的文件夹中的情况下,搜索范围太广,它不能在没有高风险误报的情况下查找周围文件并确定所属的子模组头。 + +另外,子模组开发人员可能会因自己的原因省略该标头,这会阻止Where is That From子模组确定提供脚本文件的子模组。但它至少可以告诉您当前正在查看的主题所在的文件。 + +## 💬 加入我们的Discord + +我们欢迎交流!来加入子模组作者的[Discord服务器][8]。 + +[![Discord server invitation][10]][8] + +[6]: https://github.com/MAS-Submod-MoyuTeam/mas-wtf/releases/latest +[8]: https://dcache.me/discord +[9]: https://mon.icu/discord +[10]: https://discordapp.com/api/guilds/1029849988953546802/widget.png?style=banner3 +[12]: https://github.com/friends-of-monika/mas-wtf diff --git a/mod/screens.rpy b/mod/screens.rpy index c23cbd7..5d38983 100644 --- a/mod/screens.rpy +++ b/mod/screens.rpy @@ -34,7 +34,7 @@ init python in _fom_wtf_screens: if res is None: # When output is None, locating routine didn't find a trustworthy # script file location and therefore we cannot tell much to user - msgbox("Could not locate file that owns this topic.") + msgbox("无法找到拥有此对话主题的文件.") else: # Obtain file path and metadata (may be None) from result parameter @@ -44,25 +44,24 @@ init python in _fom_wtf_screens: # If no metadata found and file path has just one slash, # therefore it must be located directly in game/ if len(_file.split("/")) == 2: - message = ("Could not detect submod that owns this topic, " - "it {{i}}may be{{/i}} an official MAS topic " - "because its file is located directly in " - "{{i}}game/{{/i}} folder: {{i}}{0}{{/i}}" + message = ("无法找到此话题所属的子模组, " + "它{{i}}可能{{/i}}是MAS本身的话题" + "因为它的文件被定位在" + "{{i}}game/{{/i}} 文件夹中: {{i}}{0}{{/i}}" .format(_file)) # Otherwise, check if it's in game/Submods elif (len(_file.split("/")) > 2 and _file.lower().startswith("game/Submods")): - message = ("Could not detect submod that owns this topic, " - "it is impossible to search for its header " - "because its file is located among other " - "submods in {{i}}game/Submods{{/i}} folder: {0}" + message = ("无法找到此话题所属的子模组, " + "因为它的文件被定位在其他子模组的文件夹:" + "{{i}}game/Submods{{/i}} 文件夹中: {0}" .format(_file)) # Or else fall back to some generic message else: - message = ("Could not detect what submod owns this topic, " - "but it seems to be located in {{i}}{0}{{/i}}." + message = ("无法找到此话题所属的子模组, " + "不过看起来它的文件在:{{i}}{0}{{/i}}." .format(_file)) else: @@ -72,8 +71,8 @@ init python in _fom_wtf_screens: author = metadata["author"] # Make up an informative message about topic and owning submod - message = ("It seems that this topic is owned by {{i}}{0} v{1} " - "by {2}{{/i}} and it seems to be located in " + message = ("看起来这个话题在 {{i}}{0} v{1}, " + "作者{2}{{/i}} 而且它的文件位于 " "{{i}}{3}{{/i}}.".format(submod, version, author, _file)) @@ -81,18 +80,18 @@ init python in _fom_wtf_screens: # it is the same as event label) if bool(ev.prompt) and ev.prompt != ev.eventlabel: # Construct a message with info - topic_title = ("The topic is called {{i}}{0}{{/i}}" + topic_title = ("这个话题的名称为 {{i}}{0}{{/i}}" .format(ev.prompt)) # If topic is random, tell so if ev.random: - topic_title += ("\nand it {i}might{/i} be accessible from " - "{i}Repeat conversation{/i} menu.") + topic_title += ("\n而且它{i}可能{/i}能从" + "{i}我想再谈谈...{/i} 菜单中再次访问.") # If topic is pooled, tell so elif ev.pool: - topic_title += ("\nand it {i}might{/i} be accessible from " - "{i}Hey, [m_name]...{/i} menu.") + topic_title += ("\n而且它{i}可能{/i}能从" + "{i}嗨, [m_name]...{/i} 菜单中再次访问.") # Else just close the message with a dot if topic prompt # doesn't end with punctuation