_Q_ Posted June 4, 2014 Share Posted June 4, 2014 Is there a way to improve pathfinding with mods? Creatures brain edits or something of the sort, cause now pig followers and chester get stuck on walls and even stones/trees when there is many of them in the area. Link to comment https://forums.kleientertainment.com/forums/topic/37132-improve-pathfinding/ Share on other sites More sharing options...
Heavenfall Posted June 4, 2014 Share Posted June 4, 2014 (edited) This has been discussed before, but I can't find the thread now. There's nothing stopping you from putting your own pathfinder on top of the existing one, which I believe is hardcoded. For example, with followers the LUA scripts basically say "go to Y" and the .exe calculates a decent path. You could put your own code in there, so that you say "go first to X, then to Y". See locomotor component and all the different behaviours for ideas. The pathfinder component, unfortunately, is in the .exe. Edited June 4, 2014 by Heavenfall Link to comment https://forums.kleientertainment.com/forums/topic/37132-improve-pathfinding/#findComment-493959 Share on other sites More sharing options...
Heavenfall Posted June 4, 2014 Share Posted June 4, 2014 A simpler solution might be to continuously track the movement of a certain prefab. If it is meant to be running but appears to stay in the same place, you could insert a shortcut where it travels in a sideways manner for x distance. Then, continue moving in the previous direction. Link to comment https://forums.kleientertainment.com/forums/topic/37132-improve-pathfinding/#findComment-493968 Share on other sites More sharing options...
_Q_ Posted June 4, 2014 Author Share Posted June 4, 2014 (edited) Or just disable collisions with world object while the follower is off screen so it can run to the leader in proper way, without getting stuck on a wall segment despite opening in wall one segment from it. What pathfindig it is when pig get stuck on a wall segment next to opening in the walls? Edited June 4, 2014 by _Q_ Link to comment https://forums.kleientertainment.com/forums/topic/37132-improve-pathfinding/#findComment-493974 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now