RiMind
[b]This mod is a personal modification based on the respected juicy's RimTalk, which brought a new singularity to RimWorld. It was created by referencing some of RimTalk's core API calling and bubbler rendering logic. If you want to check out the original mod, [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3551203752&searchtext=rimtalk]search for RimTalk![/url][/b]
Permission to use the codebase was obtained from the original author [b]Juicy[/b].
I am optimizing the code for better performance, but this won't reduce the total ticks consumed by the "Bubble" mod itself.
I use Dubs Performance Analyzer for benchmarking. If the mod consumes more than 0.2ms of ticks, I consider it a memory leak.
※ I've barely had any time for gaming recently due to my personal businesses and projects. I plan to update the missing/incomplete parts when I have the leisure to play RimWorld again in the future.
[b]Mod Description[/b]
🌟 Key Features
🧠 Advanced Memory System
[b]Type-Based Memory Storage:[/b] Separately manages memories of what a pawn said, heard, witnessed, and experienced in combat or other events.
[b]Smart Memory Filtering:[/b] Selects relevant memories for conversation topics based on freshness, importance, and relationships.
[b]Long-Term Memory:[/b] Pawns remember past conversations and events, leading to more consistent dialogue.
[b]Memory Viewer:[/b] A UI that allows you to view and manage each pawn's memories in real-time.
🤖 Automated Google AI Model Cycling (Using code from 'ProjectE' of the RimWorld Gallery)
[b]Multi-Model Support:[/b] Automatically switches between various AI models like Gemini-2.5-flash, Gemini-2.0-flash, and Gemma-3.
[b]Quota Optimization:[/b] When one model's quota is reached, it automatically switches to another to maximize API usage.
[b]Single API Key:[/b] Access multiple AI models with just one Google API key.
[b]Intelligent Fallback:[/b] Automatically switches to an available model when the current one's quota is exceeded.
🎯 Dynamic Topic Generation System
[b]Event-Based Topics:[/b] Map events, combat, injuries, and skill improvements automatically generate new conversation topics.
[b]Emotion Integration:[/b] Mood changes provide natural opportunities for dialogue.
[b]Job Change Detection:[/b] New work assignments can also be a starting point for conversations.
[b]Line-of-Sight Witnessing:[/b] Colonists use what they directly observe as conversation topics, with the ability to combine multiple objects to generate dialogue.
💬 Advanced Dialogue System
[b]Automatic Urge to Speak:[/b] Pawns' desire to speak is adjusted based on their health, recent conversations, observations, and combat status.
[b]Relationship-Based Responses:[/b] Dialogue patterns are adjusted according to relationships between pawns.
[b]Varied Utterances:[/b] Pawns speak differently depending on the situation, whether it's combat, hunting, or daily work.
[b]Consciousness Adaptation:[/b] Dialogue reflects the pawn's consciousness level, influenced by injuries or drugs.
[b]Persona Editor:[/b] Customize each pawn's speaking style and personality individually.
[b]AI Persona Generation:[/b] The mod can automatically generate a suitable personality based on a pawn's stats, background, and traits.
⚡ Smart Response System
[b]Instantaneous Reactions:[/b] Pawns can respond to another pawn's speech in real-time.
[b]Delayed Responses:[/b] A natural system where pawns might respond later if they are busy.
[b]Response Expectation:[/b] Pawns will accumulate disappointment if their questions are left unanswered.
[b]Conversation Momentum:[/b] Implements a back-and-forth "tiki-taka" dynamic in conversations.
Save Stability Patch
You can now remove the mod mid-playthrough and load your save file. (9/19 Patch)
📖 How to Use the Mod
[b]1. Get a Google Account:[/b] You'll need a Google account.
[b][url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Faistudio.google.com%2Fapp%2Fapikey]2. Get a Free API Key:[/url][aistudio.google.com][/b]
[list]
[*] Click [b]'Get an API key'[/b] to generate a key (top right corner).
[*] Copy the generated key.
[/list]
[b]3. Paste the API Key:[/b] In the mod settings, paste the copied key into the API key field.
⚠️ Experimental Warning
This mod is filled with experimental concepts and may exhibit unexpected behaviors depending on how the AI models operate. While these unpredictable interactions might bring greater enjoyment, they could also cause inconvenience.
This is a personal hobby project, so I can't guarantee continuous feedback and improvements.
I haven't been able to check compatibility with a wide range of mods yet.
There has been one report of a conflict with the Monolyn race mod.
Some API keys occasionally experience a 503 error. This is a known issue mentioned by Google on September 3rd.
A weighting system has been implemented for random and unpredictable utterances. Pawns can have various reactions in the same situation.
📢 Pointless Announcement
[b]Please do not use arbitrary [u]special characters[/u] in your prompts. This often causes the AI to return an error.[/b]
While I have no objection to providing various LLM environments, ensuring the core functionality works properly must always be the priority. I'll be focusing more on basic tasks like bug fixes, code optimization through refactoring (it's a real spaghetti mess right now), and improving conversation quality.
Frequently Asked Questions
[b]Q: Can I use it without any limits?[/b]
A: The goal of this mod is not to provide unlimited API usage. Once you've exhausted your request limit, each API will have a cooldown period. However, if you have multiple API keys, you can get usage that is effectively close to unlimited.
Recent Patches
[b]2025-09-23[/b]
I've added support for the SiliconFlow API. During this process, I made a small change to the Mode Settings menu. Now, you should select "Custom" from the first dropdown, and then choose a service like OpenRouter, Mistral, or SiliconFlow from the second dropdown.
Also, I've adjusted some values like Temperature and TopK to address the 429 errors that have been reoccurring with Gemini. This issue is not fully resolved yet.
[b]2025-09-20[/b]
You can now use OpenRouter normally. Please enter your API key in the first field and the model name in the second field.
I've fixed the issue where models other than Gemini couldn't generate personas.
[b]2025-09-19[/b]
I have fixed the issue where the log menu would break when adding the mod mid-playthrough and then removing it after saving.