Is there an API for catching calls to the train network for path finding? Currently the Factorio path finding for trains is inefficient, and it shows very easily on my computer at times. I know how to fix it, if I could intercept calls for train routing. However looking at the API here http://lua-api.factorio.com/ I don't see what I would need right off.
If it isn't a current API, and they can't make one, I am willing to share with them a better solution for train routing that will have far better performance on weaker machines, or for larger train networks. I don't know what method they currently use, but it is not on the same level as Djikstra's Algorithm, it must be n^2 or worse with how it performs. It can be made better and I've worked out how.
Factorio Modding API
Re: Factorio Modding API
There's no such API. If you've got an idea to improve the train path finding feel free to type it out
The current system we use is A*.
The current system we use is A*.
If you want to get ahold of me I'm almost always on Discord.