Kenshi
Not enough ratings
Dimencia's Pathfinding Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
126.544 KB
2 Mar @ 1:57pm
2 Mar @ 6:45pm
2 Change Notes ( view )

Subscribe to download
Dimencia's Pathfinding Fix

In 1 collection by D.Mentia
Dimencia's Mods
6 items
Description
Tries to...
  • Reduce backtracking
  • Avoid jumping into pools of water or acid
  • Avoid getting stuck and going Aimless
  • Avoid splitting up the party when moving them together
  • Stick to roads slightly more

Tweaked to work best with fast units, such as people with scout legs. I haven't tested it thoroughly with slower units yet, but it may still help in at least some of those respects

If this doesn't work well for you, you can always try SCAR's Pathfinding Fix

Also, huge thanks to SCAR for providing that mod, which taught me what we can tweak about the pathfinding


IMPORTANT
After installing the mod, you need to press Ctrl+Shift+F11 to reload the pathfinding
If you don't do this, it won't help
It also might be a good idea to Shift+F12 and Fix Stuff (do not click 'Save Mod', though)


Why:
SCAR's pathfinding fix is extremely refined and well tested, but for some reason, when I use it or the vanilla pathfinding, my party still tends to get stuck and go Aimless, or backtrack constantly, or dive into pools of acid. This is especially an issue when I have scout legs on people

Using SCAR's mod as a baseline, I've tweaked some variables that, from my testing, seem to improve these issues for me

What:
Variable
Default
SCAR
Dimencia
Effect
Pathfind Acceleration
20
24
30
Less backtracking
Footprint Radius
3-4
3-4
2.5
Get stuck less, by being able to go through smaller paths
Water Avoidance
4
9
30
Avoid water/acid
Higher Acceleration seems to need higher water avoidance
Road Preference
0.3
?
0.36
Stick to roads when they go the right direction
Carefully tuned to avoid sticking to roads when they don't

As for splitting the party, that only occurs because many races (like Garru) have their own unique pathfinding values. All of these same values have been applied to all relevant races, so the party should no longer split

When:
Applies to all races that don't specifically have a preference for going into water (except it does apply to Crabs, because they're commonly used) - so mostly, everything except Raptors, Fishmen, Turtles, and Leviathans

Does not apply to any modded races. If you want make it work for a mod you've created that adds new races, just set them with the pathfinding values listed below - or contact me and I can make a patch, so you don't have to worry about what happens if I adjust these values


Extra notes:
  • Don't forget to Ctrl+Shift+F11
  • Bonus/Side Effect: All animals affected by the mod should now be able to enter buildings
  • The defaults provided above are defaults for a Scorchlander
  • Import is not required
4 Comments
SCARaw 20 Aug @ 3:03am 
Hey, awesome to see more people taking a war against kenshi pathfinding tyranny
keep up the good fight :)
Wirlocke 29 Jul @ 7:42pm 
*sigh* it went back into the automated content check system.
It'll be up eventually I swear.
Wirlocke 29 Jul @ 7:40pm 
With the permission of Anrhaa, creator of the MEGA Pathfinding Collection Pack, I have uploaded a modified version meant for this mod. Should apply the same pathfinding changes to all modded races covered by the Mega patch, which is pretty much all of them.
gtm.steamproxy.vip/sharedfiles/filedetails/?id=3537574585
Dad Milker 26 Mar @ 8:32am 
I was having issues even with the more popular mod this is based on, but they went away when I switched to this. Thanks!