StardewValley-AI-Chat

StardewValley-AI-Chat

使用建议回复或你自己的文本与星露谷物语NPC聊天。包含持久偏好记忆、记忆编辑和每日对话限制。支持DeepSeek、Claude、OpenAI、MiniMax、Qwen和Kimi。需要SMAPI和你自己的API密钥。目前使用简体中文。

中文版

描述

StardewValley-AI-Chat 为《星露谷物语》加入结合人物设定与游戏情境的 AI 对话。玩家可以选择建议台词或自由输入,并让 NPC 记住明确表达过的偏好。

当前公测版的界面与生成对话主要使用简体中文。

安装说明

  1. 安装 SMAPI。
  2. 将压缩包中的整个 StardewValley-AI-Chat 文件夹解压到游戏的 Mods 目录。
  3. 打开模组文件夹中的 config.json,填写 AI.ApiKey 并将 AI.Enabled 改为 true,默认服务为 DeepSeek。
  4. 使用其他服务时,从 ConfigTemplates 选择对应模板,将其中的 AI 对象复制到自己的配置中,并核对地址与模型。
  5. 通过 SMAPI 启动游戏,靠近并面向 NPC,按 K 或右键选择“对话”。

升级前请备份自己的配置及 Data/ConversationMemory 中的记忆文件。

主要功能

  • 三条建议与自由输入,选择台词后仍可编辑。
  • 情境化回复,结合地点、时间、天气、好感度和关系状态。
  • 人物设定,提供 47 份原版角色参考档案,并支持兼容的自定义 NPC。
  • 近期与长期记忆,保留最近六轮交流,记录玩家明确表达的偏好。
  • 记忆管理面板,支持查看、纠正及单条、类别或全部遗忘。
  • 每日交谈流程,首聊先显示原版开场,再由玩家回复。
  • 可配置上限与好感度,普通 NPC 默认每天五轮,伴侣默认不限,首轮回复可获得分档好感度奖励。
  • 多服务模板,提供 DeepSeek、Claude、OpenAI、MiniMax、Qwen、Kimi 及通用兼容接口配置。
  • 本地回退,远程生成不可用时使用本地对话。

需求

  • 已验证环境为 Stardew Valley 1.6.15 与 SMAPI 4.5.2。
  • 远程对话需要网络连接及所选服务的个人 API Key,调用费用由服务商收取。
  • Generic Mod Config Menu 为可选依赖,用于调整每日上限、记忆与输出预算。
  • Input Method Fix 为可选依赖,用于中文输入法支持。

致谢

感谢 ConcernedApe 创造《星露谷物语》,感谢 SMAPI、Generic Mod Config Menu、Input Method Fix 的开发者,以及 Stardew Valley Wiki 社区提供的工具与资料。

本项目使用 ChatGPT / Codex 协助完成开发,采用 MIT 许可证。

请查看源码: https://github.com/Lone-Jade/StardewValley-AI-Chat


英文版

描述

StardewValley-AI-Chat adds AI-powered NPC conversations informed by character profiles and game context. Choose suggested replies or write your own, and let NPCs remember preferences you explicitly share.

The current public beta primarily uses Simplified Chinese for its interface and generated dialogue.

安装说明

  1. Install SMAPI.
  2. Extract the entire StardewValley-AI-Chat folder into your game's Mods directory.
  3. Open the included config.json enter your AI.ApiKey and set AI.Enabled to true DeepSeek is the default provider.
  4. To switch providers, copy the AI object from a matching file in ConfigTemplates into your configuration, then check the endpoint and model.
  5. Launch through SMAPI. Approach and face an NPC, then press K or right-click and select the conversation option.

Before updating, back up your configuration and the memory files in Data/ConversationMemory

主要功能

  • Three suggested replies alongside editable free-text input.
  • Context-aware responses using location, time, weather, friendship, and relationship status.
  • Reference profiles for 47 vanilla characters and support for compatible custom NPCs.
  • Six rounds of recent conversation history and persistent memory for explicit player preferences.
  • A memory panel for reviewing, correcting, and forgetting individual entries, categories, or all memories.
  • Original NPC opening dialogue during the first daily conversation.
  • Configurable daily limits and tiered first-conversation friendship rewards.
  • Templates for DeepSeek, Claude, OpenAI, MiniMax, Qwen, Kimi, and OpenAI-compatible services.
  • Local dialogue fallback when remote generation is unavailable.

需求

  • Tested with Stardew Valley 1.6.15 and SMAPI 4.5.2.
  • Remote conversations require internet access and your own provider API key. Provider usage charges apply.
  • Generic Mod Config Menu optionally provides configuration controls.
  • Input Method Fix optionally enables Chinese input-method support.

致谢

Thanks to ConcernedApe, the developers of SMAPI, Generic Mod Config Menu, and Input Method Fix, and the Stardew Valley Wiki community for their tools and reference material.

Developed with assistance from ChatGPT / Codex and released under the MIT License.

The original code: https://github.com/Lone-Jade/StardewValley-AI-Chat