04-30-2015, 05:07 AM
(This post was last modified: 04-30-2015, 06:23 PM by LogicParrot.)
(04-30-2015, 04:05 AM)NiLSPACE Wrote: I've tried the new pathfinder, and I have to say I'm impressed. Most mobs were able to follow me through a maze The mobs really move great, but I did notice a few bugs.
- Sometimes a mob just does nothing. I spawned 2 zombies and they just stood there. I was in survival mode, and I could punch them and they would still not come after me. This could also be due to something other then the new pathfinder of course, but I thought I'd mention it.
- The path finder doesn't work when there is no block below me. For example like this: http://puu.sh/hvkoi/7754e62fd2.jpg
- When no path can be found the mobs stop stop moving. They should probably at least try to get as close as possible. It could be that issue 1 is because of this? That the mob thinks there is no path, so it stops doing anything.
As I said before, I was disappointed that the AI's drawbacks eclipse the pathfinder's awesomeness. Note that the next to-do in my roadmap (first post) is improving the AI. This isn't directly a pathfinding thing, but it's important. Issue 1 is most likely an AI thing, issue 3 is also AI-related.
Issue 2 is definitely a pathfinder issue, I explicitly programmed it to do nothing when there's no block beneath the player , I did not consider the situation in your screenshot.
Issue 3 is a hybrid issue. If no path is found, the pathfinder returns nothing. Making it return the "second best" shouldn't be too hard, but it isn't always the desired behavior; the zombie should start pathing only after spotting you. (You don't want 10 zombies waiting outside your cobblestone bunker, they shouldn't have seen you wanyways!), and it might be the cause for issue 1.
Thanks for the feedback, I'll add those things to my to-do list.
btw: Jiggling when trying to go up is an AI issue, I have a plan in mind for that.