English | 简体中文
Enables seamless coexistence with RimChat through dialogue/action gating, shared storyteller cooldowns, and one-way context pull.
RimMind-Bridge-RimChat provides configurable mutual-exclusion gating, shared storyteller cooldown coordination, and one-way history pull when playing with both RimMind and the third-party RimChat mod. It prevents duplicate chat windows and overlapping diplomacy/social/recruitment actions, and imports recent RimChat diplomacy and RPG logs into RimMind's context engine.
- Dialogue Gating: Independently gates RimMind's chitchat, auto dialogue, player input, and "Chat with X" float-menu triggers when RimChat is active, with an optional override to keep both player chat entries.
- Action & Storyteller Gating: Classifies diplomacy, social/romance, and recruitment tools via
ToolManifestmetadata (with explicit fallbacks) and coordinates storyteller incident triggers through a save-persisted shared cooldown (default 60,000 ticks / 1 in-game day). - One-Way Context Pull (RimChat → RimMind): Safely reads RimChat's diplomacy sessions (
rimchat_diplomacy) and optional per-colonist RPG archive (rimchat_rpg_history) via main-thread snapshots and cached reflection, automatically circuit-breaking on schema mismatch.
Harmonious coexistence in action: RimMind and RimChat active in the same colony without duplicate dialogue triggers or conflicting diplomacy actions.
flowchart TD
Event["Dialogue / Action / Incident Trigger"] --> Bridge["RimMind-Bridge-RimChat"]
Bridge --> Check{"RimChat Active & Gate Enabled?"}
Check -- Yes --> Suppress["Suppress RimMind Trigger & Defer to RimChat"]
Check -- No --> Allow["Allow RimMind Pipeline"]
RimChatLogs["RimChat Diplomacy & RPG Archives"] --> Pull["ContextPullBridge (Main-Thread Snapshot)"]
Pull --> CoreContext["RimMind-Core ContextKeys (rimchat_diplomacy / rimchat_rpg_history)"]
1. Harmony
2. Core (Vanilla RimWorld)
3. RimChat (Required third-party mod)
4. RimMind-Core
5. RimMind-Bridge-RimChat
Run unit tests and dual-version builds from the workspace root:
dotnet test RimMind-Bridge-RimChat/Tests/RimMindBridgeRimChat.Tests.csproj -c Release
dotnet build RimMind-Bridge-RimChat/Source/RimMindBridgeRimChat.csproj -c Release -p:GameVersion=1.6
dotnet build RimMind-Bridge-RimChat/Source/RimMindBridgeRimChat.csproj -c Release -p:GameVersion=1.7Licensed under the MIT License.