RimWorld

RimWorld

69 ratings
Cleaning Area Relaunched
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
Updated
349.978 KB
13 Oct @ 8:26pm
14 Oct @ 8:23am
3 Change Notes ( view )

Subscribe to download
Cleaning Area Relaunched

In 1 collection by Cerule
[1.6] Cerulean Essentials
102 items
Description
Cleaning Area Relaunched
Choose where your colonists clean and never have to watch them sweep the dirt again. Update of the original Cleaning Area by Hatti, upgraded for the Gravship era.
Odyssey not required, rocket broom sold separately.


Features
  • [New] Gravship Certified: Your cleaning area will smoothly travel with you on your ship and carry over into new maps (or multiple maps!)
  • [New]: Vanilla-like default Clean area, making setup faster for any new game or map (toggleable in settings)
  • [New]: Custom vanilla-like area designator tool for easier editing (toggleable in settings)
  • Same original functionality to select any area for cleaning. Easily switch selected area any time.
  • Designed to always be safe to add or remove from existing saved games

Performance-First
  • Runs just as fast as vanilla cleaning
  • Fully rewritten, updating the involved vanilla code from 1.3 -> 1.6 to fix bugs and benefit from base game improvements
  • Event-driven and built around a smart cache. No ticking, no loops, a cleaning mod should run clean!
  • Tested with Dub's Performance Analyzer and made with love, a dash of OCD, and no vibe-coding

Compatibility
  • Compatible with Common Sense, Achtung, and pretty much anything that doesn't change the way filth is detected. Should be the same as the original mod.
  • If using Dub's Bad Hygiene, avoid the DBH setting to prioritize cleaning indoors or it may break cleaning logic.
  • If using Prison Labor, don't set prisoners to clean. Or do, and tell me what happens (probably nothing). The original mod said it was incompatible but I haven't gotten around to testing it myself. If there's interest I can see if it's fixable.

Open Source
Almost no tech and nothing on the internet would exist if it weren't for mountains of open-source projects and millions of developers who learned from the work of others. I believe people deserve to be able to see the code they'd run in their game, and although this mod is almost entirely rewritten, it wouldn't exist without Hatti's original version. You can find the full source code on GitHub[github.com] under the same license.
24 Comments
GonDragon 20 hours ago 
This mod also seems to not be compatible with "Categorized Cleaning - Combo", as both mods modify the cleaning behaviour, and when there is dirt inside the home area but outside the cleaning area, pawns get stuck in a loop of going to start/cancel the cleaning task (Like it happens with the DBH setting). Just came here to mention that, I don't think it is easily solvable.
moth 27 Oct @ 5:18am 
thanks !! tired of my colonists spending hours cleaning the grass :shadowheartlaugh:
Cerule  [author] 23 Oct @ 3:58pm 
Ahh perfect glad it's solved, thanks for coming here to share the info! I'll update the description to warn about that setting and then see if it might be something I can add a patch for
ConZ 23 Oct @ 9:01am 
I had the very same issue. Turned off the indoor cleaning in Dubs Bad Hygiene and everything went back to normal. What a pleasent coincidence, Thanks guys.
:) 23 Oct @ 1:47am 
Okay you may have nailed it in one. Had the behaviour again with the pawn swapping back and forth between "illegal" filth. Turned off the Dubs Bad Hygiene indoor cleaning and they immediately stopped it to do something else. Seems like that was the issue, good catch!
:) 23 Oct @ 12:19am 
Changing the broom icon to Home more or less fixes the issue, but that fix is just reverting the pawns back to the default state of cleaning Home areas. Also improves performance too since I'm assuming it's not trying to force 12 pawns to endlessly clean the un-cleanable every tick. Changing it back after that just causes the issue to return again, pawns can target filth in Home areas but are prevented from cleaning it.

In trying to figure out a cause, I read somewhere that ReGrowth Core seems to futz with cleaning also, but it seems to be a similar effect to Permeable Terrain so not sure that's the reason. Haven't checked Dub's Bad Hygiene yet but I'll try to mess around with some mods and see if I can't pin it down.
Cerule  [author] 22 Oct @ 7:41pm 
Awesome thanks for sharing a log. Yeah it wouldn't be Common Sense and Permeable Terrain looks like just an edit of filth duration that should be no problem. In the log I only see VFED with a suspicious patch (I have no idea what Deserters has to do with cleaning) but it doesn't seem directly related. Are you maybe using the Dub's Bad Hygiene setting that mentions indoor cleaning? That could possibly be related.
And yeah if you even have the option to prioritize filth that isn't in your Clean area something is off. Have you tried using the little broom icon, like in the original mod, to change your selected area to Home or anything else? Changing your selection in that way triggers a FilthList rebuild where the game should fully re-check all filth compared to your area.
:) 22 Oct @ 3:32pm 
I can confirm that the issues you outlined are present in my game, I did add the mod in the middle of the save so maybe that had something to do with it too. Pawns still try to target filth in Home areas, they just can't clean it because it's not in the Clean zone, including if I manually force a pawn to clean a Home area outside a Clean zone. That will cause them to target that filth for about a tick until they choose to do something else as if they had finished the job.
:) 22 Oct @ 3:27pm 
Hopefully this is what you're asking for.

https://gist.github.com/HugsLibRecordKeeper/87d7bfc1c7dc4b82b81a3d0bb8228322

I have a hefty mod list, apologies. Only thing I can see from a cursory, non-expert glance is maybe Common Sense which should have been compatible, or Permeable Terrain.
Cerule  [author] 21 Oct @ 9:35pm 
Sounds like you may have a mod conflict, this mod completely replaces filth detection based on Home area. Basically if filth is not in your selected area it's not even registered as something in the list of possible things to clean. (One way to test is right clicking, if filth is not in your selected area you won't even see an option to "prioritize cleaning x") This all works through the normal vanilla logic, so an issue like that shouldn't really be possible unless there is another mod that adds filth or cleaning jobs and doesn't properly use vanilla methods. If you want to share a HugsLog I can take a look