AnarkisGaming / ATC-Feedback

Public bug reports and feature requests for our game, After The Collapse.
https://www.anarkisgaming.com/
0 stars 0 forks source link

weird pathfinding? #88

Closed IvanBajlo closed 2 years ago

IvanBajlo commented 2 years ago

for some reason instead of going directly between two pasture animals (when relocating) prefer to go via stairs to level above and then down

is this maybe a trick to speed up calculations since game stalls for few seconds (I'm guessing sewers are horrible for pathfinding) each time I move my spider horde to new pasture but that is fine ;-)

090 pathfinding.zip

image

SerialKicked commented 2 years ago

1) Yeah, sewers are absolute cancer to the pathfinding.

2) Looking at the save (the bottle bug thing), it seems that going above ground is about 1-2 tiles shorter than going underground. At this level of error, the algorithm could have picked any. There's no "pathing cost" associated with using stairs. I could add one, like i do to force people not to walk all over farms unless forced to, but I don't think it's necessary.