flareteam / flare-engine

Free/Libre Action Roleplaying Engine (engine only)
http://flarerpg.org/
GNU General Public License v3.0
1.1k stars 186 forks source link

Pathfinding broken? #59

Closed clintbellanger closed 12 years ago

clintbellanger commented 12 years ago

I'm not seeing expected A* behavior from enemies.

clintbellanger commented 12 years ago

Easiest guy to see pathfinding on is the first goblin spearguy across the river in River Encampment. He should be able to leave his area and cross the two bridges to find the player. Try him on v0.16 and he can do that no problem. On v0.17 he refuses to move from his platform.

http://imgur.com/4Yc7J

Other ways to see pathfinding is working: in a clump of enemies chasing the player (e.g. aggro all the hatchlings near the Ydrakka entrance in the Plains), the enemies further back will try to move laterally to gain Line-Of-Movement on the player. It's broken when they all charge together in a clump.

We can't release v0.17 until this one's found and fixed.

dorkster commented 12 years ago

Yeah, I noticed this a lot in the Lost Mines. See my latest pull request for the (temporary) fix.

clintbellanger commented 12 years ago

This did the trick.

Let's take a look at the static analysis changes and see why this was the case.