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 Mod features
An avoidance bias can be applied to any filth-generating tiles. Pawns will prefer to go around by using cleaner paths, even if it means it’ll take longer to reach their destination. While this may be less efficient, the reduction of cleaning tasks in the future makes up for it.
A road attraction bonus can be applied to any tiles that have the road tag.
[Optional]: The range of precise pathfinding can be adjusted, if your computer has performance to spare. The default range is around 40 tiles, and the slider adds to this.
[Optional]: Pawns may factor illumination when calculating their path.
FAQ
Q. Does this mod impact performance?
A. The original vanilla pathfinding code is still used. The only extra bit of code injected is a faction check, to prevent hostiles from respecting your settings, but this does not amount to anything as far as performance goes. This mod functions using variables that already existed and are calculated, but underutilized in vanilla.
Q. How does this mod compare to Perfect Pathfinding, and can they be used together?
A. Rimworld has multiple pathfinding systems, and Perfect Pathfnding forces pawns to always use the most precise one regardless of performance costs, but doesn’t have anything to do with filth avoidance or arbitrary road attraction. They can be used together, though this mod comes with a built-in range adjuster. It’s not quite the same thing but the difference is debatable.
Q. What floors have the “road tag”?
A. The road tag is a built in vanilla feature and is seen on flagstone, packed dirt, and broken asphalt. Modded floors may also use it. This feature was mainly added for packed dirt, since packed dirt paths are also filth generating. If you don’t have any of those, you can make due with only using the filth avoidance setting.
Compatibility notes
Compatible with other mods that edit pathing, such as Path Avoid and SoS2.