How do I get the current progress of a space platform to its destination?

Place to get help with not working mods / modding interface.
Vulteran
Burner Inserter
Burner Inserter
Posts: 12
Joined: Tue Aug 23, 2022 3:50 am
Contact:

How do I get the current progress of a space platform to its destination?

Post by Vulteran »

I want to add a combinator that can emit useful signals about the space platform it is on. One of them is the current progress towards your destination along the route the platform is on.

I am hoping this will be useful in sending signals to stop the ship along the way to harvest promethium asteroids before turning back and going home.

I can't seem to find where to get the info on the current route and it's progress. I can see there are space route prototypes and have lengths, but not how to get them from the current station route or what the current progress is.

If I can at least get the route I can probably fake it somewhat by recording the tick the platform starts moving and accumulating the speed value as distance traveled, but that seems hacky when the info is clearly stored somewhere since it is displayed on the screen.

Does anyone know where to find this info in lua?
Post Reply

Return to “Modding help”