RimWorld

RimWorld

115 ratings
Categorized Cleaning - Combo
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
Updated
335.548 KB
10 Jul @ 3:34am
12 Jul @ 6:16am
2 Change Notes ( view )

Subscribe to download
Categorized Cleaning - Combo

Description
Splits the cleaning filth work into three, in descending priority order:
  • Cleaning sterile rooms (kitchens, hospital and laboratories)
  • Cleaning indoors
  • Cleaning outdoors and in barns

There are already plenty of cleaning mods.
While there are certainly alternatives (for example: Cleaning Priority, Cleaning Area), they use player-configured areas. I wanted a more automated solution.

I want different rooms to be considered sterile.
Which rooms are considered sterile and which are considered outdoor rooms can be configured in settings.

Why two versions? What's the difference?
While it'd be possible to make the difference between the versions configurable in the settings insted, it'd require an approach more prone to causing issue with mod interoperability.
The combo version:
  • Splits the cleaning job into three, but puts them all under the same work type
  • Plug 'n play
  • Colonists will automatically prioritize cleaning by location
  • Will work with any other mods
The split version:
  • Splits the cleaning job into three, and puts them under separate work types
  • Requires configuring work priorities
  • Player can prioritize (or disallow) cleaning specific locations
  • May restrict modded cleaning robots to only cleaning outdoors depending on implementation

What's with the colorful squares in that screenshot?
It's a debug drawing mode that displays which category filth is sorted into. You can enable it with a dev command!

Non-steam version and old releases can be found here.
https://github.com/PeteTimesSix/CategorizedCleaning

If you want to express gratitude, support me or attempt to convert money into motivation, you can do so here: ko-fi.com/petetimessix

I've set up a Discord server[discord.gg], which is the preferred medium for discussion and bug reports.
21 Comments
ましろ 23 Aug @ 11:41pm 
Exception while rebuilding dirty regions: System.NullReferenceException: Object reference not set to an instance of an object [Ref 2109475E] at PeteTimesSix.CategorizedCleaning.HarmonyPatches.Room_Notify_RoomShapeChanged_Patches.Room_Notify_RoomShapeChanged_Prefix (Verse.Room __instance) [0x00000] in C:\RimworldProjects\CategorizedCleaning\CategorizedCleaningCombo\Source\HarmonyPatches\Room_Patches.cs:22 at Verse.Room.Notify_RoomShapeChanged () [0x00000] in <cb53cd4422904947932d33f561ad8d15>:0 - PREFIX PeteTimesSix.CategorizedCleaning: Void PeteTimesSix.CategorizedCleaning.HarmonyPatches.Room_Notify_RoomShapeChanged_Patches:Room_Notify_RoomShapeChanged_Prefix(Room __instance)
PhoenixLabella 24 Jul @ 9:26am 
Yep, that was the problem. It is working fine now.
Thx a lot. :greedyHeart:
PhoenixLabella 17 Jul @ 9:37pm 
I will try, and thanks for the heads-up. :greedyHeart:
PeteTimesSix  [author] 16 Jul @ 2:45am 
@PhoenixLabella word on the discord is there's broken versions of Pick Up and Haul about that cause issues like that. Try removing it if you have it, see if that helps?
PhoenixLabella 15 Jul @ 1:29pm 
I ran into a problem where units stay idle while there is dirt and don't perform any other tasks. When I set the Clean priority to 1, they do the cleaning and other tasks; when I lower the priority, they go back to being idle as long as there's dirt.
My mod list is a bit long (~200), so I wouldn't know which one is causing the conflict, but unfortunately I had to remove this mod from the list.
Naturtok 15 Jul @ 1:18am 
Makes sense! Just wanted to make sure I wasn't missing anything since they seemed similar. Def would be interested in seeing which process ends up being more performant. Either way, I like the way yours is handled more from a ux side of things
PeteTimesSix  [author] 13 Jul @ 12:50am 
@Naturtok
I guess I did miss some cleaning mods when checking the workshop after all :]
Looking at the source, it patches GetPriority on the vanilla CleanFilth WorkGiver, whereas my mod works by pre-filtering filth into categories and adding two new work givers.
The end result ends up being pretty similar, though Cleanie seems to be more configurable. Someone'd have to profile the two mods to know for sure which has a bigger performance impact.
Naturtok 12 Jul @ 11:21pm 
Is there any mechanical difference between this and Cleanie? Cleanie seems to do the same thing, but w/ cleanliness threshold sliders for each room instead of categories, but I have zero clue how mods work under the hood
Hightech 12 Jul @ 8:56pm 
will give it a try :steamthumbsup:
If you have an issue of endless looping of cleaning > butchering, it's an issue with Common Sense + Categorized Cleaning. Both have been patched it looks like, just unsubscribe and resubscribe to the mods to redownload. Can confirm it works afterwards.

(Also shared by Author below, posting that I confirmed it works after updating both)