RimWorld

RimWorld

121 ratings
RimSaga
5
3
6
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5
File Size
Posted
Updated
7.838 MB
1 Jun, 2024 @ 1:12am
15 Jun, 2024 @ 11:29pm
2 Change Notes ( view )

Subscribe to download
RimSaga

Description
RimSaga uses free (in certain regions) AI to write the story of your colony like a novel while you play

For RimSaga to work you must go to mod options and enter a Google Gemini API key: https://aistudio.google.com/app/apikey

Please submit bug reports and feature requests in GitHub issues[github.com]. Feel free to use the Steam workshop page for questions and general discussion.

Features
• Once the mod is enabled and your API key is set, notable events in the life of your colony will automatically generate new dated entries in your ongoing saga.

• You are able to edit or delete the text that's generated as you like. Your edited text will even be taken into account as new entries are generated.

• If an event doesn't generate an entry or you just want to invent one for your story (maybe a colonist lets their sanguophage friend have a little nibble one night just for funzies?), you can write a brief description and a custom entry will be generated that takes the full state of your colony into account.

• International support: your story will be written in the language you've set for the game

• Although for best results I recommend using this mod from the start of a new game, you can enable it in the middle of an existing save and it will attempt to write an appropriate opening to the saga.

• Your saga can be exported as a text file at any point.

FAQ
How does it work?

A structured prompt including lots of strategically compiled and formatted game data is sent to an LLM API.

Why does it use Google Gemini instead of OpenAI's GPT, Anthropic's Claude, locally running models, etc?

I've tested extensively with all of the models from all of these services. Gemini currently produces the best creative writing for this case (really!), and even better it's the only one that offers free API access for many people. This seems like the best catch-all solution for now.

Enabling different models means accounting for their different API schemas, context windows, prompting quirks, etc. It would also lead to a steady stream of technical support and pricing questions/complaints for each one. There would be a lot of unhappy users that are getting poor results from this mod because they're using a model of their choice that I know does not work well for this use case.

My current plan is to continue using a Google Gemini API key as the default, and to add an advanced mode where a user can enter a custom URL to generate text using any API that conforms to the OpenAI schema. This would cover many use cases for people who want to run their own model locally.

If models from OpenAI and Anthropic catch up to Gemini in both performance and pricing, I will definitely add those options as well.

Google doesn't offer the free tier for API access in my region

I'm afraid that's a Google issue. You can of course still use this mod if you're willing to pay for the API usage.

I get intermittent "Gemini request" errors

I've implemented some basic retry logic to mitigate this, but currently Gemini's API can be spotty every now and then. That's the tradeoff for a free service. If there's an error and a crucial event isn't automatically written about, wait a minute and use the "Generate custom entry" button to manually try again.

It gets stuck in a "generating" state

This is a very rare error that I haven't been able to pin down yet. In the meantime just save your game and restart RimWorld and everything will work as normal.

About
Like many of you I love the "story generator" aspect of this game, but I often lose track of the narrative details available throughout the UI when I begin to focus on gameplay. I was a fan of the original RimStory mod, which kept a simple running log of colony events.

Now with AI, these events can just as easily be woven together as prose. It's by no means perfect, but it's pretty magical when it gives just the right depth to what you see happening on the screen. I once had a colonist that was laying down wood flooring say something like "You know it's not how straight you lay the boards, but how gracefully you walk on them."

I recommend watching for new entries to be added, then reading over them and editing them up as you like. This will help the AI write better entries moving forward, and leave you in the end with a story that makes more sense.

The state of the technology and service providers are very much in flux, so I'll do my best to keep up as things develop.
112 Comments
blue 10 Sep @ 8:22am 
1.6 plz
тетеря, блин 29 Jul @ 11:31am 
1.6 🙏
SIGMA BOI 28 Jul @ 5:08am 
1.6 please
monsterfurby 12 Jul @ 6:09am 
I love the idea of this mod, but I'm among those people who'd rather use Gemini through OpenRouter than through the Google API. Since that is on the roadmap, I might check back one OpenAI-style models are available.
Bane 11 Jul @ 6:26pm 
Any update on this?
BootsOfTango 30 Jun @ 2:32pm 
My saga stopped working says API limit was hit,

does this genmini API token (I think?) replenishes daily?
Viera903 9 May @ 9:34am 
An option to change when it write would be good, its pretty anoying that every time that an enemy dies it start reproting and I need to delete it or just read to see if it makes sense
Milk 17 Apr @ 12:12am 
small 'interaction' with Rim War. It seems to produce an update for every single faction assault update... which are meant to be hidden messages, and really shouldn't be gumming up the news of our colony, as you don't even see them unless you specifically look for them in messages tab. They extremely plentiful, with multiple notifications of faction assaults happening every day all the time, so an update to add compatibility with rim war specifically, as to ignore those messages, would be nice.
BurtCokain 16 Apr @ 8:14pm 
Thanks for that warning in the beginning, it saved me a bit of trouble.
SkinnierSteve 15 Apr @ 3:55am 
I figured out the colonist it wrote about that seemed to not exist, was actually in a cryptosleep chamber somewhere on the map. However it still gives too much repetitive info, and even after some colonists got wiped out, the AI still mention them in reports. When they have guns, the AI writes that they sharpened their knives, but sometimes it writes they sharpened their guns. The mod is currently too annoying for me to use, since it gives report after report, and they all seem to show repetitive useless info, until eventually the AI reaches it's daily limit. I'd rather use an AI that gives less repetitive flavour text, and instead write the story accurately to how it happened in the game, so that each addition to the story feels unique and meaningful, so that it can actually be interesting or helpful to read.