RimWorld

RimWorld

56 ratings
RimAI Framework
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
1.339 MB
Jul 19 @ 12:05am
Jul 21 @ 1:23pm
5 Change Notes ( view )

Subscribe to download
RimAI Framework

Description
🤖 **RimAI Framework** - AI-Powered RimWorld Experience

🔧 **Core Framework Module**
RimAI Framework is the foundational core of the entire RimAI ecosystem, bringing revolutionary artificial intelligence experiences to RimWorld. This framework handles all communication with Large Language Models (LLMs) and provides comprehensive API interfaces for other content modules.

⚡ **Key Features**
• 🌐 Seamless integration with multiple Large Language Models
• 🔌 Unified API interface for other RimAI modules
• ⚙️ Highly optimized performance and stability
• 🛡️ Secure and reliable AI communication protocols
• 🔄 Asynchronous processing and real-time response support
• 🏠 **Full support for local OpenAI-compatible APIs** (Ollama, vLLM, etc.)

🔑 **IMPORTANT: Setup Required Before Use**

⚠️ **You MUST configure the mod settings before use!**

**Step-by-Step Setup Guide:**
1. **Enable the mod** and restart RimWorld
2. **Go to Settings → Mod Settings → RimAI Framework**
3. **Fill in the following fields:**

� **API Key** (Required for most services):
• OpenAI: Get from https://platform.openai.com/api-keys
• Local Ollama, vLLM: "local-host-key" or Any text you like, DO NOT Leave empty.
• Copy and paste your key exactly as provided

� **Endpoint URL** (Required):
• OpenAI users: https://api.openai.com/v1
(Deepseek, Siliconflow settings are similar)
• Local Ollama users: http://localhost:11434/v1
• For other services: Check your provider's documentation

🤖 **Model Name** (Required):
• OpenAI: `gpt-4o-mini`, `gpt-4o`, `gpt-3.5-turbo`
• Ollama: `llama3.2:3b`, `qwen2.5:7b`, `mistral:7b` (your installed model)
• Enter the exact model name as specified by your provider

🔄 **Enable Streaming** (Optional):
• ✅ Check this box for real-time responses (recommended)
• ❌ Uncheck for single complete responses

4. **Test the connection** using the test button in settings
5. **Save settings** and you're ready to go!

💡 **Quick Start Recommendations:**
• **Free option**: Install Ollama locally with `llama3.2:3b` model
• **Paid option**: OpenAI GPT-4o-mini (very affordable, ~$0.15 per 1M tokens)
• **Budget option**: Use Deepseek or Siliconflow for cost-effective solutions

💰 **Important Cost Notice**
⚠️ **Token costs are paid directly to your AI service provider, NOT to the mod author!**
• For cloud services (OpenAI, Deepseek, etc.): You pay per token usage
• For local deployments (Ollama, vLLM, etc.): No additional costs after setup
• The mod author receives no payment from your API usage

🏠 **Local AI Support**
✅ **Fully supports local OpenAI-compatible APIs:**
• Ollama (recommended for local deployment)
• vLLM
• Text-generation-webui
• LocalAI
• Any OpenAI-compatible endpoint

📋 **Important Notice**
⚠️ This framework itself does not add any gameplay content or features, but is a required dependency for all other RimAI modules. Please ensure you install this framework before installing any RimAI content modules.

🔗 **RimAI Ecosystem**
This framework serves as the cornerstone for the RimAI module series, supporting:
• Intelligent dialogue systems
• AI-driven story generation
• Dynamic event responses
• Personalized gaming experiences
• More modules in continuous development...

🎯 **Supported Versions**
✅ RimWorld 1.5
✅ RimWorld 1.6

🛡️ **Open Source & Security**
This project is completely open source and safe to use. You can review the full source code, contribute, and report issues on our GitHub repository: github.com/oidahdsah0/Rimworld_AI_Framework

💡 **Installation Guide**
1. Install this framework module first
2. Configure your AI API settings in mod options
3. Install the RimAI feature modules you need
4. Enjoy AI-enhanced gameplay!

👨‍💻 **Author**: Kilokio
📦 **Package ID**: kilokio.RimAI.Framework

🔥 If you enjoy this project, please give it a thumbs👍 up and follow➕ for updates on more RimAI modules!

⭐ **Join the Community**: Report bugs, suggest features, or contribute code on GitHub!
8 Comments
тетеря, блин Jul 30 @ 7:00am 
while navigatiing mod menu in the main menu:

https://gist.github.com/HugsLibRecordKeeper/b246824cfda8a1727b6820ffca6fc400

Exception filling window for LudeonTK.EditWindow_Log: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
[Ref 4A33AD84]
тетеря, блин Jul 29 @ 3:48pm 
what a potential. finally the reason to have good GPU to play RimWorld. AI-Driven story generation is what I like the most. Does it already work? I really wish something like that could work with something like Custom Quest Framework to generate long and logical chains of quests.
Nekko Jul 26 @ 4:33am 
I'm feeling myself really dumb, but i can't connect my local LLM model with API. I'm doing everything like instructed, and RimAI just keeps saying to check my api key or endpoint, which i did!
runningInThe20s Jul 21 @ 2:10pm 
if you are getting angry about other people playing around with llms in free game mods it might be time for self reflection.
pklemming Jul 19 @ 3:03am 
It is nice you support ollama. Will try it later. Responses, even local can be slow, but it is improving with time.
Vexacuz Jul 19 @ 1:49am 
Its a framework mod guys. It says right in the middle.
tide{S}haper industries Jul 19 @ 1:33am 
So... you don't know what it is, even after the AI tried to explain it like five times?
SOMETHING must have failed then, obviously. :D
Wonder how long it takes for the 'AI' to realize that ** also doesn't make bold text on Steam WS pages. ;)
SanguinarcAQL Jul 19 @ 12:59am 
Very interesting, can't wait to see what will be done with this