Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Friendly mobs (animals) get stuck on trees #389

Closed
kwadroke opened this issue Sep 6, 2017 · 8 comments
Closed

Friendly mobs (animals) get stuck on trees #389

kwadroke opened this issue Sep 6, 2017 · 8 comments

Comments

@kwadroke
Copy link

kwadroke commented Sep 6, 2017

Might be more of a mobs_mc issue, but, horses, pigs, sheep, & cows (at least) seem to get stuck on a tree as it's walking when their heads hit it.

Tested on commit 916bf70b8542cf891cd8aa45ae1a6eb056effb16 if I remember correctly.
I have multiple screen-shots that I can upload tonight if it will help.

@Wuzzy2
Copy link
Owner

Wuzzy2 commented Sep 6, 2017

This is partially intentional. Many mobs are afraid of heights and don't want to walk off cliffs which are deeper than 4 blocks.
If a mob refuses to walk at all because of this, this is intentional.

Minetest's pathfinder seems to be broken. I don't think I fully understand your problem.

@kwadroke
Copy link
Author

kwadroke commented Sep 6, 2017

This issue is not a cliff problem. It happens on level ground.
My guess is that pathfinding doesn't know how to handle trees so they continue to try to walk through them instead of turning to avoid.

@Wuzzy2
Copy link
Owner

Wuzzy2 commented Sep 6, 2017

Yeah, pathfinding in MT is not very smart, sadly. :-(

@rasusmilch
Copy link

rasusmilch commented Jan 27, 2018

Yes... I see that pathfinding is QUITE broken. The animals in a pen just jump repeatably against the walls, and won't detect openings or better slopes. Quite sad really. Does there not exist a smarter algorithm? I'm a simple CS graduate but would think there would be ready-to-go libraries for these things for decades (I plead ignorance.)

EDIT: I see a potential new pathfinding is in the works which you commented on. [Discussion] new pathfinder #5479

@Wuzzy2
Copy link
Owner

Wuzzy2 commented May 29, 2018

Looks fixed after upgrade to Mobs Redo 1.41.

If you still think this is a problem, post a new issue with more detailed description and maybe even screenshots.

@kwadroke
Copy link
Author

kwadroke commented May 29, 2018

Was still a problem a few days ago. Will check again & post screenshots.

EDIT: After a quick check, it doesn't look like they're getting stuck on trees as they side over after a few seconds. They are getting stuck in corners and higher places on walls. Will create a new issue with screenshots.

@Wuzzy2
Copy link
Owner

Wuzzy2 commented May 29, 2018

Plz proceed here:
#476

@kwadroke
Copy link
Author

I created a new issue before your post. I'll mark it closed and post screenshots over on #477

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants