diasurgical / devilutionX

Diablo build for modern operating systems
Other
8.09k stars 794 forks source link

Pathfinding is bad #6103

Open qndel opened 1 year ago

qndel commented 1 year ago

Operating System

Windows x64

DevilutionX version

Other (please specify version number)

Describe

Probably a vanilla bug that only became visible while using https://github.com/diasurgical/devilutionX/pull/6101 single_2.zip

To Reproduce

Run debug build Enable seeing path (drawpath) Load the save and behold the mess

Expected Behavior

Pathfinding should be smarter than that

Additional context

Looks like if you get stunned, current movement simply gets consumed from the path which causes the rest of it to get shifted and usually end in walls/stuff = useless poopath

julealgon commented 1 year ago

Damn.... nice find. This explains a lot of erratic movement in the game.

qndel commented 1 year ago

Every time we get visual data on something we discover bugs - hp bars / floating dmg numbers, now path :D

AJenbo commented 1 year ago

and vision

galaxyhaxz commented 1 year ago

don't forget the first monster in the level not giving xp. so xp bar too :P