English | 简体中文
Coordinates dialogue gating with RimTalk while bidirectionally syncing RimMind personality, memory, advisor, and storyteller context.
RimMind-Bridge-RimTalk is a zero-compile-dependency compatibility bridge between RimMind and the third-party RimTalk dialogue mod. It suppresses overlapping RimMind dialogue triggers when RimTalk is active, pushes RimMind cognitive providers into RimTalk prompt variables and context hooks via reflection (RimTalkApiShim), and pulls recent RimTalk dialogue history back into RimMind's context engine.
- Dialogue Mutual-Exclusion Gating: Independently suppresses RimMind's chitchat, auto dialogue, player input, and "Chat with X" float-menu triggers when RimTalk is active (with an override to keep both player chat entries).
- Context Push (RimMind → RimTalk): Exposes optional RimMind providers (personality, work/social tendencies, AI narrative, memory, shaping history, advisor history, and storyteller state) as RimTalk template variables, a
RimMind Contextprompt entry, and optional Traits/Mood context hooks. - Context Pull (RimTalk → RimMind): Reads recent
RimTalk.Data.TalkHistorymessages via main-thread snapshots and cached reflection, registering them as therimtalk_historycontext provider inRimMind-Core.
Bidirectional integration in action: RimTalk conversations enriched with RimMind personality, memory, advisor, and storyteller context while RimMind stays aware of RimTalk chat history.
flowchart LR
CoreProviders["RimMind-Core Providers<br/>(Personality / Memory / Advisor / Storyteller)"] --> Push["ContextPushBridge & PersonaPushBridge"]
Push --> Shim["RimTalkApiShim (Reflection)"]
Shim --> RimTalk["RimTalk Prompt Variables & Hooks"]
RimTalkHistory["RimTalk TalkHistory"] --> Pull["ContextPullBridge (Main-Thread Snapshot)"]
Pull --> CoreContext["RimMind-Core ContextKeys (rimtalk_history)"]
Gate["DialogueGate (ISkipCheck)"] --> RimMindDialogue["RimMind-Dialogue Triggers & Float Menu"]
1. Harmony
2. Core (Vanilla RimWorld)
3. RimTalk (Required third-party mod)
4. RimMind-Core
5. [Optional RimMind submodules: Memory / Personality / Dialogue / Actions / Advisor / Storyteller]
6. RimMind-Bridge-RimTalk
Run unit tests and dual-version builds from the workspace root:
dotnet test RimMind-Bridge-RimTalk/Tests/RimMindBridgeRimTalk.Tests.csproj -c Release
dotnet build RimMind-Bridge-RimTalk/Source/RimMindBridgeRimTalk.csproj -c Release -p:GameVersion=1.6
dotnet build RimMind-Bridge-RimTalk/Source/RimMindBridgeRimTalk.csproj -c Release -p:GameVersion=1.7Licensed under the MIT License.