NPC 自定义名称(含对话、TTS 与 Twitch 支持,已过时)

为收银员、补货员、顾客助手和保安等 NPC 设置名称,可从 Steam 好友、外部名称列表或 Twitch 聊天获取;支持 Google 自动翻译和语音合成。TTS 仅在坐收银台时生效。此版本标注为已过时。

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

关于这个 Mod

NPC 自定义名称

作者最初是因为收银台工作时觉得冷清而制作了这个模组,之后加入了许多新功能;部分想法来自 Ulukkar,作者对此表示感谢。

名称来源可选择 Steam 好友、外部名称列表或任意 Twitch 聊天室用户。模组还支持 Google 自动翻译和 Google 文字转语音(TTS)。注意:只有坐在收银台时 TTS 才会工作,否则店内会同时出现太多声音。

安装与配置

下载 MelonLoader,并将模组文件放入:

Supermarket Simulator\BepInEx\plugins\

目录结构应如下:

Supermarket Simulator\BepInEx\plugins\NPCsCustomNames\NPCsCustomNames.dll
Supermarket Simulator\BepInEx\plugins\NPCsCustomNames\NPCsCustomNames_List.txt
Supermarket Simulator\BepInEx\plugins\NPCsCustomNames\NPCsCustomNames_List_Female.txt
Supermarket Simulator\BepInEx\plugins\NPCsCustomNames\NPCsCustomNames_List_Male.txt
Supermarket Simulator\BepInEx\plugins\NPCsCustomNames\NPCsCustomNames_Text.txt
Supermarket Simulator\BepInEx\plugins\NPCsCustomNames\data\

游戏启动一次后会生成配置文件:

Supermarket Simulator\BepInEx\config\shaklin.NPCsCustomNames.cfg

如果缺少 NPCsCustomNames_List.txt、NPCsCustomNames_List_Female、NPCsCustomNames_List_Male 或 NPCsCustomNames_Text.txt,游戏启动时会生成这些文件;若文件已存在,则会读取它们。

作者推荐使用 ConfigurationManager(BepInEx.ConfigurationManager_BepInEx5_v18.4.zip)。将其解压到:

Supermarket Simulator\BepInEx\plugins\

游戏内按 F1 配置模组。

如需现成名称包,作者推荐 NPCsCustomNames - Names and Dialogues Addon,由 Ulukkar 制作。

常见问题

如何为员工设置新名称?

收银员、补货员、顾客助手和保安的名称保存在模组的 data 子文件夹中,以便下次加载。若要为他们更换名称,需要解雇后重新雇用,或编辑 data 子文件夹中的文件。

注意:如果只启用了 Steam 名称功能,员工在首次启动时可能没有名称,因为他们会在获取好友列表前生成。再次解雇并雇用员工即可;之后名称会保存在 data 子文件夹中。

可以添加现有列表之外的内容吗?

可以。添加相应名称的文件即可,例如:

NPCsCustomNames_List_anyname.txt
NPCsCustomNames_List_Female_anyname.txt
NPCsCustomNames_List_Male_anyname.txt
NPCsCustomNames_Text_anyname.txt

配置选项说明

选项较多;true 表示启用,false 表示禁用。

启用 Steam 好友名称:

ALLOW STEAM = true

启用 NPCsCustomNames_List.txt 中的名称:

ALLOW TXT = true

启用 Twitch 聊天名称:

ALLOW TWITCH = true

若启用 Twitch 名称,请设置频道名称;不需要 OAuth:

CHANNEL = 任意频道名称

启用性别分类功能时,上述来源选项会被忽略。要使用 NPCsCustomNames_List_Female.txt 和 NPCsCustomNames_List_Male.txt 中的名称,请启用:

ALLOW GENDER ONLY = true

启用自动翻译:

ALLOW TRANSLATE TEXTLINE = true

启用自动翻译后,选择目标语言:

TRANSLATE TEXTLINE LANGUAGE = en

启用文字转语音:

ALLOW TTS = true

启用 TTS 后,选择目标语言:

TTS LANGUAGE = en-US

语言代码列表:http://www.lingoes.net/en/translator/langcode.htm。Google 并不支持所有语言;例如 en 不工作时,可以尝试 en-US。

来源与文件

文件说明

Update 1.1.1

Added Janitor

Fixed outline (now it works for each individual)

The color of the Guards is now brown, because the Janitor is blue

If you want to reset the Guard name color:

press F1 and click at GUARD COLOR NAME on "Reset"

Reload the savegame

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

<!-- aoe-mods-source:nexusmods:supermarketsimulator:116 -->