RimWorld

RimWorld

Craft Output Sanitizer
6 Comments
Toxic Yui  [author] 25 Aug @ 10:33am 
Sometimes it’s fun, and other times you catch yourself thinking, “I can probably tweak this… and that… and those!” In my case, that's why I spend more time coding than playing during the week, and I save weekends for QoL updates and some actual gameplay (I found coding fun so I don't have a problem with that). But as you know, I even stopped playing just to fix that annoying bug :NZA2_Eagle:
VitaKaninen 25 Aug @ 9:37am 
Lol. It must be nice to have the expertise to just throw together your own mod to fix things whenever you want.
Toxic Yui  [author] 25 Aug @ 9:22am 
Totally get it—this is a classic late-game “Heisenbug.” It won’t show in a clean dev setup, then pops up after hours of play when a few mods interact just right. I tried the whole morning and afternoon to figure out what's causing that issue and said: You know what, let's do a mod to fix it instead, I'm tired. Lol :pigeonface:
VitaKaninen 25 Aug @ 9:13am 
Ok, I guess in all my thousands of hours in the game, I have never had this happen before.

I would have thought this is a bug in the other mods that the other authors should fix.
Toxic Yui  [author] 25 Aug @ 8:44am 
When is it needed? Only when a single-output clothing/weapon recipe (e.g., a shirt) spits out extras due to mod interactions. COS keeps 1 and removes/drops the rest.

Butcher table? Not affected. You’ll still get full meat/leather. It’s listed only because it’s a bill giver; COS targets weapons/apparel. You can also exclude it in Settings.

“Do until X”? Unchanged. COS doesn’t alter vanilla counting or floor checks; it just prevents unintended extra items from being created.

Why I made this mod: I play with many efficiency/speed/mastery mods (EG, Quality Bionics, Archotech Expanded, plus Vanilla Expanded Skills). In that setup, crafting “1” sometimes produced 2–4 items (e.g., pants duplicating). COS fixes that edge case. You can see the involved mods in my log screenshot—the lines starting with [COS].
VitaKaninen 25 Aug @ 3:00am 
Can you give an example for when this is needed? I have never tried to craft a shirt, and it gave me 10 of them. Also, you have the butcher table listed. Does that mean that if I butcher an animal I will get 1 meat, instead of 100?

Or is this supposed to be used when the recipe calls for "Make until", and it doesn't count the items sitting on the floor?