Are there any good resources on Pathfinding?

Place to get help with not working mods / modding interface.
User avatar
that_1_nerd
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Sep 29, 2022 9:15 pm
Contact:

Are there any good resources on Pathfinding?

Post 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?
Trains make or break a man!
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3734
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Are there any good resources on Pathfinding?

Post by DaveMcW »

You can call the game's pathfinder directly.

https://lua-api.factorio.com/latest/Lua ... quest_path
User avatar
that_1_nerd
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Sep 29, 2022 9:15 pm
Contact:

Re: Are there any good resources on Pathfinding?

Post 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!
Trains make or break a man!
Post Reply

Return to “Modding help”