Page 1 of 1

Are there any good resources on Pathfinding?

Posted: Sun Oct 09, 2022 6:23 pm
by that_1_nerd
Hi again!

I have been diving into different mods, been building out my own testing mods as I get used to all the prototypes and interfaces I have available to me.
I want to make a mod that is similar to AAI Programable Vehicles. I really like the pathfinding ability and I want to create some type of pathfinding in my testing mod. I looked into its codebase and I am still bit confused.

So I looked on Google and didn't find anything that helped too much. I found some things from 2017 talking about using bitters as the AI pathfinding logic, but I don't know if that is the case anymore...

Are there any good resources on this topic, or am I going to need to struggle in the dark for a while?

Re: Are there any good resources on Pathfinding?

Posted: Sun Oct 09, 2022 6:30 pm
by DaveMcW
You can call the game's pathfinder directly.

https://lua-api.factorio.com/latest/Lua ... quest_path

Re: Are there any good resources on Pathfinding?

Posted: Sun Oct 09, 2022 8:12 pm
by that_1_nerd
Well then... I feel pretty stupid... I have been looking through the API for some time now... and I can't belive that I hadn't seen that call... LOL Thanks!