LLM Psychological Profiles, Dynamic Mood Thoughts & Probabilistic Reflections for RimWorld 1.6 & 1.7
English | 简体中文
Infuse colonists with persistent inner narratives, evolving agent identities, and organic mood reflections.
RimMind-Personality builds a persistent LLM-driven psychological profile and structured AgentIdentity (motivations, traits, core values) for every colonist. Combining probabilistic state-transition triggers, major life events, and staggered daily evaluations, colonists continuously interpret their colony life and materialize 1 to 3 dynamic mood Thoughts.
- Persistent Psychological Profiles & Agent Identity: Synthesizes an evolving AI narrative plus structured motivations, traits, and core values grounded in each colonist's vanilla traits, memories, and player customizations in the Bio tab.
- Probabilistic State-Transition & Event Triggers: Colonists reflect organically during meaningful moments:
- 🌅 Sunrise (06:00 Dawn): Morning reflection as daylight returns (default chance: 30%).
- 🌌 Skygazing / Solitude: Quiet philosophical or introspective musings (default chance: 40%).
- 🍷 Shared Recreation: Reflections sparked during leisure activities (default chance: 25%).
- 💔 Traumatic Mood Swings & Colony Events: Sharp mood shifts (default chance: 50%), severe injuries, skill milestones, major threat incidents, and companion bereavement.
- 3-Slot Dynamic Thought Injection & Shape Voting: Injects up to 3 independent
Thought_AIPersonalityentries (intensity-3..+3, mood offset-10..+10) and lets players reinforce, suppress, or edit personality traits via Bio tab Shape Voting.
Live Agent State Monitor & Dawn 06:00 Soliloquy: Tracking active colonist agents (Bongo, June, Rhod), one-click Force Think diagnostics, and introspective morning soliloquy traces alongside the active colony lodge.
flowchart TD
Env["Environmental Tick (06:00 Dawn / Skygaze / Break Risk)"] --> Transition["State Transition Filter"]
Transition --> Dice{"Probabilistic Roll & Cooldown Check"}
Dice -- Success --> CorePrompt["Context Build via RimMind-Core"]
Dice -- Suppressed --> Idle["Idle until Next Natural State"]
CorePrompt --> LLM["LLM Generates Thought / Monologue"]
LLM --> Inject["Inject ThoughtDef into Colonist Mind"]
Inject --> Advisor["Forward Thought to RimMind-Advisor"]
1. Harmony
2. Core (Vanilla RimWorld)
3. RimMind-Core
4. RimMind-Personality
Run unit tests directly:
dotnet test RimMind-Personality/Tests/RimMindPersonality.Tests.csproj -c ReleaseLicensed under the MIT License.