RimWorld

RimWorld

187 ratings
Pathfinding Avoidance
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
Updated
1.990 MB
20 Jul @ 1:46am
20 Sep @ 9:01am
11 Change Notes ( view )

Subscribe to download
Pathfinding Avoidance

In 1 collection by llunak
llunak's RimWorld mods
17 items
Description
Make pawns try to avoid certain areas, such as filth-generating terrain or configured doors.

Description
In vanilla game, pawns do not mind walking through a freezer, other pawn's bedroom, or cutting a corner of a paved path. This mod implements the following features:
  1. Filth avoidance - All terrain that generates filth will be perceived as more costly to walk and pawns will try to avoid them if a clean path is nearby.
  2. Door avoidance - Each door can have a priority set. Pawns will try to avoid using 'Side Door' doors, and will use 'Emergency Door' doors only if it is the only way or the alternative is very costly.
  3. Weather avoidance - If the current weather causes movement or mood penalty, pawns will try to avoid unroofed cells.
  4. Area avoidance - If allowed areas named (exactly) "Path Avoid Low", "Path Avoid Medium" or "Path Avoid High" exist, these areas are perceived as more costly to walk. These areas cannot be assigned to in the Schedule/Animals/Mechs tabs.
  5. Growing zone avoidance - Growing zones will be perceived as more costly to walk and pawns will try to avoid them.
  6. Room avoidance - Visiting friendly pawns (such as trade caravans) will try to avoid colony rooms; indoor rooms more than outdoor ones.
(Features 1. and 2. match the non-performance features 'clean feet' and 'doorpathing' from the Clean Pathfinding 2 mod. Feature 3. is similar to the functionality of the Path Avoid mod.)

These rules apply only to non-animal colonists or non-hostile visitors. Certain exceptions apply,
such as being drafted, in mental state, bleeding severely, doing emergency work, fighting, fleeing, etc.

Performance:
Pathfinding code in 1.6 is well-designed with regards to performance, with extensive caching and reusing of data, greatly reducing the need to update pathfinding data. This mod is designed to be cheap, with its performance impact being insignificant. Moreover changing settings to use 0 cost disables related parts of the mod. If you encounter a case when the performance impact is noticeable, please file a bugreport.

Supported mods:

Notes

You may want to subscribe to the low-traffic announcements pinned conversation. If you want to report a bug, please do so in the relevant pinned conversation.

GitHub: https://github.com/llunak/rimworld-pathfindingavoidance
Popular Discussions View All (2)
0
20 Jul @ 1:56am
PINNED: Bugreports
llunak
57 Comments
Aezurian 24 Nov @ 5:36pm 
Agree with Inquisitor, cranked settings 1,5x up and now it feels awesome.
FGK 22 Nov @ 1:24pm 
Does this mod helps with "Wander tuning"?
llunak  [author] 20 Nov @ 11:13am 
@ToastedAmphibian Are those modded or is it somehow vanilla?
ToastedAmphibian 20 Nov @ 10:31am 
"Weather Avoidance"- Does 'Clear skies and sunny' count as weather? If not, could it? Would love for my Agoraphobic Troglodytes and Vampires to not suffer mental breaks because they decided to cut across the courtyard at 3pm.
TAW | Shadow_Beetle 27 Oct @ 12:47pm 
is recomended to touch the settings to increase workspeed?
Inquisitor 14 Oct @ 11:27pm 
at first it seemed to make 0 difference. but cranking the costs in the settings makes it work as one would expect it to
Cat Princess 11 Oct @ 4:40am 
Is it compatible with long modlists with mods like raiders ai and common sense and such?
Good Old Jim 1 Oct @ 7:24am 
I jusr decided I needed it bad enough to risk and and it seems to take without a hitch and Im running over 150 mods so I feel like its a pretty safe bet you could add "Safe to add mid-save"
Good Old Jim 1 Oct @ 4:48am 
Is this safe to add mid save, I didnt realize this mod existed before I started and Im having a heck of a time keeping my regular pawns from trekking through my medieval fridge (like a normal fridge but harder to keep cold so I DO NOT need an army marching through it to shave .86 seconds off their travel time.
llunak  [author] 29 Sep @ 1:19am 
@Nick Pride Yes, everything applicable stacks.