Factorio Modding API

Place to post guides, observations, things related to modding that are not mods themselves.
Chthon
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Mon May 12, 2014 4:06 pm
Contact:

Factorio Modding API

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14312
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Factorio Modding API

Post 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*.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding discussion”