Open saffronjam opened 20 hours ago
From what I can tell, the number comes from UFGRailroadVehicleMovementComponent
(base class of UFGLocomotiveMovementComponent
): https://github.com/porisius/FicsitRemoteMonitoring/blob/main/Source/FicsitRemoteMonitoring/Private/FRM_Trains.cpp#L69
/** Speed of this vehicle along the track. In the direction of the train. [cm/s] */
UFUNCTION( BlueprintPure, Category = "FactoryGame|Railroad|Movement" )
FORCEINLINE float GetForwardSpeed() const { return mVelocity; }
So yes, the units seem to be wrong.
Probably one of the issues that were fix that re-broke (lack of better term) when the rewrite was done.
If I remember correctly, UE reports back in cm/s or some weird measurement. I can get something up to the build server here in a few.
Hi,
It's me again :D
I am noticing my trains are reaching really high speed according to the API, while they are not in game (comparing with the UI when driving/riding a train).
(Screenshot is not exactly at the same time as the API fetch)
Interestingly, it seems to be a linear offset, where if I divide by more or less 27.9, it gives the correct speed.