Page 1 of 1
A more costly better-performing pathfinding
Posted: Wed Dec 18, 2019 6:17 pm
by Modernkennnern
TL;DR
A secondary pathfinding option for more critical tasks.
What ?
Pathfinding in this game is very simple - this is great for biters and other things where their tasks are very simple and even if they fail it doesn't matter, "Oh, the enemy walked into the tree, how sad...". However, it's not very good for mods that's based on the utilization of pathfinding-based entities like "AAI - Programmable Vehicles". The pathfinding really ruins the experience for such a mod
Why ?
I've been playing a purely-AAI base recently, and the cars gets stuck all the time moving from A to B, additionally they often drive straight into trees and some other annoying things that really ruins the experience, especially the fact that they often just try to move from A to B in a direct line without even attempting pathfinding (Not sure if that's pathfinding related, or AAI-related, although I have a feeling the latter is at fault, but I don't know).
Re: A more costly better-performing pathfinding
Posted: Wed Dec 18, 2019 6:32 pm
by netmand
Re: A more costly better-performing pathfinding
Posted: Wed Dec 18, 2019 6:55 pm
by Klonan
In this case, the movement of the vehicle is run by the mod, so there isn't really an actionable idea here
Re: A more costly better-performing pathfinding
Posted: Thu Dec 19, 2019 2:00 pm
by Oxyd
Modernkennnern wrote: Wed Dec 18, 2019 6:17 pmthey often just try to move from A to B in a direct line without even attempting pathfinding (Not sure if that's pathfinding related, or AAI-related, although I have a feeling the latter is at fault, but I don't know).
If the entity doesn't even attempt to pathfind then it cannot be pathfinding-related.
Modernkennnern wrote: Wed Dec 18, 2019 6:17 pmA secondary pathfinding option for more critical tasks.
The game already uses multiple pathfinding priorities to choose which path requests to take on first, and this is accessible from the API by passing the
low_priority flag to
LuaSurface::request_path to give the request a low priority – or by not passing that flag, which gives the request a high priority.
Re: A more costly better-performing pathfinding
Posted: Sat Dec 21, 2019 2:18 pm
by ssilk
Looks like this is already implemented, and moved to Implemented.