I'd like to use circuitry to read the distance along the current space-platform path. I'm talking about the value displayed in the UI between the two planet<etc> icons, and "read" the same way I can read Speed (S) and Damage taken (D).
THIS post asks how to do it and THIS one is about how it was added for scripting/modding. I just want that same value, but accessible via circuit network.
My specific use case is to make adjustments to platform behaviour (specifically, thruster throttling) at various steps along the way, but I can think of several additional uses.
Thanks!
Add Platform distance along route (circuit value)
Moderator: ickputzdirwech
-
- Long Handed Inserter
- Posts: 86
- Joined: Thu Apr 07, 2016 9:17 pm
- Contact:
-
- Filter Inserter
- Posts: 340
- Joined: Sat Oct 07, 2023 6:44 am
- Contact:
Re: Add Platform distance along route (circuit value)
Can't you integrate the speed?
Re: Add Platform distance along route (circuit value)
I think this is better as a “Combinator Mod Idea”; I am just thankful that it was added to the Lua API. I am a little surprised there has not been one created yet.
The Velocity signal provided by the Platform Hub is an Integer, whereas the actual Velocity has a floating-point component - so it is inherently inaccurate, and does not “Sum” correctly over any significant period of time…. I have nonetheless used it as a primitive “Odometer” to slow down / speed up during certain conditions.
-
- Long Handed Inserter
- Posts: 86
- Joined: Thu Apr 07, 2016 9:17 pm
- Contact:
Re: Add Platform distance along route (circuit value)
Sadly, no. Speed is truncated, so the odometer runs slow. That is, a speed of, say, 125.47m/s is reported as "125". If that's your steady speed, your Odo slowly loses distance over time.
Worse, it's truncated BEFORE reporting! In the above example, V [125.47] * 100 is reported as 12500.

-
- Burner Inserter
- Posts: 11
- Joined: Fri Nov 15, 2024 5:45 am
- Contact:
Re: Add Platform distance along route (circuit value)
I actually had this idea before to make a harvester platform routinely go into deeper space for more asteroids and cut the thrusters so it drifts back, unfortunately it is incredibly inaccurate and the system broke after ~6 trips.
-
- Filter Inserter
- Posts: 340
- Joined: Sat Oct 07, 2023 6:44 am
- Contact:
Re: Add Platform distance along route (circuit value)
If it works for one you can just reset it when it reaches a known locationbountygiver wrote: Wed Mar 19, 2025 9:35 pmI actually had this idea before to make a harvester platform routinely go into deeper space for more asteroids and cut the thrusters so it drifts back, unfortunately it is incredibly inaccurate and the system broke after ~6 trips.
-
- Burner Inserter
- Posts: 11
- Joined: Fri Nov 15, 2024 5:45 am
- Contact:
Re: Add Platform distance along route (circuit value)
Except there's no signal for actually reaching a known location. The way it works is by having the platform constantly trying to leave nauvis and the return is controlled by cutting off fuel because it is meant to only harvest space science and calcite, so the platform never reaches a known location and the origin/destination signal never changes.computeraddict wrote: Thu Mar 20, 2025 12:53 amIf it works for one you can just reset it when it reaches a known locationbountygiver wrote: Wed Mar 19, 2025 9:35 pmI actually had this idea before to make a harvester platform routinely go into deeper space for more asteroids and cut the thrusters so it drifts back, unfortunately it is incredibly inaccurate and the system broke after ~6 trips.
A platform with such purpose would be fixed if they made interrupts actually trigger mid flight too....