PathAvoid
(https://andyleap.net/PathAvoid/Preview.png)
Description:Path Avoid allows you to "nudge" the pathfinding system for your pawns, to make them prefer and avoid different areas. Use it to make your pawns follow pathways in your base, or avoid passing through a freezer to get to the other side! Avoidance won't prevent pawns from pathing, it'll just make them take an alternate path...
(https://andyleap.net/PathAvoid/Avoidance.PNG)
(https://andyleap.net/PathAvoid/Prefer.PNG)
Author/Mod TeamVendan
Downloadhttps://andyleap.net/PathAvoid/PathAvoid.zip (https://andyleap.net/PathAvoid/PathAvoid.zip)
How to install:- Unzip the contents and place them in your RimWorld/Mods folder.
- Activate the mod in the mod menu in the game.
Changelog
- v1.1: Fixing strong avoids marking doors as non-traversable
- v1.2: Adding textures for the various path level designators
Does it effect jobs? Let's say you place avoidance zone over crops. Will the still get harvested and planted?
Quote from: SteelRev on January 06, 2017, 09:42:00 AM
Does it effect jobs? Let's say you place avoidance zone over crops. Will the still get harvested and planted?
It just affects pathing. They'll most likely choose a path that avoids as many of the crop tiles as possible, but they will still path to the crops. And it does not affect priority of 1 job over another, so they won't harvest an avoided field last or anything.
I can't test right now, but designating doors as 'Strong' may affect job assignment and/or other reachability checks (if you test this, you should save and reload after designating the door to make sure the reachability cache gets flushed).
Performance will likely be significantly affected when pawns have to path into/through avoid areas, though if it's not happening frequently it probably won't be noticeable. Better Pathfinding handles it much more efficiently than the Vanilla pathfinder.
Would it possible to apply this to tamed animals, maybe an additional feature? So they don't eat your food or enter a certain building for example :). Instead of highlighting all the area they 'are' allowed, which if you want them to roam the whole map except one building or area, is a pain in the butt. Or maybe i am missing something? Thanks
In Manage Areas, click the 'Invert' button.
Oh wow thanks, feel like an idiot.
Quote from: Zhentar on January 06, 2017, 01:17:26 PM
I can't test right now, but designating doors as 'Strong' may affect job assignment and/or other reachability checks (if you test this, you should save and reload after designating the door to make sure the reachability cache gets flushed).
Performance will likely be significantly affected when pawns have to path into/through avoid areas, though if it's not happening frequently it probably won't be noticeable. Better Pathfinding handles it much more efficiently than the Vanilla pathfinder.
Yes, it looks like an avoid value of 255 (which is current "Strong") can mark a door as non-traversable. Relatively easy to fix, I've just pushed a tweak to both steam and the direct download. It'll automatically adjust any existing "Strong" avoids as well.
Also, I forgot to ask. Is it compatable with better pathfinding?
100% Better Pathfinding compatible.
Update v1.2: Adding textures for the various path level designators
Thanks man! :)
Dwarf Fortress player? :D
This is a mod on my list of to-make, I'm glad you got to it before me though! I can't wait to try it out.
Yeah... Avid DF player trying to port some QoL stuff from DF over to here :)
Can do so that the colonists did not go into the wrong room?
Many thanks for this mod.
May I suggest that you move the "Pathing" button to the last position? The fact that all the buttons are reordered is a real pain. :)
Website is down. Anyone have another link?
Here ya go .. v1.2
[attachment deleted by admin due to age]
Hello!
I just noticed that, when pawns move really really fast and the floor is also very fast, they stay "standing" when trying to do work at a workbench on top of said fast floor set with the "preferred" path. Removing the preference made it work again normally.
Also, nothing showed in the log when the pawn stayed still.
Hey, is the website down again? Thanks
Quote from: hwfanatic on January 29, 2017, 04:00:04 PM
May I suggest that you move the "Pathing" button to the last position? The fact that all the buttons are reordered is a real pain. :)
yes please!
Quote from: Himkey on June 01, 2017, 09:17:20 PM
Quote from: hwfanatic on January 29, 2017, 04:00:04 PM
May I suggest that you move the "Pathing" button to the last position? The fact that all the buttons are reordered is a real pain. :)
yes please!
After doing a few hours of research i finally
found out how to make pemmican managed to do it, go to your RimWorld folder/Mods/PathAvoid/Defs/PathDesignatorCategory.xml (you can just open it with notepad) and change <order>955</order> into <order>001</order>.
tsk, silly mod developer!