如何修改错误提示(面向模组制作者)

简短教程:使用 QuickBMS 解包后,在对应语言文件中搜索错误提示,修改 `invalid_files` 和 `invalid_files_repair_files` 两项文本。需要 QuickBMS 及其配套 Shiro Games PAK 脚本;完整教程可参考 Olto 模组。

0浏览
0下载点击
0点赞
0收藏

关于这个 Mod

如何修改错误提示(面向模组制作者)

如果不想让模组弹出“游戏文件损坏”一类提示,可以按此简短教程自定义提示文本。

使用 QuickBMS 解包后,前往 \lang 文件夹(例如 MyMod\lang)。如果你把 res.pak 解包到了其他位置,就在对应目录中打开 texts_en.xml,或你正在处理的其他语言文件。

搜索以下标签:

<t id="invalid_files"></t>
<t id="invalid_files_repair_files"></t>

原始文本如下:

<t id="invalid_files">Some game files may not have downloaded correctly and may cause errors.</t>
<t id="invalid_files_repair_files">You can check the files integrity or reinstall the game.</t>

将两项内容都改成你希望向玩家显示的文字即可。

所需工具与参考

来源与文件

文件说明

nothing here to really download, just a text file explaining exactly what's in the description

来源列出的依赖与关系

  • 作者列出的前置:Olto mod — Follow the directions here for a QuickBMS tutorial, if mine looks like gibberish!
  • 作者列出的前置:QuickBMS — download link for QuickBMS
  • 作者列出的前置:Supplementary Script for the above tool — download link for Shiro Games PAK script, required in using QuickBMS

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:wartales:31 -->