Page 1 of 1

Ghost Rail Pathfinding Interface

Posted: Mon Jun 26, 2017 11:22 am
by jmickle_
Hi, is it possible to expose the rail planning pathfinding (when you ghost plan to calculate routes between two positions) to the lua API? I want to implement automatic rail planning but having to implement A* through the API is very slow. Even with simple transport belt pathfinding, there can be big lag spikes through calculation, possibly from having to call can_place_entity{} so many times. Since the rail pathfinding already exists, I figure it could potentially be accessed in the API, which would make it a lot faster.