top | item 46686259

(no title)

v_CodeSentinal | 1 month ago

The biggest challenge I've seen with these 'infinite narration' layers on top of simulation games is context context window management. As a RimWorld colony grows, the state data (pawns, inventory, health, history) explodes exponentially. Are you summarizing the history logs to fit it into context, or are you just feeding a snapshot of the current frame state (JSON) to the LLM? I've found that 'narrative coherence' usually suffers if you don't keep a rolling buffer of recent major events.

discuss

order

walterfreedom|1 month ago

Current snapshot + semantic search related to the "recent event + messages since last trigger" in the database of memories. I prune unnecessary events (built chair, planted rice etc) as time goes on, and have a decay system that basically decreases the weight of old misc events. I also do not keep the messages in the save file directly and instead keep them in a seperate file in mod config, to not bloat the main save XML. Can it be polished more? Absolutely. but I had to publish this at some point after all. that being said, I am planning to actually focus on environmental awareness and better context as time goes on.