Ludeon Forums

RimWorld => Releases => Mods => Outdated => Topic started by: Vendan on January 06, 2017, 08:40:32 AM

Title: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: Vendan on January 06, 2017, 08:40:32 AM
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 Team
Vendan

Download
https://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
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: 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? 
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: Vendan on January 06, 2017, 09:48:36 AM
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.
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: 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.
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: Rambus200 on January 06, 2017, 02:06:18 PM
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
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: Zhentar on January 06, 2017, 02:43:41 PM
In Manage Areas, click the 'Invert' button.
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: Rambus200 on January 06, 2017, 03:24:16 PM
Oh wow thanks, feel like an idiot.
Title: Re: [A16] PathAvoid (v1.0) Nudge your colonist onto new paths!
Post by: Vendan on January 06, 2017, 03:48:48 PM
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.
Title: Re: [A16] PathAvoid (v1.1) Nudge your colonist onto new paths!
Post by: SteelRev on January 06, 2017, 09:41:59 PM
Also,  I forgot to ask.  Is it compatable with better pathfinding?
Title: Re: [A16] PathAvoid (v1.1) Nudge your colonist onto new paths!
Post by: Zhentar on January 06, 2017, 09:44:52 PM
100% Better Pathfinding compatible.
Title: Re: [A16] PathAvoid (v1.1) Nudge your colonist onto new paths!
Post by: Vendan on January 07, 2017, 03:08:49 PM
Update v1.2: Adding textures for the various path level designators
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: asquirrel on January 08, 2017, 02:32:21 PM
Thanks man! :)
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: lost_RD on January 08, 2017, 04:35:42 PM
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.
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: Vendan on January 08, 2017, 07:32:56 PM
Yeah... Avid DF player trying to port some QoL stuff from DF over to here :)
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: sanya02 on January 09, 2017, 11:00:28 PM
Can do so that the colonists did not go into the wrong room?
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: hwfanatic on January 29, 2017, 04:00:04 PM
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.  :)
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: DNK on April 16, 2017, 10:27:55 AM
Website is down. Anyone have another link?
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: SpaceDorf on April 16, 2017, 10:38:02 AM
Here ya go .. v1.2



[attachment deleted by admin due to age]
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: faltonico on April 16, 2017, 04:34:54 PM
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.
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: DNK on April 16, 2017, 08:59:53 PM
Quote from: SpaceDorf on April 16, 2017, 10:38:02 AM
Here ya go .. v1.2
Thanks :)
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: sheidula on May 01, 2017, 08:56:57 AM
Hey, is the website down again? Thanks
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: 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!
Title: Re: [A16] PathAvoid (v1.2) Nudge your colonist onto new paths!
Post by: Himkey on June 01, 2017, 10:31:39 PM
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!