Page 1 of 1

Factorio Modding API

Posted: Sun Jul 02, 2017 6:06 pm
by Chthon
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.

Re: Factorio Modding API

Posted: Mon Jul 03, 2017 12:44 pm
by Rseding91
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*.