RimWorld Mods

Clean Pathfinding 2 Mod

Authors of the Clean Pathfinding 2 Mod: OwlChemist, Ferris

What’s the point of building roads and paths around the map if your pawns are just going to dirty their feet by not using them? The Clean Pathfinding Mod applies a modifier to the perceived pathing costs of any dirty tiles to help keep things clean.

Clean Pathfinding 2 Mod features

  • Net gain performance: With all the featured combined, the number of calculations needed to chart out a path can sometimes be as low as 1/4th compared to vanilla. The screenshots in the gallery offer a demonstration.
  • Clean feet: Pawns will have a greater attraction to sticking to walking along paths and cleaner surfaces, even if it may extend the length of their trip by a small yet reasonable amount. Various rules can override this behavior such as emergency conditions, or factoring light.
  • Doorpathing: Allows you to designate some doors as having a higher perceived pathing cost than others. This can help prevent pawns from walking through sensitive rooms such as bedrooms or freezers, or using the non-main entrance.
  • Region pathing: Pawns can chart out paths across the map far more efficiently and smarter than vanilla pathing.
  • Optimized colliders: An optional patch to optimize vanilla’s pawn collider code (pawns bumping into other pawns).
  • Wander tuning: Adjust how often wandering pawns (including animals and wildlife) wander from spot to spot, allowing performance starved users to tone down their AI costs.
  • Exit pathing: An optional feature which may be used on unusual, custom-made maps. If pawns are stuck and cannot find the map exit, this tuning can make their search more persistent.

FAQ

Q. How does this mod compare to Perfect Pathfinding, and can they be used together?
A. Perfect Pathfinding focuses primarily on the heuristic tuning side of pathfinding. You can use them together if you wish to overwrite this mod’s tuning, though you can also just emulate the same effect by maxing out the heuristic tuning slider in the mod options.

Q. What is considered a road, for the sake of the road attraction rules?
A. Any terrain with the “CleanPath” tag, such as flagstone, packed dirt, broken asphalt, fine floors, paved tiles and concrete.

Q. I’m running into serious issues like crashing or standing pawns, and I think this mod is to blame?
A. This has been an ongoing study for awhile now and to the best of my knowledge, what is happening is that you have another mod that incorporates its own custom pathfinding that is handled off the main vanilla code branch. And this code is not doing a sanity check to handle cost reversal. You can work around this issue by reducing the “road attraction” slider to either 2 or less.

Q. What about raiders? Animals? Mechs? Allies?
A. Hostiles and animals ignore any special rules set out by this mod and work as normal. It just impacts your own colonists and mechs, and non-hostile guests of a greater than animal intelligence. Drafted pawns are also ignored.

Compatibility notes

Compatible with other mods that edit pathing, such as Path Avoid and SoS2.

Download

Version 1.6
Clean Pathfinding 2 Mod is not updated to RimWorld 1.6

Dependencies

Older versions:

Hm, you're using an ad blocker...

We get it, ads are not what you’re here for. But ads help us keep the lights on. We deliver up-to-date mods, guides and plenty of RimWorld content at no cost to you. So, please, add us to your ad blocker’s whitelist to continue browsing the RimWorld Base. 

Please whitelist us on your ad blocker and

Get a lifetime ad-free experience with the purchase of any RimWorld merchandise from our store. 

Still seeing this message after making a purchase? Click here to fix it

Get your RimWorld T-Shirt!

Dress in RimWorld style. For you or your loved ones!